emuelec 4.3
wget http://whiteboard.ping.se/uploads/Android/unmkbootimg.gz
gzip -d unmkbootimg.gz
chmod a+x unmkbootimg
./unmkbootimg kernel.img
after unmkbootimg
the kernel.img
, I will get these files:
initramfs.cpio.gz zImage
then I edit the ramdisk:
mkdir initramfs
cd initramfs
cpio -idmv < ../initramfs.cpio.gz
## do some change ###########
find . | cpio --create --format='newc' > ../initramfs.cpio.gz
cd ..
and create the new kernel.img
mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0x0 -o kernel.img
Using the modified kernel.img will not boot, and how the content of kernel.img.md5 is generated
round 2:
I use these content Search · ANDROID_BOOTIMG_OPTIONS · GitHub
mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz \
--base 0x0 --kernel_offset 0x1080000 -o kernel.img
could boot, but will had a kernel-overlay error