FORUMS
Post Reply Subscribe to Thread Email Thread

[Q] Unpacking CM boot image

9th July 2013, 08:14 PM |#1  
Bytecode's Avatar
OP Recognized Developer
Flag /dev/null
Thanks Meter: 4,461
 
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, 10:51 PM |#2  
gregbradley's Avatar
Forum Moderator
Flag King Grumpy Lord from Frown Town, Grumpy Land
Thanks Meter: 5,062
 
Donate to Me
More
Try asking in the question and answer section, that may help

Sent from the luxury of my tent
9th July 2013, 11:50 PM |#3  
Recognized Themer
Thanks Meter: 1,072
 
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, 01:35 PM |#4  
Bytecode's Avatar
OP Recognized Developer
Flag /dev/null
Thanks Meter: 4,461
 
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, 06:11 PM |#5  
tOrNadO™'s Avatar
Recognized Contributor
Flag Bangalore
Thanks Meter: 1,132
 
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, 08:46 PM |#6  
Recognized Themer
Thanks Meter: 1,072
 
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, 04:01 AM |#7  
tOrNadO™'s Avatar
Recognized Contributor
Flag Bangalore
Thanks Meter: 1,132
 
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