![]() |
2013-04-11
, 14:15
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#411
|
![]() |
2013-04-11
, 15:22
|
Posts: 896 |
Thanked: 978 times |
Joined on Feb 2011
@ Greece, Athens
|
#412
|
![]() |
2013-04-11
, 20:11
|
Posts: 28 |
Thanked: 34 times |
Joined on Jul 2012
@ Meran, Italy
|
#413
|
*** Flashing
Your N900 has various partitions. For all practical matters you have:
disk 1:
partition 1: kernel
partition 2: root file system (/)
(NOLO and other partitions are also there, but you don't care).
disk 2:
partition 1: /home
partition 2: Mydocs
(swap is also there but you don't care)
If you flash the ROOTFS aka FIASCO aka COMBINED image you are basically replacing "disk 1", i.e. you get the stock kernel and a new root file system. Your /home and your Mydocs are not touched.
The Following User Says Thank You to pkz For This Useful Post: | ||
![]() |
2013-04-11
, 20:19
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#414
|
The Following 4 Users Say Thank You to pali For This Useful Post: | ||
![]() |
2013-04-12
, 01:24
|
Posts: 362 |
Thanked: 143 times |
Joined on Mar 2008
|
#415
|
![]() |
2013-04-12
, 08:52
|
Posts: 1,397 |
Thanked: 2,126 times |
Joined on Nov 2009
@ Dublin, Ireland
|
#416
|
Basically, the boot process is as follows:
1. *NOLO* is the boot loader, which loads whatever kernel is installed in the kernel partition.
2. *kernel* loads and runs whatever it's been given as an init parameter. standard (on Maemo) is /sbin/preinit
3. *preinit* intializes various stuff about your N900 and then runs init (upstart)
4. *upstart* starts system services, X11 and the desktop.
*** U-Boot
Now if you install U-Boot it replaces *kernel*, so that NOLO passes control to U-Boot, which itself loads a kernel. If that kernel is a Maemo kernel (stock, power kernel), then that kernel loads preinit, etc.
Meaning: U-Boot replaces step 2, but the kernel loaded by U-Boot normally (if Maemo) jumps to step 3, so all is OK.
*** Bootmenu
Bootmenu is run by preinit, so that it runs between steps 3 and 4, let's call it 3.5. It is thus entirely independent of U-Boot and whatever kernel you have.
*** Backupmenu
Backupmenu is like Bootmenu. It is actually (normally) run from Bootmenu, so it kind of replaces step 4.
*** Multiboot
Multiboot replaces /sbin/preinit (step 3), so that it shows a menu similar to Bootmenu. The trick here is that when you select a kernel, it FLASHES that kernel, so that your selected kernel replaces STEP 2.
If you remember a few lines ago U-Boot ALSO REPLACES THE KERNEL.
If you do the math you'll notice that if you have U-Boot *and* Multiboot the next time you select a kernel in Multiboot it will replace U-Boot, so U-Boot is gone completely from your device. This is a common problem amongst the people who (still) don't know how the N900 and Maemo work.
*** Flashing
Your N900 has various partitions. For all practical matters you have:
disk 1:
partition 1: kernel
partition 2: root file system (/)
(NOLO and other partitions are also there, but you don't care).
disk 2:
partition 1: /home
partition 2: Mydocs
(swap is also there but you don't care)
If you flash the ROOTFS aka FIASCO aka COMBINED image you are basically replacing "disk 1", i.e. you get the stock kernel and a new root file system. Your /home and your Mydocs are not touched.
If you flash the eMMC aka VANILLA you get a new /home and Mydocs.
* NOTE (added after Pali's comment -- Thanks)
/opt is a symlink to /home/opt, meaning that if you flash the eMMC/VANILLA image *only* your /opt folder will be empty, which will likely make Maemo unbootable.
(actually should not happen, unless something actually requires /opt to be there. But yes, knowing Maemo, there is 100% something critical-essential stored in /opt).
*
Note that you can choose to only flash the kernel (i.e. without touching the rootfs). This is a way of e.g. fixing a fvcked up U-boot configuration.
I hope this makes everything a bit clearer!
The Following 4 Users Say Thank You to ivgalvez For This Useful Post: | ||
![]() |
2013-04-12
, 14:11
|
|
Posts: 6,450 |
Thanked: 20,983 times |
Joined on Sep 2012
@ UK
|
#417
|
The Following User Says Thank You to pichlo For This Useful Post: | ||
![]() |
2013-04-16
, 12:32
|
Posts: 738 |
Thanked: 179 times |
Joined on Mar 2010
@ Gold Coast, Australia
|
#418
|
![]() |
2013-04-17
, 07:47
|
Posts: 1,808 |
Thanked: 4,272 times |
Joined on Feb 2011
@ Germany
|
#419
|
Guys quick question what is the command for kernel power 51 to install like apt-get install kernel.....
Ive forgotten and its not in the ham list under devel for some reason?
![]() |
2013-04-17
, 08:00
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#420
|
![]() |
Tags |
bq2415x_charger, bq27200, kernel-power |
|