Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,734,168 Members 50,689 Now Online
XDA Developers Android and Mobile Development Forum

[TOOL][SHARE] Boot.img tools (unpack,repack,ramdisk)

Tip us?
 
aniket.lamba
Old
(Last edited by aniket.lamba; 23rd January 2014 at 07:53 AM.)
#1  
aniket.lamba's Avatar
Senior Member - OP
Thanks Meter 1257
Posts: 2,232
Join Date: Jul 2012
Location: New Delhi

 
DONATE TO ME
Default [TOOL][SHARE] Boot.img tools (unpack,repack,ramdisk)

Note: I'm just sharing the work of the XDA Member CNexus.Here's a little introduction by him :

Quote:
Originally Posted by CNexus View Post
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:
  • boot_info - prints information about the boot.img passed to it, including the base address and ramdisk address. This tool prints out everything needed to repack the boot.img correctly.
  • 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
  • repack_ramdisk - repacks the ramdisk from the given directory (found online and modified slightly to take a directory)
    Code:
    Usage: repack_ramdisk  [outputFile]
  • mkbootimg - mkbootimg binary that creates a boot.img file from the given ramdisk and zImage. Updated to a version compiled by me to support the --ramdiskaddr option (ramdisk address) so that even nonstandard boot.img's can be repacked correctly (Use with boot_info for best results).
  • umkbootimg - included for convenience. Not made by me. Original thread here.
  • unpack - wrapper script made by me for the umkbootimg binary^ to unpack the boot.img into a separate directory and then unpack the ramdisk into a sub-directory.

Note: These tools were made for Linux. They may also work on Cygwin, but I have not personally tested them.

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.
Download the required files from the original thread.

Original Thread : http://forum.xda-developers.com/show....php?t=2319018
Press Thanks If helped!
The Following User Says Thank You to aniket.lamba For This Useful Post: [ Click to Expand ]
 
Souroking
Old
#2  
Souroking's Avatar
Senior Member
Thanks Meter 185
Posts: 743
Join Date: May 2012
Location: Kolkata
1+

Sent from my GT-S5360 using Tapatalk 2
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes