Confirmed users
125
edits
Line 23: | Line 23: | ||
unmkbootimg boot.img | unmkbootimg boot.img | ||
</pre> <!--./unmkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --input boot.img--> | </pre> <!--./unmkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --input boot.img--> | ||
Along with outputting the files <code>zImage</code> (the kernel) and <code>initramfs.cpio.gz</code> (the ramdisk), this | Along with outputting the files <code>zImage</code> (the kernel) and <code>initramfs.cpio.gz</code> (the ramdisk), this program also displays the required command to rebuild the boot partition with the same configuration it was found in, e.g.: | ||
<pre> | <pre> | ||
mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0 --pagesize 2048 --cmdline 'androidboot.hardware=aphone' -o new_boot.img | mkbootimg --kernel zImage --ramdisk initramfs.cpio.gz --base 0 --pagesize 2048 --cmdline 'androidboot.hardware=aphone' -o new_boot.img |