• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[TOOLS][HOW-TO] One Click Scripts to Pack/Unpack boot.img

Search This thread

Adi_Pat

Senior Member
Dec 19, 2011
1,210
3,566
Mumbai


This is for all ROM cooks, Kernel devs or anyone who wants to make quick changes to the Kernel or ramdisk without wasting much time!

I made or rather put together some scripts for-

All this happens in just one click ;)

  • Unpack boot.img
  • Repack boot.img
  • Make CWM flashable signed zip


Its very easy to use. Download the tools (At the end of the post)

Extract them..

In the root of the extracted files place the boot.img you wanna mod.
Then,
To unpack the Kernel-

Code:
 ./extract.sh

Your zImage will be in kernel/zImage
Your ramdisk will be in ramdisk folder (unpacked)


Make the necessary changes.. whatever you wish.

Then to pack up everything and get output as boot.img , run.

Code:
 ./pack_boot.sh

Your repacked boot.img will be in out/boot.img


OR.

If you want a CWM Flashable zip,

Code:
 ./pack_cwm.sh

The flashable zip will be out/GT-I9103_KERNEL.zip


Easy eh? :laugh:



DOWNLOAD

On a side note,

What in contains:
  • My scripts
  • mkbootimg, unpackbootimg and mkbootfs binaries (Compiled from latest CM Source)
  • signapk.jar and necessary files (To Sign Zip file)

 

The-Droidster

Senior Member
May 27, 2012
1,292
889
XDA 24 x 7
Thanx a bunch for this. I have boot image of a stock gb kernel and want to just add voodoo sound and increase the max brightness level a bit. Is that possible using this tool?

Thanx!!:)

Tapatalked from my Galaxy R GT-I9103 using XDA Premium App :p
I don't go to sleep until I utilize my quota of 8 thanx a day!
 

Adi_Pat

Senior Member
Dec 19, 2011
1,210
3,566
Mumbai
Thanx a bunch for this. I have boot image of a stock gb kernel and want to just add voodoo sound and increase the max brightness level a bit. Is that possible using this tool?

Thanx!!:)

Tapatalked from my Galaxy R GT-I9103 using XDA Premium App :p
I don't go to sleep until I utilize my quota of 8 thanx a day!
Then make changes in Kernel source,
Compile , simply replace the compiled zImage with the one in kernel/zImage .. and run ./pack_cwm.sh
 
  • Like
Reactions: The-Droidster

Adam77Root

Inactive Recognized Developer
Jul 3, 2012
2,535
11,160
It works if it uses the same boot.img format (I mean there are e.g. Sony devices that has some different kernel image structure.).

Sent from my GT-I9103
 

D™

Senior Member
It works if it uses the same boot.img format (I mean there are e.g. Sony devices that has some different kernel image structure.).

Sent from my GT-I9103

My friend has it buddy bt its like samsung grand splash in water. Also about the kernel, if u said then i will test it in my friend's mobile. Will it brick it if wont load that kernel??

Sent from my GT-I9103 using Tapatalk HD
 

Top Liked Posts

  • There are no posts matching your filters.
  • 48


    This is for all ROM cooks, Kernel devs or anyone who wants to make quick changes to the Kernel or ramdisk without wasting much time!

    I made or rather put together some scripts for-

    All this happens in just one click ;)

    • Unpack boot.img
    • Repack boot.img
    • Make CWM flashable signed zip


    Its very easy to use. Download the tools (At the end of the post)

    Extract them..

    In the root of the extracted files place the boot.img you wanna mod.
    Then,
    To unpack the Kernel-

    Code:
     ./extract.sh

    Your zImage will be in kernel/zImage
    Your ramdisk will be in ramdisk folder (unpacked)


    Make the necessary changes.. whatever you wish.

    Then to pack up everything and get output as boot.img , run.

    Code:
     ./pack_boot.sh

    Your repacked boot.img will be in out/boot.img


    OR.

    If you want a CWM Flashable zip,

    Code:
     ./pack_cwm.sh

    The flashable zip will be out/GT-I9103_KERNEL.zip


    Easy eh? :laugh:



    DOWNLOAD

    On a side note,

    What in contains:
    • My scripts
    • mkbootimg, unpackbootimg and mkbootfs binaries (Compiled from latest CM Source)
    • signapk.jar and necessary files (To Sign Zip file)

    4
    Can you post a download that doesnt have locked files. Password doesnt work..

    Attached!
    1
    Thanx a bunch for this. I have boot image of a stock gb kernel and want to just add voodoo sound and increase the max brightness level a bit. Is that possible using this tool?

    Thanx!!:)

    Tapatalked from my Galaxy R GT-I9103 using XDA Premium App :p
    I don't go to sleep until I utilize my quota of 8 thanx a day!
    Then make changes in Kernel source,
    Compile , simply replace the compiled zImage with the one in kernel/zImage .. and run ./pack_cwm.sh
    1
    Man really a dev. Gr8 tool

    You can use it for your fit too. Simply change base address. Or may even work as it is. Password for zip is galaxyrrocks

    Sent from my GT-I9003 using xda premium
    1
    Would this work on galaxy note n7000 stock kernels if zImage were renamed to boot.img?

    Sent from my GT-N7000 using xda app-developers app
    For N7000 you can use these tools since its a zImage Kernel and not kernel+ramdisk like GalaxyR.


    https://github.com/xiaolu/galaxys2_kernel_repack