5,595,691 Members 44,174 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Adi_Pat
Old
#1  
Adi_Pat's Avatar
Recognized Developer / Contributor - OP
Thanks Meter 3597
Posts: 1,210
Join Date: Dec 2011
Location: Mumbai

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



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)

Contributions:

Galaxy SL , Galaxy R, Galaxy S Advance, HTC One V


Support my work on Facebook.

Follow me on Twitter.

Current Project: Linux Kernel 3.0.y port for Galaxy SL i9003

Don't be a leech Donate to me if you think my work has ever made your day!
Big thanks to all who donated !
The Following 43 Users Say Thank You to Adi_Pat For This Useful Post: [ Click to Expand ]
 
The-Droidster
Old
#2  
The-Droidster's Avatar
Senior Member
Thanks Meter 779
Posts: 1,070
Join Date: May 2012
Location: 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
I don't go to sleep until I utilize my quota of 8 thanx a day!
 
Adi_Pat
Old
#3  
Adi_Pat's Avatar
Recognized Developer / Contributor - OP
Thanks Meter 3597
Posts: 1,210
Join Date: Dec 2011
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by The-Droidster View Post
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
Contributions:

Galaxy SL , Galaxy R, Galaxy S Advance, HTC One V


Support my work on Facebook.

Follow me on Twitter.

Current Project: Linux Kernel 3.0.y port for Galaxy SL i9003

Don't be a leech Donate to me if you think my work has ever made your day!
Big thanks to all who donated !
The Following User Says Thank You to Adi_Pat For This Useful Post: [ Click to Expand ]
 
sagitta5499
Old
#4  
Junior Member
Thanks Meter 2
Posts: 18
Join Date: Jun 2012
Quote:
Originally Posted by Adi_Pat View Post
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..?
 
Adi_Pat
Old
#5  
Adi_Pat's Avatar
Recognized Developer / Contributor - OP
Thanks Meter 3597
Posts: 1,210
Join Date: Dec 2011
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by sagitta5499 View Post
code is..?
Make changes in source code.
Contributions:

Galaxy SL , Galaxy R, Galaxy S Advance, HTC One V


Support my work on Facebook.

Follow me on Twitter.

Current Project: Linux Kernel 3.0.y port for Galaxy SL i9003

Don't be a leech Donate to me if you think my work has ever made your day!
Big thanks to all who donated !
 
yajnab
Old
#6  
yajnab's Avatar
Recognized Contributor
Thanks Meter 2436
Posts: 659
Join Date: Apr 2012
Location: Purulia

 
DONATE TO ME
Man really a dev. Gr8 tool
Device-Samsung Galaxy Fit (S5670)(Beni)
Find My all works at - https://github.com/yajnab



I Will be off till of June, 2014 due to Exams. Sorry for Inconvenience
 
Adi_Pat
Old
#7  
Adi_Pat's Avatar
Recognized Developer / Contributor - OP
Thanks Meter 3597
Posts: 1,210
Join Date: Dec 2011
Location: Mumbai

 
DONATE TO ME
Quote:
Originally Posted by yajnab View Post
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
Contributions:

Galaxy SL , Galaxy R, Galaxy S Advance, HTC One V


Support my work on Facebook.

Follow me on Twitter.

Current Project: Linux Kernel 3.0.y port for Galaxy SL i9003

Don't be a leech Donate to me if you think my work has ever made your day!
Big thanks to all who donated !
The Following User Says Thank You to Adi_Pat For This Useful Post: [ Click to Expand ]
 
Serp87
Old
#8  
Serp87's Avatar
Senior Member
Thanks Meter 79
Posts: 118
Join Date: Feb 2012
Location: Moscow
Quote:
Originally Posted by Adi_Pat View Post
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
 
'cooleagle'
Old
#9  
'cooleagle''s Avatar
Retired Forum Moderator
Thanks Meter 1135
Posts: 1,915
Join Date: Jan 2012
Quote:
Originally Posted by Serp87 View Post
password which
password =
Code:
galaxyrrocks
Cheers !
 
shoey63
Old
#10  
shoey63's Avatar
Recognized Contributor
Thanks Meter 1233
Posts: 2,084
Join Date: Jun 2012
Location: Somewhere in Oz...
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes