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

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

Reply to
Ken
Loading thread data ...

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.

Reply to
wimpunk

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.