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

[Q] Unpacking CM boot image

OP Bytecode

9th July 2013, 09:14 PM   |  #1  
Bytecode's Avatar
OP Recognized Developer
Flag /dev/null
Thanks Meter: 4,461
 
2,593 posts
Join Date:Joined: Dec 2010
More
Hello guys, I've been struggling since two and a half hours now to unpack boot.img taken from cm10.1 zip (get.cm). I have an error about the magic header, here it is.

Code:
Android Magic not found in boot.img. Giving up.
Fyi, I need to unpack/repack the boot image to change the bootlogo and kernel.
I've tried with any tool available (dsixda kitchen, championswimmer kernel kitchen, simple mkbootimg or unmkbootimg, xperia boot tools and more), no results. Anyone please?
9th July 2013, 11:51 PM   |  #2  
gregbradley's Avatar
Forum Moderator
Flag Manchester
Thanks Meter: 4,556
 
10,001 posts
Join Date:Joined: Mar 2011
Donate to Me
More
Try asking in the question and answer section, that may help

Sent from the luxury of my tent
10th July 2013, 12:50 AM   |  #3  
Recognized Themer
Thanks Meter: 1,072
 
1,180 posts
Join Date:Joined: Nov 2011
More
That's actually a kernel.elf, not boot.img Rename it to kernel.elf, and use the kernel kitchen to extract it's contents.

..
The Following 6 Users Say Thank You to NuriJ For This Useful Post: [ View ]
10th July 2013, 02:35 PM   |  #4  
Bytecode's Avatar
OP Recognized Developer
Flag /dev/null
Thanks Meter: 4,461
 
2,593 posts
Join Date:Joined: Dec 2010
More
Quote:
Originally Posted by NuriJ

That's actually a kernel.elf, not boot.img Rename it to kernel.elf, and use the kernel kitchen to extract it's contents.

..

Thank you man, you're a lifesaver. It works.
The Following User Says Thank You to Bytecode For This Useful Post: [ View ]
13th February 2014, 07:11 PM   |  #5  
tOrNadO™'s Avatar
Recognized Contributor
Flag Bangalore
Thanks Meter: 1,049
 
2,079 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by NuriJ

That's actually a kernel.elf, not boot.img Rename it to kernel.elf, and use the kernel kitchen to extract it's contents.

..

Hi.. I found this dead thread when i googled for the same thing that OP also had,, I managed to unpack the kernel's boot.img by renaming it to kernel.elf.. I have to edit init,rc file in order to get bootclasspath lines from a cm10 fxp kernel and put it in my port ROM's init.rc and replace the bootclasspath.. But i never found init.rc file anywhere, there is an init file which doesn't have a bootclasspath but only PATH.. Can u help me with this?
18th February 2014, 09:46 PM   |  #6  
Recognized Themer
Thanks Meter: 1,072
 
1,180 posts
Join Date:Joined: Nov 2011
More
Quote:
Originally Posted by tOrNadO_007™

Hi.. I found this dead thread when i googled for the same thing that OP also had,, I managed to unpack the kernel's boot.img by renaming it to kernel.elf.. I have to edit init,rc file in order to get bootclasspath lines from a cm10 fxp kernel and put it in my port ROM's init.rc and replace the bootclasspath.. But i never found init.rc file anywhere, there is an init file which doesn't have a bootclasspath but only PATH.. Can u help me with this?

Are you looking in ramdisk?
19th February 2014, 05:01 AM   |  #7  
tOrNadO™'s Avatar
Recognized Contributor
Flag Bangalore
Thanks Meter: 1,049
 
2,079 posts
Join Date:Joined: Oct 2012
Donate to Me
More
Quote:
Originally Posted by NuriJ

Are you looking in ramdisk?

Yes.. I did that too.. Unfortunately all the methods didn't work.. One simple method worked though.. Change the permissions of all the unpacked files and mount the ramdisk.img and then extract it and change contents of any file of your choice and then repack it.. It works like a charm..

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

Advanced Search
Display Modes