View Single Post
Posts: 362 | Thanked: 426 times | Joined on Nov 2010 @ Italy, Lombardia
#33
Here the result:
Code:
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
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

PS
I have BusyBox v1.19.3 (Debian 1.19.3power4) multi-call binary.

Last edited by Fabry; 2012-01-16 at 17:35.
 

The Following User Says Thank You to Fabry For This Useful Post: