Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP Adi_Pat

23rd October 2012, 02:25 PM   |  #1  
Adi_Pat's Avatar
OP Recognized Contributor / Recognized Developer
Flag Mumbai
Thanks Meter: 3,602
 
1,210 posts
Join Date:Joined: Dec 2011
Donate to Me
More


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?



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 Following 45 Users Say Thank You to Adi_Pat For This Useful Post: [ View ]
24th October 2012, 12:40 PM   |  #2  
The-Droidster's Avatar
Senior Member
XDA 24 x 7
Thanks Meter: 812
 
1,120 posts
Join Date:Joined: May 2012
More
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
I don't go to sleep until I utilize my quota of 8 thanx a day!
24th October 2012, 12:44 PM   |  #3  
Adi_Pat's Avatar
OP Recognized Contributor / Recognized Developer
Flag Mumbai
Thanks Meter: 3,602
 
1,210 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Quote:
Originally Posted by The-Droidster

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
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
The Following User Says Thank You to Adi_Pat For This Useful Post: [ View ]
26th October 2012, 04:14 PM   |  #4  
Junior Member
Thanks Meter: 2
 
18 posts
Join Date:Joined: Jun 2012
More
Quote:
Originally Posted by Adi_Pat

Then make changes in Kernel source,
Compile , simply replace the compiled zImage with the one in kernel/zImage .. and run ./pack_cwm.sh

code is..?
27th October 2012, 12:25 PM   |  #5  
Adi_Pat's Avatar
OP Recognized Contributor / Recognized Developer
Flag Mumbai
Thanks Meter: 3,602
 
1,210 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Quote:
Originally Posted by sagitta5499

code is..?

Make changes in source code.
27th October 2012, 07:41 PM   |  #6  
yajnab's Avatar
Recognized Contributor
Flag Kolkata
Thanks Meter: 2,705
 
700 posts
Join Date:Joined: Apr 2012
More
Smile
Man really a dev. Gr8 tool
27th October 2012, 07:49 PM   |  #7  
Adi_Pat's Avatar
OP Recognized Contributor / Recognized Developer
Flag Mumbai
Thanks Meter: 3,602
 
1,210 posts
Join Date:Joined: Dec 2011
Donate to Me
More
Quote:
Originally Posted by yajnab

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
The Following User Says Thank You to Adi_Pat For This Useful Post: [ View ]
27th October 2012, 09:17 PM   |  #8  
Serp87's Avatar
Senior Member
Flag Moscow
Thanks Meter: 79
 
118 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by Adi_Pat

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

password which
27th October 2012, 11:35 PM   |  #9  
'cooleagle''s Avatar
Retired Forum Moderator
Thanks Meter: 1,142
 
1,920 posts
Join Date:Joined: Jan 2012
Quote:
Originally Posted by Serp87

password which

password =
Code:
galaxyrrocks
Cheers !
28th October 2012, 05:18 PM   |  #10  
shoey63's Avatar
Recognized Contributor
Flag Somewhere in Oz...
Thanks Meter: 1,443
 
2,330 posts
Join Date:Joined: Jun 2012
More
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

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes