The Following User Says Thank You to coderus For This Useful Post: | ||
|
2013-03-24
, 20:53
|
Posts: 9 |
Thanked: 0 times |
Joined on Mar 2013
|
#192
|
4.) Next, you must configure your 2nd level boot kernels, or at leat one OS and kernel.
If you do not do this correctly you will be stuck on the boot selector with nothing
to boot up to.
Bootable OS & kernel configuration is done in the file "/etc/boot.conf" on the ubifs.
There are 6 entries for Nitdroid, 6 entries for Harmattan and 6 entries for Nemo.
You do not need to fill up everything, of course. Just the bits you have on your N9.
The "G_<os>_<n>_LABEL" identifier is the line shown on the menu.
The corresponding "G_<os>_<n>_FILE" is the path to the bootable kernel.
Note the "G_<os>_NUM" variable, this tells the menu how many lines to show, starting
from the line 1.
The filesystem is pre-set to that "/boot/Harmattan" is a link to "/mnt/2" which is
mounted as /dev/mmcblk0p2 and "/boot/Nemo" is a link to "/mnt/4" which is mounted
as /dev/mmcblk0p4.
If, for example your Nemo partition is something else than 4, then you need to update
symlinks in /boot/ to point to correct loactions and make sure that you mount the
partitions before kernel selection is done (kexec_load needs to see the kernels...)
In my own setup Harmattan and Nemo kernels are stored in "/boot/Harmattan/boot/"
and Nemo kernels in "/boot/Nemo/boot/"
You need to copy your kernels to the correct location!
The modules for the kernels are located in each OS's hierarchy, normally in the
"/lib/modules" directory.
Do not forget to have the correct modules there, and remember to do "depmod -a <name>"
if you are copying new modules to the directory!
|
2013-03-25
, 06:23
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#193
|
Hi,
I followed the step by step directions on the README file and everything has worked as it should. But i have a question regarding the step 4. My N9 has Nitdroid installed as described in their own tutorial, it works without a problem, so i assume i have a plain open mode and everything else is stock/default. I didn't quite understand what should be configured in the boot.conf file, where should i copy new modules nor what "depmod -a <name>" would do. My question is, given my actual configuration should i modify this file in any way? or can i just leave the default values and go on?
Thanks for your help,
Me
# Nitdroid kernels G_NITDROID_NUM=1 G_NITDROID_1_LABEL="Eyes zImage.pr13 kernel" G_NITDROID_1_FILE="/boot/Harmattan/boot/zImage.pr13" # Harmattan kernels G_HARMATTAN_NUM=3 G_HARMATTAN_1_LABEL="Plain openmode kernel" G_HARMATTAN_1_FILE="/boot/Harmattan/boot/zImage-2.6.32.54-dfl61-20121301" G_HARMATTAN_2_LABEL="Openmode + L2fix" G_HARMATTAN_2_FILE="/boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix" G_HARMATTAN_3_LABEL="Nitdroid pr13 kernel" G_HARMATTAN_3_FILE="/boot/Harmattan/boot/zImage.pr13"
|
2013-03-25
, 06:28
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#194
|
Can someone give me more detailed instruction about this part?
Where can I download kernel & os files for Nitdroid,Harmattan,Nemo and where I must put them if I use default boot.conf.
thx in advance
|
2013-03-25
, 06:44
|
|
Posts: 2,021 |
Thanked: 1,060 times |
Joined on Apr 2010
@ Hong Kong
|
#195
|
The Following User Says Thank You to TMavica For This Useful Post: | ||
|
2013-03-25
, 10:11
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#196
|
|
2013-03-25
, 10:17
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#197
|
@jmsarriat mtd partitions unused by system and you can not care about them
The Following User Says Thank You to juiceme For This Useful Post: | ||
|
2013-03-25
, 11:06
|
|
Posts: 2,021 |
Thanked: 1,060 times |
Joined on Apr 2010
@ Hong Kong
|
#198
|
The Following User Says Thank You to TMavica For This Useful Post: | ||
|
2013-03-26
, 10:15
|
Community Council |
Posts: 4,920 |
Thanked: 12,867 times |
Joined on May 2012
@ Southerrn Finland
|
#199
|
Hey juiceme,
OK, got a dead battery. And put it to charger. Checked again and now return value is "0", so everything okay!
This time bootreason=usb. When I got the 255 the bootreason was sw_rst. Maybe this caused the 255? IDK.
- I still have sometimes weird restart behavior, i.e. after decoupling battery (nemo did not start) it needed a few attempts. It seems bootreason=pwr_off? Maybe change the bootreason in command_line also?
- Charging does not take place when connected charger to powered off phone. it goes to ubi console and does not charge.
Maybe wait for 60s and when there was no telnet connection established (do not know how to detect) then boot to Harmattan (bootreason=act_dead) and let it charge?
# if boot reason is USB or RTC, boot up directly to default Harmattan bootreason=$(cat /proc/original_cmdline | cut -d' ' -f12 | cut -d'=' -f2) if [ "$bootreason" != "pwr_key" ]; then if [ -r /boot/menu/select_default_os.sh ]; then mount /mnt/2 /boot/menu/select_default_os.sh if [ $? -eq 0 ]; then /usr/bin/disable_pm # restart to the default Harmattan OS kexec -e ; echo $? ; sleep 10 fi fi fi
|
2013-03-26
, 21:55
|
|
Posts: 592 |
Thanked: 1,603 times |
Joined on Apr 2010
@ Berlin / Germany
|
#200
|
Telegram | Openrepos | GitHub | Revolut donations