I am trying to bake a custom ROM from ainol sources. Just to see how it works and learn how to do it properly and in the future try to help community developing custom ROMs for Fire (JB is the target for me). I came to the point where I need to modify init.rc script which resides on the initial ram disk. I know that this stuff is inside boot.img. The question is how to modify that file? I know that the file is in uImage format and it contains the kernel and initramfs, but I don't know how to unpack it and later prepare modified boot.img. I tried some Perl script called unpack-bootimg.pl, but it says that it is not a complete image. I also tried two scripts from http://www.mediafire.com/?r14p4i4cru88q called repack.sh and unpack.sh - the device is not bootable after flashing that modified boot.img.
Any idea how to do it properly?
I will be very grateful for any help.
UPDATE: [Problem SOLVED]
So basically remove gzip part from repack.sh script and it works just fine. Just remember that this method doesn't allow bigger ramdisks than original.
Edited by bayger, 19 September 2012 - 04:22 PM.