Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,676 Members 51,592 Now Online
XDA Developers Android and Mobile Development Forum

How can i extract ramdisk ?

Tip us?
 
gigitux
Old
#1  
gigitux's Avatar
Senior Member - OP
Thanks Meter 86
Posts: 243
Join Date: Oct 2012
Location: Napoli
Default How can i extract ramdisk ?

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
 
OmarEinea
Old
#2  
OmarEinea's Avatar
Recognized Developer
Thanks Meter 1607
Posts: 996
Join Date: Aug 2012
Location: Saudi Arabia, Dhahran
Quote:
Originally Posted by gigitux View Post
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)
 
gigitux
Old
#3  
gigitux's Avatar
Senior Member - OP
Thanks Meter 86
Posts: 243
Join Date: Oct 2012
Location: Napoli
Quote:
Originally Posted by omarainea View Post
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)
I can't :'(

Please test this, it would kernel 3.1 :|

Image: http://www.mediafire.com/download/o9907fm1q7leq58/Image

Zimage: http://www.mediafire.com/download/g1...e64g344/zImage


Thanks
The Following User Says Thank You to gigitux For This Useful Post: [ Click to Expand ]
 
Abhinav2
Old
#4  
Abhinav2's Avatar
Recognized Contributor / Themer
Thanks Meter 4438
Posts: 2,250
Join Date: Jul 2012
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
 
gigitux
Old
#5  
gigitux's Avatar
Senior Member - OP
Thanks Meter 86
Posts: 243
Join Date: Oct 2012
Location: Napoli
Quote:
Originally Posted by Abhinav2 View Post
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....
 
evildev
Old
#6  
evildev's Avatar
Senior Member
Thanks Meter 371
Posts: 312
Join Date: Jul 2013
Location: Jagodina

 
DONATE TO ME
Quote:
Originally Posted by gigitux View Post
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.
 
gigitux
Old
#7  
gigitux's Avatar
Senior Member - OP
Thanks Meter 86
Posts: 243
Join Date: Oct 2012
Location: Napoli
Quote:
Originally Posted by evildev View Post
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.
There are links for download Image and zImage.
 
pipi14
Old
#8  
pipi14's Avatar
Senior Member
Thanks Meter 1002
Posts: 994
Join Date: Sep 2011
Location: Kuressaare
Quote:
Originally Posted by gigitux View Post
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
Reported!
Device: Galaxy Trend GT-S7560
ROM: CyanogenMod 11.0
Device: Xperia Ray ST18i urushi
ROM: CyanogenMod 11.0
Device: Xperia U ST25i kumquat DEAD
ROM: CyanogenMod 11.0
unlocked boot loader
Hit "Thanks" button if I helped you.
Atmozfears & Energyzed - Rapture "Go forth to the light of things, let nature be your teacher."
Rebourne - Leaving
The Following User Says Thank You to pipi14 For This Useful Post: [ Click to Expand ]
 
Garcia98
Old
#9  
Garcia98's Avatar
Senior Member
Thanks Meter 678
Posts: 674
Join Date: Mar 2013
Location: Salamanca (Spain)

 
DONATE TO ME
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


Sony Xperia U (ST25i)
ROM: XperiaSTE CM 11.0
Kernel: BraveKernel 3.0.101
Recovery: Team Win Recovery Project v2.7.0
Governor: INTERACTIVE
I/O Scheduler: SIOPLUS


Kernel 3.0.101: BraveKernel 3.0.101 for KK
 
Andrewasth
Old
#10  
Senior Member
Thanks Meter 1274
Posts: 1,434
Join Date: Jan 2013
Location: Athens
Quote:
Originally Posted by Garcia98 View Post
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
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes