Hello guys
I have a little problem.
I builded kernel, but i have got only image and Zimage.
How can i extract ramdisk (for mkbooimg) ? Thanks
I usually do that using dsixda's Android Kitchen
or I leave the zImage as it is, and flash it with some tools (flashable zip that already made to flash zImages)
Install p7zip-full package. Then the kernel from which you need ramdisk, just do this- 7z e kernel_name.elf
It'll give 3 files, 0(zImage), 1(Ramdisk), 2(cmdline).
Cheers,
AJ
Yep, i try, but i have black screen when boot smarthphone.
Perhaps i do an error....
As far as i know, tearing down kernel with 7zip (or similar) breaks symlinking. I've read that somewhere, don't remember where. Either way, it breaks something. You could unpack kernel.elf with Flashtool, it will give you image, ramdisk.gz, and maybe file called cert or 3 (it depends). If kernel is boot.img instead of kernel.elf, just rename it to kernel.elf.
if you need help on packing/repacking kernel or ramdisk, PM me, I will help you as much as I can.
Reported!Hello guys
I have a little problem.
I builded kernel, but i have got only image and Zimage.
How can i extract ramdisk (for mkbooimg) ? Thanks
This should be in Q&A section not in Development section! REPORTED!
Anyway, you can use championswimmer's Android Kernel Kitchen to extract your kernel for getting zImage, ramdisk and the contents of the ramdisk :good:
It won't work. If you want just to extract use flashtool. Unpacking with 7-zip will destroy symlinks and packing again will never work. To use flashtool rename boot.img to boot.elf. Choose Tools>Extractors>Elf and choose your boot.elf file you renamed previously. Then press dump and close. It should be in the same folder with the boot.elf file. (boot.elf was always a renamed boot.img file ) BTW wrong section
It won't work. If you want just to extract use flashtool. Unpacking with 7-zip will destroy symlinks and packing again will never work. To use flashtool rename boot.img to boot.elf. Choose Tools>Extractors>Elf and choose your boot.elf file you renamed previously. Then press dump and close. It should be in the same folder with the boot.elf file. (boot.elf was always a renamed boot.img file ) BTW wrong section
I'm pretty sure that championswimmer's tool works, because I used it just a week ago to extract a kernel and it worked like a charm
However, Flashtool method is OK too
I usually do that using dsixda's Android Kitchen
or I leave the zImage as it is, and flash it with some tools (flashable zip that already made to flash zImages)
Reported!Hello guys
I have a little problem.
I builded kernel, but i have got only image and Zimage.
How can i extract ramdisk (for mkbooimg) ? Thanks
It won't work. If you want just to extract use flashtool. Unpacking with 7-zip will destroy symlinks and packing again will never work. To use flashtool rename boot.img to boot.elf. Choose Tools>Extractors>Elf and choose your boot.elf file you renamed previously. Then press dump and close. It should be in the same folder with the boot.elf file. (boot.elf was always a renamed boot.img file ) BTW wrong section