I have Unpacked the scrolls boot image, (original size is 10MB)
10M mymtd0.img
After unpacking.. the sizes come no-where near 10M
9b mymtd0.img-base
45b mymtd0.img-cmdline
9b mymtd0.img-pagesize
304K mymtd0.img-ramdisk.gz
4.8M mymtd0.img-zImage
And Repacking... using the zImage kernel
5.3M 2011-04-29 12:08 mynewimage.img
306K 2011-04-29 12:07 newramdisk.cpio.gz
The original image is 10M ... should the image I create be padded to 10M ? or is a cat /dev/zero > /dev/mtd/mtd0 be sufficient to clear out the spaces? or will flash_image boot myImage.img be enough to sort out the free spaces?
- Code: Select all
mkbootimg --base 0x40000000 --cmdline 'console=ttySAC0 androidboot.hardware=tcc92xx' --kernel mymtd0.img-zImage --ramdisk newramdisk.cpio.gz -o mynewimage.img
I had to change the mkbootimage to allow for a 8192 pagesize as it did not by default.




