how to build kerne ramdisk - XDA-University

--------------------------------------------------------------------------------
can someone tell me how to repack the RAMdisk into .img file please
thank you
p.s
i'm building kernel for the xperia x8 and it has no fastboot support

I think pl scripts and makebootimg,(it's been a while since i did that) search you'll find many tuts.
Think there is a simplified tool by ketut, search for ketut kumajaya dev tools.

roofrider said:
I think pl scripts and makebootimg,(it's been a while since i did that) search you'll find many tuts.
Think there is a simplified tool by ketut, search for ketut kumajaya dev tools.
Click to expand...
Click to collapse
yeah i tried that already but the problem is that i don't need boot.img i only need ramdisk and then i pack it in a .ftf file that i flash with xperia flasher

yair25 said:
yeah i tried that already but the problem is that i don't need boot.img i only need ramdisk and then i pack it in a .ftf file that i flash with xperia flasher
Click to expand...
Click to collapse
The last time i checked ramdisk was inside the boot.img, u want to pack that ramdisk alone into a .ftf?
Never had a sony, u'll have ask this in the Xperia forum.

roofrider said:
The last time i checked ramdisk was inside the boot.img, u want to pack that ramdisk alone into a .ftf?
Never had a sony, u'll have ask this in the Xperia forum.
Click to expand...
Click to collapse
let me explain my problem, i've created a .ftf (kernel for xperia x8) and it is boot up but i missed some files inside the ramdisk, so now i need to repack my new ramdisk folder into ramdisk file and i don't know how to do that .

yair25 said:
let me explain my problem, i've created a .ftf (kernel for xperia x8) and it is boot up but i missed some files inside the ramdisk, so now i need to repack my new ramdisk folder into ramdisk file and i don't know how to do that .
Click to expand...
Click to collapse
So u have the ramdisk and now u want to zip it to boot.img-ramdisk.gz?

roofrider said:
So u have the ramdisk and now u want to zip it to boot.img-ramdisk.gz?
Click to expand...
Click to collapse
i need it to packed like this one
i mark it in the picture

yair25 said:
i need it to packed like this one
i mark it in the picture
Click to expand...
Click to collapse
I can barely see the detail but it's enough to say that it's different from what i've been doing with my sammy.
U have to ask about this in xperia forums.

roofrider said:
I can barely see the detail but it's enough to say that it's different from what i've been doing with my sammy.
U have to ask about this in xperia forums.
Click to expand...
Click to collapse
ok, thank you for your help

roofrider said:
I can barely see the detail but it's enough to say that it's different from what i've been doing with my sammy.
U have to ask about this in xperia forums.
Click to expand...
Click to collapse
I was about to direct him to ketut's tools to until I saw the picture
"Everybody gets so much information all day long that they lose their common sense." -Gertrude Stein

EDIT: Poor post by me.
Sent from myushi

So @OP you found any solution?if yes,pls enlighten!
Thanks in adv
Sent from my MT11i using xda premium

http://www.freeyourandroid.com/guide/extract-edit-repack-boot-img-windows
that is all i can propose as i canno't see correctly the attached image.it is tool little for my eyes.
hope it would help.

DSIXDA'S Android Kitchen does it this automatically.
when working folder has been setup:
0 > 12 > w (to extract boot.img)
then you will get BOOT-EXTRACED, inside there will be a ramdisk folder, once finished editing enter "b" to build the boot.img again

Related

[Q] Porting question

Hi! Maybe this question very stupid...
I want to port rom to x8. What can i do with boot.img? On x8 roms it don't exist.
Sorry for my bad english, of course.
nikmaletz55 said:
Hi! Maybe this question very stupid...
I want to port rom to x8. What can i do with boot.img? On x8 roms it don't exist.
Sorry for my bad english, of course.
Click to expand...
Click to collapse
boot.img is something like kernel just delete it :good:
fotak-x said:
boot.img is something like kernel just delete it :good:
Click to expand...
Click to collapse
And that all? thank you very much, bro!
nikmaletz55 said:
And that all? thank you very much, bro!
Click to expand...
Click to collapse
You're welcome :good:
The boot.img is a small(ish) file that contains 2 main parts, the kernel (the brain of the Android system) and the ramdisk (a core set of instructions and binaries that begins the boot process and controls base aspects of the system, such as mountpoints, memory management and startup services. It is often flashed via fastboot command.
We don't have this in our ROMs.

how to make a cwm flashable zip

Can any one teach how to make a cwm flashable zip
No intention of spamming
I did got post in xda didnt got success.....
And is it possible to make a cwm that does not requires device to reboot first?
Regards
Dr. Sanket
drsanket_xperia_u said:
Can any one teach how to make a cwm flashable zip
No intention of spamming
I did got post in xda didnt got success.....
And is it possible to make a cwm that does not requires device to reboot first?
Regards
Dr. Sanket
Click to expand...
Click to collapse
What exactly are you trying to do? And for what phone?
monstaX said:
What exactly are you trying to do? And for what phone?
Click to expand...
Click to collapse
For xperia series... I own a xperia u
There are several mods bt require individual replacement of files and changing of permissions
I intend replacement of a system app wid the new app
Regarding second question of mine
Is it possible to have cwm recovery that can work without switching off the device ( make a nandroid backup takes a lot of time in my xu almost 20 minutes during which the network is off)
Regards
Dr. Sanket
drsanket_xperia_u said:
For xperia series... I own a xperia u
There are several mods bt require individual replacement of files and changing of permissions
I intend replacement of a system app wid the new app
Regarding second question of mine
Is it possible to have cwm recovery that can work without switching off the device ( make a nandroid backup takes a lot of time in my xu almost 20 minutes during which the network is off)
Regards
Dr. Sanket
Click to expand...
Click to collapse
What you should do is download a theme for the xu and just leave the META-INF folder in the theme.zip alone and edit the rest of the folders to your liking.
monstaX said:
What you should do is download a theme for the xu and just leave the META-INF folder in the theme.zip alone and edit the rest of the folders to your liking.
Click to expand...
Click to collapse
Will that b enough?? Are cwm flashable zips need to signed??
Regards
Dr. Sanket
drsanket_xperia_u said:
Will that b enough?? Are cwm flashable zips need to signed??
Regards
Dr. Sanket
Click to expand...
Click to collapse
Not really. Just use 7zip. The Apks are the ones that usually need to be signed. As long as you use the original theme.zip you would download and just replace apks inside you shouldnt have any problems
monstaX said:
Not really. Just use 7zip. The Apks are the ones that usually need to be signed. As long as you use the original theme.zip you would download and just replace apks inside you shouldnt have any problems
Click to expand...
Click to collapse
Will give it a try and let u knw
Sorry if I spammed
Regards
Dr. Sanket
drsanket_xperia_u said:
Will give it a try and let u knw
Sorry if I spammed
Regards
Dr. Sanket
Click to expand...
Click to collapse
No worries I only know basics also. Just hit the thanks button!
drsanket_xperia_u said:
For xperia series... I own a xperia u
Regarding second question of mine
Is it possible to have cwm recovery that can work without switching off the device ( make a nandroid backup takes a lot of time in my xu almost 20 minutes during which the network is off)
Regards
Dr. Sanket
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1620255
There's an app called online android backup on the market it might be what you're looking for?
don't be scared it's only a phone
ogd x d2g x2 sg3
old ladies ^
I wan't to repackage the XXLSJ leak as CWM flashable zip (I know roms based on it exist) but still want to cook my own.
monstaX said:
Not really. Just use 7zip. The Apks are the ones that usually need to be signed. As long as you use the original theme.zip you would download and just replace apks inside you shouldnt have any problems
Click to expand...
Click to collapse
There is a guide that covers edify scripting. That should help you make an update.zip yourself from scratch.
pulser_g2 said:
There is a guide that covers edify scripting. That should help you make an update.zip yourself from scratch.
Click to expand...
Click to collapse
Sir will u plz tell me in which forum I shall find it?
drsanket_xperia_u said:
Sir will u plz tell me in which forum I shall find it?
Click to expand...
Click to collapse
xda-u 'Zip-based tweaking' guide will give you an insight and teach you the basics about it
"Anger and intolerance are the enemies of correct understanding." -Mahatma Gandhi
---------- Post added at 02:01 PM ---------- Previous post was at 02:00 PM ----------
drraptor said:
I wan't to repackage the XXLSJ leak as CWM flashable zip (I know roms based on it exist) but still want to cook my own.
Click to expand...
Click to collapse
Writing an update script from scratch is not only time consuming but also risky.If you don't know what you are doing, then you should stay away from writing it from scratch
"Anger and intolerance are the enemies of correct understanding." -Mahatma Gandhi
drsanket_xperia_u said:
Sir will u plz tell me in which forum I shall find it?
Click to expand...
Click to collapse
This was written for the Galaxy Nexus, but you should be able to pull out the info you need.
kernel
are all .zip kernels can flash via cwm??
Does Aroma count, it makes flashable .apks easily
// sent from a galactic Ars Sss

[ToolKIT][Recovery.img or Boot.img to md5][GALAXY TAB 2]

Guys I Present YOU my Simple Conveter...
easy as hell...
SO WHAT I BASICLY DOES??
So this script makes a tar.md5 package for flash with from recovery.img or Boot.img to a package for flash with odin
For Galaxy Tab 2 Only. Have you always found recovery.imgs or Boot.imgs for galaxy tab tab 2 ONLY and just don't know how. Well this script does it for you.
Click to expand...
Click to collapse
How to use this script!!
1.First download the script From the attachments
2.Extract the recoverytools folder to the root of you C: Or It won't WORK!!!
3.Run the script_convert
4.Follow the instructions there is also an option to push the recovery.tar.md5 or Boot.tar.md5 to your sdcard to flash for mobile odin
Click to expand...
Click to collapse
Don't forget to hit the thanks button!!
VERSION 2 With new Ui And option to add boot.img to and md5 file !!
reserved
last one!
Deleted
Thanks for it!
mythi said:
...For Galaxy Tab 2 Only...
Click to expand...
Click to collapse
Thought it´s the same converting process for every Samsung device, isn´t it?
mythi said:
...2.Extract the recoverytools folder to the root of you C: Or It won't WORK!!!...
Click to expand...
Click to collapse
No Converting problems running it from desktop and from "D:\Backup\ComputerSoftware\Android\Tools\recoverytools\"
Running Windows 8 Pro x64.
Dind´t need to flash recovery yet. Hope it works if i need
How to use on PhilZ-blackhawk-repack.zip to make it flashable ? (http://forum.xda-developers.com/showpost.php?p=39935850&postcount=89)
Extract "recovery.img" from PhilzBlackhawk.zip and convert?
I made a new script for you Look´s a littlebit nicer.
I like how you just copy-pasted a bunch of cygwin files.
i haven't knowen how to convert on windows untill this post.
i think it's ok for copy&paste in this case,or do you have any other idea without setting up a linux (e.g. virtual maschine)?
Luigi2012SM64DS said:
I like how you just copy-pasted a bunch of cygwin files.
Click to expand...
Click to collapse
Actually i wrote the script by my self so please if don't like it don't use it
Android-Andi said:
I made a new script for you Look´s a littlebit nicer.
Click to expand...
Click to collapse
Thanks @Android-Andi but please forgive i can't use your script because i want to do it myself it is still in early 0.1 i am preparing somethings big for our tab other than this small script.
Android-Andi said:
Thanks for it!
Thought it´s the same converting process for every Samsung device, isn´t it?
Click to expand...
Click to collapse
Well i think it will work on other devices but i can't garuntee
Click to expand...
Click to collapse
Maybe @ketut.kumajaya or @Luigi2012SM64DS knows(?):
How to use on PhilZ-blackhawk-repack.zip to make it flashable ?
Only extract "recovery.img" from PhilzBlackhawk.zip and convert?
Android-Andi said:
Maybe @ketut.kumajaya or @Luigi2012SM64DS knows(?):
How to use on PhilZ-blackhawk-repack.zip to make it flashable ?
Only extract "recovery.img" from PhilzBlackhawk.zip and convert?
Click to expand...
Click to collapse
I don't understand what you mean. Are you saying that you can make a flashable zip using the recovery.img? Thats what it already does.
Here's the part in the updater script :
package_extract_file("recovery.img", "/tmp/recovery.img");
write_raw_image("/tmp/recovery.img", "/dev/block/mmcblk0p6");
delete("/tmp/recovery.img");
Luigi2012SM64DS said:
I don't understand what you mean. Are you saying that you can make a flashable zip using the recovery.img? Thats what it already does.
Here's the part in the updater script :
package_extract_file("recovery.img", "/tmp/recovery.img");
write_raw_image("/tmp/recovery.img", "/dev/block/mmcblk0p6");
delete("/tmp/recovery.img");
Click to expand...
Click to collapse
Sorry for my english
I want to make a PhilZ-Blackhawk.tar.md5 to use with Odin.
Is it possible with this tool?
Android-Andi said:
Sorry for my english
I want to make a PhilZ-Blackhawk.tar.md5 to use with Odin.
Is it possible with this tool?
Click to expand...
Click to collapse
Yes of course just extract the recoverly.img with 7zip and use the tool
Android-Andi said:
Sorry for my english
I want to make a PhilZ-Blackhawk.tar.md5 to use with Odin.
Is it possible with this tool?
Click to expand...
Click to collapse
Yeah.
But I already made one that installs next kernel at the same time. It doesnt make any root files thats what philz does automaticly.
Luigi2012SM64DS said:
Yeah.
But I already made one that installs next kernel at the same time. It doesnt make any root files thats what philz does automaticly.
Click to expand...
Click to collapse
@Luigi2012SM64DS just a suggestion, you created with kernel 1.6 which is not compatible for stock 4.2.2 so it can't applied.
it will be great if you create it without kernel, only recovery and superSU
Edit: Doing it now.
Sent from my LG-P690b using Tapatalk 2
Luigi2012SM64DS said:
Edit: Doing it now.
Sent from my LG-P690b using Tapatalk 2
Click to expand...
Click to collapse
i think you can modifie the .bat to use on windows
Android-Andi said:
i think you can modifie the .bat to use on windows
Click to expand...
Click to collapse
Acutally I can do everything all up to rebuilding the cache.img. That one step REQUIRES Linux. Luckily my stupid brain remembered my laptop with Linux on it so I'm using that right now.
---------- Post added at 12:46 AM ---------- Previous post was at 12:34 AM ----------
Android-Andi said:
i think you can modifie the .bat to use on windows
Click to expand...
Click to collapse
@Android-Andi Oh wait. I wasn't making it clear. This tool just takes a recovery.img and makes it into a Odin flashable tar.md5. To root you need the recovery AND a cache.img. Since I have to modify the cache.img I can't do it in windows since the tools are only made for Linux. And I actually canceled the upload since next 1.8 or next 2.0 is right around the corner.

[Q] How to add Recovery to my flashable ROM?

Hi dear XDA Members,
I extracted ftf and i am making a flashable rom but i don't know how to add recovery to my rom. Thanks in advance
f_u_006 said:
Hi dear XDA Members,
I extracted ftf and i am making a flashable rom but i don't know how to add recovery to my rom. Thanks in advance
Click to expand...
Click to collapse
The best way to learn this is to pull apart a already created zip and see what is done. I involves a few lines in the updater script and boot.img with kernel and recovery
blueether said:
The best way to learn this is to pull apart a already created zip and see what is done. I involves a few lines in the updater script and boot.img with kernel and recovery
Click to expand...
Click to collapse
Well... i did this but i don't like cheating! Infact i wanna learn something...
No guide is going to tell you any more than that, unless you want a guide on how to build one from scratch
Sent from my Xperia Z Ultra using Tapatalk

[Request]Vendor from C5503 stock kitkat ROM 10.5.A.0.203

Hi,
Can someone please upload vendor folder from system on kitkat stock rom build 10.5.A.0.230?
I need it for pre-rooted zip I'm making
thanks
sijav said:
Hi,
Can someone please upload vendor folder from system on kitkat stock rom build 10.5.A.0.230?
I need it for pre-rooted zip I'm making
thanks
Click to expand...
Click to collapse
Here you go.
Once you unzip vendor.zip, you will see that 'lib' folder is missing,
so unzip the lib.zip and move lib folder inside vendor folder.
due to xda's 'rules' about attachment, i had to do this, sorry about that.
ajeesh.m said:
Here you go.
Once you unzip vendor.zip, you will see that 'lib' folder is missing,
so unzip the lib.zip and move lib folder inside vendor folder.
due to xda's 'rules' about attachment, i had to do this, sorry about that.
Click to expand...
Click to collapse
lots of thanks mate
it's from C5503 right?
sijav said:
lots of thanks mate
it's from C5503 right?
Click to expand...
Click to collapse
OH NO.....
This one is from C5502, sorry dear.
I thought this will work.
sijav said:
Hi,
Can someone please upload vendor folder from system on kitkat stock rom build 10.5.A.0.230?
I need it for pre-rooted zip I'm making
thanks
Click to expand...
Click to collapse
I have sent you a PM with a link to the folder
Mario.D said:
I have sent you a PM with a link to the folder
Click to expand...
Click to collapse
thanks to you the pre-rooted has been made now, only matter of time to upload this huge rom with my slowest internet connection!!!
I already done it. http://forum.xda-developers.com/showthread.php?t=2765062
Thibou said:
I already done it. http://forum.xda-developers.com/showthread.php?t=2765062
Click to expand...
Click to collapse
you already done what exactly?
EDIT: you mean the prerooted? where did you get your update-script?
sijav said:
you already done what exactly?
EDIT: you mean the prerooted? where did you get your update-script?
Click to expand...
Click to collapse
Yes the pre-root.
As mentionned in OP, I use [NUT] 's DIY Guide.
hi. can someone download the Sony experia c5503 vendor file. I accidentally deleted it.

Categories

Resources