Help: how to cat zImage and romfs.img to image.bin?

Mar 02, 2007 1 Replies

Hi all,



I need to cat zImage and romfs.img to image.bin, and romfs.img must locate at offset 0x000c0000 in image.bin.



image.bin:



----------------------------------------------------------------------------- | zImage | (0x000c0000 - (size of zImage) | romfs.img|



-----------------------------------------------------------------------------



Can anyone presents me a solution code to acheive it?



Thanks,



Ken



I would use dd to fix this... Check the manual pages. I think it will be something like: dd if=/dev/zero of=image.bin bs=1k count=768 cat zImage image.bin > newimage.bin dd if=romfs.img of=newimage.bin seek=768 count=1k

wimpunk.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required