I have not seen this posted anywhere, so I thought I would post it here. This is NOT purely my work, and I do not take credit for it as such.
Included in the attached ZIP are the following files:
ANYONE is free to use / modify / kang these files as they see fit. No need to ever ask or do anything more than download.
Enjoy.
Included in the attached ZIP are the following files:
- boot_info - prints information about the boot.img passed to it, including the base address. This is a modified [by me] version of the common split_bootimg.pl to print out the BASE address in addition to other items (Page size, Kernel size, Ramdisk size, and secondary bootloader size [if applicable])
- split_boot - More commonly known as split_bootimg.pl, this rips apart the boot.img to extract the ramdisk and zImage. It has been modified by me to split the boot.img into a separate folder (specified by the file name of the boot.img passed to it) and to extract the ramdisk into a sub-folder as well (extracts the cpio from the gz and then extracts the actual files from the cpio archive)
- unpack_ramdisk - unpacks the given ramdisk file.
Code:Usage: unpack_ramdisk <ramdiskFile>
- repack_ramdisk - repacks the ramdisk from the given directory (found online and modified slightly to take a directory)
Code:Usage: repack_ramdisk <ramdiskDirectory> [outputFile]
- mkbootimg - mkbootimg binary that creates a boot.img file from the given ramdisk and zImage. NOT created by me or modified in any way.
ANYONE is free to use / modify / kang these files as they see fit. No need to ever ask or do anything more than download.
Enjoy.