Jump to content

Extracting Kernels from Boot.img


Recommended Posts

Guest Harness
Posted (edited)

I'm having a really tough time with this. Maybe some of the experts can suggest something, but I can't figure it out.

I've used every tool I've got (out of avabox v2) extract-kernel, unpack-bootimg, split-bootimg, etc.. It always results in either a boot.img-kernel file (no extension) or boot.img-kernel.gz file, that when I try to extract I get "Not in gzip format".

Is there something I'm doing wrong or a step I'm skipping somewhere?

Harness.

Edit: Ubuntu 10.10 32bit (upgrading to 64bit today)

Edited by Harness
Posted

u do all right. any boot extact tool only split img file at kernel and ramdisk. kernel after compiling usually gzipped, but gzip signature start at 0x800 offset, so gzip cant extract it. what u want to do with binary kernel?

Guest Harness
Posted
u do all right. any boot extact tool only split img file at kernel and ramdisk. kernel after compiling usually gzipped, but gzip signature start at 0x800 offset, so gzip cant extract it. what u want to do with binary kernel?

Poke around a bit. Familiarize myself, for now anyhow.

How do I make it extractable?

Posted

Just rename the file by removing the extention. You have now your kernel.

The unpack script add the gzip but it's useless.

Guest Harness
Posted (edited)
Just rename the file by removing the extention. You have now your kernel.

The unpack script add the gzip but it's useless.

It's supposed to be 1 big file? It's not comprised of various files/folders?

Edited by Harness
Posted

long time ago we patched binary kernel for custom mtd table on moto ezx platform, but its wrong way and usable if u havent sources

Guest Harness
Posted (edited)

So I'm confused then.. what do I do with my one big file...

Edit: Or are you saying I can't use it because I lack kernel sources?

Edited by Harness
Posted
So I'm confused then.. what do I do with my one big file...

Edit: Or are you saying I can't use it because I lack kernel sources?

Right, you can't do anything with a compiled kernel. It's not "unpackable" or something like that.

Guest Harness
Posted
Right, you can't do anything with a compiled kernel. It's not "unpackable" or something like that.

Okay. So if I were to put a new kernel in something, I'd have to compile phh kernel or Cyanogens,I couldn't mod what's already there then, right?

Harness.

Posted
Okay. So if I were to put a new kernel in something, I'd have to compile phh kernel or Cyanogens,I couldn't mod what's already there then, right?

Harness.

Right.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.