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

Search This thread

mj.vikram

Senior Member
Mar 2, 2012
2,729
2,421
XDA 24 X 7
Last edited:
  • Like
Reactions: D™

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