The Following User Says Thank You to Fabry For This Useful Post: | ||
|
2012-01-16
, 15:58
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#32
|
U-Boot binary: u-boot-2011.12-1.bin U-Boot kernel image: uImage1 Output combined image: zImage1
$ sh -x /usr/bin/u-boot-gen-combined u-boot-2011.12-1.bin uImage1 zImage1
The Following 2 Users Say Thank You to pali For This Useful Post: | ||
|
2012-01-16
, 17:25
|
Posts: 362 |
Thanked: 426 times |
Joined on Nov 2010
@ Italy, Lombardia
|
#33
|
Nokia-N900:/home/user# sh -x /usr/bin/u-boot-gen-combined u-boot-2011.12-1.bin uImage1 zImage3 + test u-boot-2011.12-1.bin = -h + test u-boot-2011.12-1.bin = --help + test -z u-boot-2011.12-1.bin + uboot=u-boot-2011.12-1.bin + test -z uImage1 + kernel=uImage1 + test -z zImage3 + output=zImage3 + test -f u-boot-2011.12-1.bin + test -f uImage1 + cut -f1 -d + wc -c u-boot-2011.12-1.bin + uboot_size=191600 + cut -f1 -d + wc -c uImage1 + kernel_size=1783320 + uboot_max=262144 + kernel_max=1835008 + test 191600 -gt 262144 + test 1783320 -gt 1835008 + uboot_append=70544 + echo U-Boot binary: u-boot-2011.12-1.bin U-Boot binary: u-boot-2011.12-1.bin + echo U-Boot kernel image: uImage1 U-Boot kernel image: uImage1 + dd if=u-boot-2011.12-1.bin of=zImage3 + dd if=/dev/zero of=zImage3 bs=1 count=70544 conv=notrunc oflag=append + dd if=uImage1 of=zImage3 conv=notrunc oflag=append + echo Output combined image: zImage3 Output combined image: zImage3 Nokia-N900:/home/user# ls -l zImage3 -rw-r--r-- 1 root root 191600 Jan 16 18:24 zImage3
The Following User Says Thank You to Fabry For This Useful Post: | ||
|
2012-01-16
, 17:42
|
Posts: 362 |
Thanked: 426 times |
Joined on Nov 2010
@ Italy, Lombardia
|
#34
|
It seems that these commands:
dd if=/dev/zero of=zImage3 bs=1 count=70544 conv=notrunc oflag=append
dd if=uImage1 of=zImage3 conv=notrunc oflag=append
have no effect
The Following 3 Users Say Thank You to Fabry For This Useful Post: | ||
|
2012-01-16
, 19:45
|
Posts: 1,523 |
Thanked: 1,997 times |
Joined on Jul 2011
@ not your mom's FOSS basement
|
#35
|
|
2012-01-16
, 20:55
|
Posts: 323 |
Thanked: 180 times |
Joined on Oct 2009
@ Gent, Belgium
|
#36
|
|
2012-01-16
, 21:09
|
Posts: 362 |
Thanked: 426 times |
Joined on Nov 2010
@ Italy, Lombardia
|
#37
|
The Following 2 Users Say Thank You to Fabry For This Useful Post: | ||
|
2012-01-16
, 21:16
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#38
|
hi Pali,
first of all thanks for your great work! This is really a step change in the multiboot/boot menu area. Finally something user friendly. And very safe, once your first combined kernel is set up correctly.
I'm sure lother devs will modify their solutions to be usable with this U-Boot solution.
Can I have a few requests ?
- Is it possible to auto boot the LAST selected kernel when booting with keyboard closed ? That way it would only be needed to open the keyboard to select a DIFFERENT kernel, and it would allow to boot every time (with keyboard closed) the previously selected non-NAND kernel.
- when showing the U-boot bootmenu, is possible to increase the timeout value before continuing the default boot? Now it's a v short time it's looking for keystrokes. This can easily be extended to a few seconds I guess.
- maybe I'm running abit ahead but I'm trying to get create an entry to start my NITdroid
What is the syntax for the device specifier in the item for the SD Card, 2nd partition ? U-boot keeps complaining about the incorrect boot device.
I started off with ITEM_DEVICE=mmcblk1p2. NO GO.
Then, according to the error message, the device specifier should be in the format 'dev[art]'. U-boot also informed me gently that the current device is mmc0
so trying to be clever, I tried ITEM_DEVICE=mmc1:2. stil NO GO
all other ITEM_ properties I kept as in the multiboot item file.
Any hint u can give ?
PS. Did I already say I really like booting/playing with kernels this way ?
ITEM_NAME="Test" ITEM_DEVICE="${EXT_CARD}p2" ITEM_FSTYPE="ext3" ITEM_KERNEL"uImage" ITEM_INITRD="uInitrd" ITEM_CMDLINE="root=/dev/mmcblk1p2 init=/sbin/init"
The Following 4 Users Say Thank You to pali For This Useful Post: | ||
|
2012-01-16
, 21:17
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#39
|
I have Busybox power4 but I don't remember to have seen errors during u-boot-flasher installation.
The Following 2 Users Say Thank You to pali For This Useful Post: | ||
|
2012-01-16
, 21:29
|
Posts: 362 |
Thanked: 426 times |
Joined on Nov 2010
@ Italy, Lombardia
|
#40
|
I've installed the tools and flasher packages, as well as the sample images + configs, and I don't see them in my boot menu. Instead I am offered to boot from Internal Flash, eMMC, SD, etc.
Here is the output of the u-boot-update-bootmenu script:
Configuration file: /etc/bootmenu.d/backupmenu.item
cannot open /dev/null
another udev daemon already running
Last edited by Fabry; 2012-01-16 at 15:19.