Ramdisk in stock rom - Sony Ericsson XPERIA X10 Mini

Hi. How can i add a ramdisk file on a 2.1 stock rom. Or is there any other file that i can change default options like ramdisk
Sent from my U20i using XDA Premium App

Come on... not a single reply?
How can I have ramdisk on Stock ROM?
I want to distribute a Stock ROM with minor tweaks only, and I need to make some /data default options, and I think its from tthe ramdisk.
Or am I wrong? Do I have an alternate option?

bitmovel said:
Come on... not a single reply?
How can I have ramdisk on Stock ROM?
I want to distribute a Stock ROM with minor tweaks only, and I need to make some /data default options, and I think its from tthe ramdisk.
Or am I wrong? Do I have an alternate option?
Click to expand...
Click to collapse
make a backup with xRec or CWM?

You need to use booy hijacking check any chargemon file in cm mod
Try to apply it on stock and put ramdisk in /system/bin
(Chargemon is also in bin)
Sent from my Optimus 2X using XDA Premium App

owain94 said:
You need to use booy hijacking check any chargemon file in cm mod
Try to apply it on stock and put ramdisk in /system/bin
(Chargemon is also in bin)
Sent from my Optimus 2X using XDA Premium App
Click to expand...
Click to collapse
thank you for the reply (big thanks!)
I already tried to extract ramdisk from boot.img, but I cannot find the correct boot.img
Where should I get that?
I dont see it on flastool firmwares or xrec backups.
All I have in flashtools are amss.sin amss_fs.sin cache.sin fota0.sin fota1.sin kernel.sin loader.sin system.sin userdata.sin

bitmovel said:
thank you for the reply (big thanks!)
I already tried to extract ramdisk from boot.img, but I cannot find the correct boot.img
Where should I get that?
I dont see it on flastool firmwares or xrec backups.
All I have in flashtools are amss.sin amss_fs.sin cache.sin fota0.sin fota1.sin kernel.sin loader.sin system.sin userdata.sin
Click to expand...
Click to collapse
you can use the regular ramdisk however you'll need to change chargemon to extract your chroot correctly.
best would be to make a copy of stock roms / path files and copy these into your ramdisk (see ramdisk which files you'll need)

but you mean all ramdisk files are the same?
could I just take ramdisk from your CM6 v5?

bitmovel said:
but you mean all ramdisk files are the same?
could I just take ramdisk from your CM6 v5?
Click to expand...
Click to collapse
not all the same but yes they do the same thing basically. some are tweaked a bit considering the configuration.
but the point is the ramdisk just chroots the system from virtual extracted path to system root. and provides the files for booting.
so you should be able to use the ramdisk.
of course be careful no gurantee

thanks for the reply.
I will try a manual path / dir creation
What files on /data would be present on a clean stock ROM? :-s
If I format data on xrecovery and imidiatly make a backup, that data.img created should have the ramdisk files. am I right?
well at least in theory
EDIT: data.img from xrecovery didnt work. I will try to get the file structure from your ROM Manager Data Backup

bitmovel said:
thanks for the reply.
I will try a manual path / dir creation
What files on /data would be present on a clean stock ROM? :-s
If I format data on xrecovery and imidiatly make a backup, that data.img created should have the ramdisk files. am I right?
well at least in theory
EDIT: data.img from xrecovery didnt work. I will try to get the file structure from your ROM Manager Data Backup
Click to expand...
Click to collapse
What exactly you want to do on stock? IMHO, there's not anything good like for making something like a ramdisk, you can just run Sh scripts...

Related

[APP] Xperia ROM Manager

Features:
- Extract custom IMG.
- Create IMG files.
- Convert SIN To IMG.
New features will be added, as you request.
Please report all bugs, so i can fix them!
Update 26.feb!
Little cleanup.
Update 13.mar!
Changed name.
Changed small things.
Added option to convert SIN to IMG.
Update 21.mar!
Changed name.
Code rewrite and cleanup.
Changed menu.
Added option to create IMG file.(need some testing, SOMEONE HELP ME WITH THIS.)
Say thanks to:
velnens123 - for this little tool
aZuZu - for making SIN2IMG
unyaffs, mkyaffs and cygwin creator
For Windows 32-bit Only!
This does'nt modify sin files!
Please help me with creating IMG file!
download now, will see how it works. thanx
velnens123 said:
Here is a tool for extracting xRecovery and other recovery img files.
Features:
- Extract system.img
- Extract data.img
- Extract cache.img
- Extract recovery.img
- Extract boot.img
- Extract userdata.img
- Extract misc.img
- Extract custom img.
New features will be added, as you request.
Please report all bugs, so i can fix them!
Click to expand...
Click to collapse
please add feature to convert yaffs img to ext2 img.... and keep file permission,owner....
Hope i will make it!
brixzen said:
please add feature to convert yaffs img to ext2 img.... and keep file permission,owner....
Click to expand...
Click to collapse
I will see what i can do!
does this 'extract out of the phone' or does it 'extract files out of the images'?
Sorry for a silly question, but what would I use it for? Is it like for messing around with roms' content?
how can i extract it ??? when i write path to the img and press enter it says : open image file failed
thetrisatria said:
download now, will see how it works. thanx
Click to expand...
Click to collapse
working ndak om??
I love a feature that can backup stock firmware (in format *.sin), so that I can use flash tool to rescue the phone whenever it die
Answers for questions.
i_hate_sonyericsson said:
does this 'extract out of the phone' or does it 'extract files out of the images'?
Click to expand...
Click to collapse
Graveir said:
Sorry for a silly question, but what would I use it for? Is it like for messing around with roms' content?
Click to expand...
Click to collapse
fifo171 said:
how can i extract it ??? when i write path to the img and press enter it says : open image file failed
Click to expand...
Click to collapse
Benjoy Ericsson said:
I love a feature that can backup stock firmware (in format *.sin), so that I can use flash tool to rescue the phone whenever it die
Click to expand...
Click to collapse
1. It extract files out of the images.
2. Yes, make backup in xRecovery, then extract system.img.
3. Make sure you dont write .img at end, put your img files in same folder as unyaffs.
4. I dont think its possible.
you might want to note in the original post that modified sin files can't be flashed w/ the flash tool, if thats what your reply means.
i'd assume that, but not everyone would.. and maybe note the download is for win32 only.
thanks!
Exception: STATUS_ACCESS_VIOLATION at eip=004010B0
eax=5D9BD014 ebx=00000068 ecx=00001500 edx=00BE0DAA esi=0028CD34 edi=61179FC3
ebp=0028CCD8 esp=0028CCA0 program=C:\Xperia_ROM_Manager\unyaffs.exe, pid 2100, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame Function Args
0028CCD8 004010B0 (00BC8398, 00000000, 612058E8, 00401333)
0028CD08 004013AF (00000002, 00BC8358, 00BC8250, 00000001)
0028CD68 61006CD3 (00000000, 0028CDA4, 61006570, 7EFDE000)
End of stack trace
Is this app to extract kernel.sin ??
I need a script to extract kernel.sin
THIS IS REALLY OLD! I dont think it can extract kernel.sin. Download kernel sources instead!
Sent from my XPERIA X8 using xda premium
velnens123 said:
THIS IS REALLY OLD! I dont think it can extract kernel.sin. Download kernel sources instead!
Sent from my XPERIA X8 using xda premium
Click to expand...
Click to collapse
Not all kernels has source code to compile.

How to extract .ftf file??

Any one know how? or how to add and remove a file in the .ftf in flashtools?
1.Unpack .ftf file(as .zip or .rar) to get the file : system.sin
2.Use SIN2IMG.exe to transfer system.sin into system.img
3.Use unyaffs.exe to upack the system.img into resources you need
You can download SIN2IMG & unyaffs from the Internet
It's not an easy thing to add resources into .ftf file
Actually,Linux enviornment is required to pack the resources into .img file
But you may use Cygwin(HTC [email protected]) to help you do such things.
JasonStein said:
1.Unpack .ftf file(as .zip or .rar) to get the file : system.sin
2.Use SIN2IMG.exe to transfer system.sin into system.img
3.Use unyaffs.exe to upack the system.img into resources you need
You can download SIN2IMG & unyaffs from the Internet
Click to expand...
Click to collapse
Thanks, now how do I repack it to .ftf ?
i need the same help
Unless you are modifying the baseband or kernel, it may be easier to make an xrecovery zip from system.img once you unpack and modify it however you want to.
Seems all 2.3.3 SE roms are on the same kernel/BB so if you're on the right ones already all you'll need is an xrec zip to build the rest. If you are on an older/different kernel/BB then Doomlord has an ftf package with just those 2 things & detailed instructions on how to get it going.
mistamikel said:
Thanks, now how do I repack it to .ftf ?
Click to expand...
Click to collapse
how were you able to unpack the .img file
I am able to extract the system.sin
then create a system.img with sin2img.exe, but when I try to unpack the .img file, unyaffs.exe only gives me stackfiles and not a new directory.
can you help with this, am I doing something wrong ?
if having trouble creating ftf try checking this thread out
http://forum.xda-developers.com/showthread.php?t=1363460
lol
why dont use 7zip?
JasonStein said:
1.Unpack .ftf file(as .zip or .rar) to get the file : system.sin
2.Use SIN2IMG.exe to transfer system.sin into system.img
3.Use unyaffs.exe to upack the system.img into resources you need
You can download SIN2IMG & unyaffs from the Internet
Click to expand...
Click to collapse
will this system.img be same as the system.img we get when we backup a stock rom in our phone after a fresh installation?am learning to make my own rom and i need the system.img.But i dont have the stock rom .
And can i create my own rom from system.img of any other custom rom instead of the stock rom itself
The great x10 developer championswimmer has a great set of tools for x10/Xperia kernels
http://forum.xda-developers.com/showthread.php?t=1659584
~Jaramie
from my LT28at rooted & eating an Ice Cream Sandwich
Probably the best guide with video instructions how to make GB ROM from .ftf file. Enjoy.
http://forum.xda-developers.com/showthread.php?t=1661770
neoxx3m said:
Probably the best guide with video instructions how to make GB ROM from .ftf file. Enjoy.
http://forum.xda-developers.com/showthread.php?t=1661770
Click to expand...
Click to collapse
Thanks for the links i already got guides to make my own rom.Am using dsixda' android kitchen and as the per the instruction given.For xperia x10
"First reinstall a Android 2.1.
Then root it.
Install a XRecovery.
Then backup it.
Now you will get system.img in backup folder."
My doubt is wether this backup should be dont with the stock rom itself or can i use an existing custom rom?And if it should be from stock rom then is it enough use the system.img file obtain by extracting ftf and then using sin2img?
VortexDK said:
how were you able to unpack the .img file
I am able to extract the system.sin
then create a system.img with sin2img.exe, but when I try to unpack the .img file, unyaffs.exe only gives me stackfiles and not a new directory.
can you help with this, am I doing something wrong ?
Click to expand...
Click to collapse
Check Out this thread,maybe it will help you
can some one please put a direct link to SIN2IMG & unyaffs, no links online work!!
staking said:
can some one please put a direct link to SIN2IMG & unyaffs, no links online work!!
Click to expand...
Click to collapse
Nobody?
especiallyl SIN2IMG ... the other is in the repository of ubuntu

[DEV][TOOL] Kernel Kitchen {X10 Mini/MiniPro}

[size=+2]PLEASE USE THIS THREAD (LINK) FROM NOW ON. I WILL NOT MONITOR THIS THREAD ANYMORE [/size]
INTRODUCTION
So we all know dsixda's XDA ROM Kitchen
Then how about a kitchen for Kernels ??
What started out just as my personal directory where I kept all my kernel and ramdisk tinkering scripts, has now turned into a project (which is far from finished right now )
This does NOT enable you to compile the kernel binary (aka zImage).
This enables you to edit ramdisk and change bootsplash images and helps kernel developers to deploy their compiled kernel in a usable form.
FEATURES
As of now what we can do with the Kernel Kitchen is
Fully menu driven interface (like dsixda kitchen)
Extract zImage and ramdisk from boot.img file
Create boot.img from zImage and ramdisk
Extract zImage and ramdisk from any ftf file that contains kernel.sin (Xperia 2010, 2011, 2012)
Create flashable ftf from zImage and ramdisk (Xperia 2010 only)
Create compressed ramdisk binary from ramdisk folder
Extract ramdisk files from ramdisk binary
Convert png image to rle format (used in android boot splash images)
Convert rle boot splash to png file (so that you can edit it)
Proposed upcoming features
Automatic script to change boot splash in a kernel with your favourite png file
STYLE CODE :
bold are supported only in linux
italics are supported in linux and windows+cygwin
underline are supported in windows native (without cygwin)
(if more than one style is used, it supports all respective platforms)
REQUIREMENTS
This tool is primarily meant for linux users (preferably Uubuntu).
But it works perfectly well on windows+cygwin too
Some portions of the kitchen have support for native windows (without even cygwin)
Rest all requirements are mentioned in the readme
WHAT ARE ITS USES ?
1.The primary purpose (for which this project started out in the first place) is to provide a easy kernel deployment tool for wannabe kernel devs.
A lot of us can compile a kernel from source but that is just the zImage and cannot be used as such on the phone. We need to package it with a ramdisk ad deploy it thorough a proper method (flashtool for Xperia, ODIN for samsund, and fastboot for other phones)
​2.You canedit ramdisk properties (by editing default.prop)
Changing ro.secure=1 to ro.secure=0 makes your ramdisk insecure and enables easy root access ​3.The most immediate and popular use that i can see right now is changing the boot logo to your liking
the boot logo is called logo.rle or initlogo.rle and is placed in the root of ramdisk folder.
When you split kernel, you can find the rle file which you can convert into png, do necessary editing and convert back into rle and pack up the ramdisk and create a new kernel
​4.Other than that, you can change the recovery system
for eg. you can include Doom's Touch recovery system inside your favourite kernel
or you can include the xRecovery inside CM7 kernel so that you can flash amend zips.
Changing the recovery is ofcourse a little more complicated for average users, and i'll write a short tuto for that soon enough ​DOWNLOAD AND USAGE
The sources can be found on www.github.com/championswimmer/kernel-tools
For linux (and cygwin) users I recommend the install git and run this command to get a copy of my repository
Code:
git clone https://github.com/championswimmer/kernel-tools.git
Or in general, all linux and windows users can just get a zipball of my repo here
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
All usage information can be found on this elaborate readme
In short all you have to do is cd to the appropriate folder and run this
Code:
./menu
CREDITS
None of this was possible without the helps and works of DoomLord, Azuzu, bin4ry, FXP, defer, blagus, nobodyAtall, the_laser, Androxyde
These works are directly included in my project
DoomLord's kernel.sin and ftf creator (windows version)
These works are used in their modified/repackaged form
DoomLord's png and rle interconversion tool (windows version)
DoomLord's perl script to split kerel.sin
And big thanks to nobodyAtall for pointing me the appropriate linux binaries (or i would have kept pouring wine over windows exe files)
Thanks to ImageMagick developers for the awesome tool
SOURCES USED
1. to565 and from565 source code (part of Android Open Source Project)
2. mkbootimg and mkbootfs standalone sources (part of AOSP)
3. abootimg sources (by Gilles Grandou)
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
fxdRoiD said:
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
Click to expand...
Click to collapse
Read the first part of this post and ask your question in the link provided
fxdRoiD said:
Hello!
Thanks for your great work.
I've done all stage and when i try to flash kernel i modify, it stucks on flashing loader 14%.
What's the problem? thanks.
Click to expand...
Click to collapse
do you have "jar" installed??
(jar comes with java or you can install 'fastjar' )
and when making kernel did you chose option 2??
option 1 is for X10, option 2 is for your phone
championswimmer said:
do you have "jar" installed??
(jar comes with java or you can install 'fastjar' )
and when making kernel did you chose option 2??
option 1 is for X10, option 2 is for your phone
Click to expand...
Click to collapse
Hello!
I'm on ubuntu 12.04 and i have jar installed. I can run x10flasher well.
Yes i have chosen option 2.
I've just modified boot logo in res -> image -> logo into Ramdisk. I've repacked ramdisk and copy zImage into kernel-files and paste both into input folder after renamed them properly. Is it the good process?
You can see my log attached.
After flashing loader, i must wait 5 min before starting "flashing kernel.sin". After that, 3 min waiting, flashing aborted...
fxdRoiD said:
You can see my log attached.
After flashing loader, i must wait 5 min before starting "flashing kernel.sin". After that, 3 min waiting, flashing aborted...
Click to expand...
Click to collapse
could you send me the ftf file you created?
Sent from my X10S using xda premium
btw the process is simple
extract from ftf
copy the ramdisk-contents as ramdisk-folder into input folder.
make changes as necessary
repack the ramdisk
put the zimage as "image" and compressed ramdisk as "ramdisk" into input folder
create ftf
flash it
Sent from my X10S using xda premium
championswimmer said:
btw the process is simple
extract from ftf
copy the ramdisk-contents as ramdisk-folder into input folder.
make changes as necessary
repack the ramdisk
put the zimage as "image" and compressed ramdisk as "ramdisk" into input folder
create ftf
flash it
Sent from my X10S using xda premium
Click to expand...
Click to collapse
I did it completly. Here's Kernel. I just want to put sony ericsson logo. Thanks if you can made it works properly.
I did all stages correctly! Please, make it works...
fxdRoiD said:
I did it completly. Here's Kernel. I just want to put sony ericsson logo. Thanks if you can made it works properly.
I did all stages correctly! Please, make it works...
Click to expand...
Click to collapse
oops ****!!!!
i know what the problem is ... damn
it's using the x10 loader.sin for all phones... wtf!!
please send me the original nAa kernel
Sent from my X10S using xda premium
fixed loader sin problem and updated menu based interface
championswimmer said:
oops ****!!!!
i know what the problem is ... damn
it's using the x10 loader.sin for all phones... wtf!!
please send me the original nAa kernel
Sent from my X10S using xda premium
Click to expand...
Click to collapse
Original nAa Kernel, you can find it here: http://minicm.googlecode.com/files/E10_nAa-11_2.6.29.6-nAa-11.ftf
or
jump to threat forum:
http://forum.xda-developers.com/showthread.php?t=1256739
---------- Post added at 01:16 PM ---------- Previous post was at 01:14 PM ----------
championswimmer said:
fixed loader sin problem and updated menu based interface
Click to expand...
Click to collapse
Thanks. Try it now.
Tell me, if i want to change bootsplash, i just want to modify logo in ramdisk -> res -> images -> logo?
ramdisk > initlogo.rle
or
ramdisk > logo.rle
if any of this file is not present then i think the ramdisk does not have a logo.
(you can down load one of my kernels (from my devhost or ftp mirror in my sig), they are for x10 but you can extract them and see where the logo image is supposed to go)
it SHOULD be a <filename>.rle file. android logos are always rle files
championswimmer said:
ramdisk > initlogo.rle
or
ramdisk > logo.rle
if any of this file is not present then i think the ramdisk does not have a logo.
(you can down load one of my kernels (from my devhost or ftp mirror in my sig), they are for x10 but you can extract them and see where the logo image is supposed to go)
it SHOULD be a <filename>.rle file. android logos are always rle files
Click to expand...
Click to collapse
Can't see .rle file. Ramdisk contents a file "init" without extension. Please, can you download kernel and tell me where is rle file? Thanks!
---------- Post added at 01:50 PM ---------- Previous post was at 01:43 PM ----------
What's the link i can use to update without restart downloading? I try "Update [link]" but command "update" not found.
fxdRoiD said:
Can't see .rle file. Ramdisk contents a file "init" without extension. Please, can you download kernel and tell me where is rle file? Thanks!
---------- Post added at 01:50 PM ---------- Previous post was at 01:43 PM ----------
What's the link i can use to update without restart downloading? I try "Update [link]" but command "update" not found.
Click to expand...
Click to collapse
update what?
and about rle,
umm when you boot nAa kernel what bootimage you see? is there any bootimage?
Sent from my X10S using xda premium
Yes there's a boot image. In the kernel contents any rle file. Have you downloaded kernel?
Sent from my E10i using XDA
please move to this thread
http://forum.xda-developers.com/showthread.php?t=1659584
i'll not monitor this thread anymore

extract kernel from rom

hey guys so i installed cm7
and then used DJNoXD.
i was wondering how can i go back to the original kernel?
how can i extract the kernel from the rom?
or do you guys have any other suggestions for which kernel should be used?
please help
Ramis93 said:
hey guys so i installed cm7
and then used DJNoXD.
i was wondering how can i go back to the original kernel?
how can i extract the kernel from the rom?
or do you guys have any other suggestions for which kernel should be used?
please help
Click to expand...
Click to collapse
You can use Roq's latest Kernel from Here.
Ramis93 said:
hey guys so i installed cm7
and then used DJNoXD.
i was wondering how can i go back to the original kernel?
how can i extract the kernel from the rom?
or do you guys have any other suggestions for which kernel should be used?
please help
Click to expand...
Click to collapse
Just flash cm7 again (without wiping anything).
After that you will have the original kernel again.
DJNoXD said:
Just flash cm7 again (without wiping anything).
After that you will have the original kernel again.
Click to expand...
Click to collapse
but that would reset all all my settings.
isnt there a way to extract the kernel?
No, if you flash a new version (or the same version) of cm you won't loose all your settings. Important is that you only wipe dalivik cache and cache, nothing else.
Than the only thing you loose are changes you have done to "system"-folder. But less people do this.
The normal configurations like wlan, ... are not touched / lost.
If you are scared to loose your rom data, create a backup (clockwork recovery) before.
Only extracting is not easily possible.
If you got the kernel "zImage" file and the "wireless.ko" module, you have to create the signed zip file before you can flash it.
source cyanogenmod
Code:
Option 1: Koush's AnyKernel zip file Koush's AnyKernel repacks the kernel in the package with the ramdisk currently flashed to the device. Therefore, we need to change the boot.img --base address so the boot.img will boot on the 32A device. This change needs to be made in mkbootimg.sh in the package. Koush has a 32A branch of AnyKernel here: http://github.com/koush/AnyKernel Clone the AnyKernel repo
git clone git://github.com/koush/AnyKernel.git -b 32A
This will make a folder called AnyKernel in your working directory. Keep this and just copy it to your packaging directory.
Copy the AnyKernel folder to a working directory. In the AnyKernel folder you have three folders:
kernel
Put the zImage in this folder. Leave it named zImage
META-INF
system
Put the wlan.ko in system/lib/modules. Replace the placeholder wlan.ko file.
Now you can zip the 3 folders together and sign them
zip -r port.zip *
java -classpath <path to SDK/tools>testsign.jar testsign port.zip signed-port.zip
for example:
java -jar ../SignApp/signapk.jar ../SignApp/testkey.x509.pem ../SignApp/testkey.pk8 port.zip update_signed.zip
This creates a signed zip file called port.zip and can be flashed. :) You are done.
DJNoXD said:
No, if you flash a new version (or the same version) of cm you won't loose all your settings. Important is that you only wipe dalivik cache and cache, nothing else.
Than the only thing you loose are changes you have done to "system"-folder. But less people do this.
The normal configurations like wlan, ... are not touched / lost.
If you are scared to loose your rom data, create a backup (clockwork recovery) before.
Only extracting is not easily possible.
If you got the kernel "zImage" file and the "wireless.ko" module, you have to create the signed zip file before you can flash it.
Click to expand...
Click to collapse
oh ok then, thanks
p.s would you recommend Roq's kernel or the default cm7 one?
(i won't be gaming on my phone. just want performance and battery life)
I haven't tried roqs latest kernel.
Just try it. Only you will know what you are searching for.
All custom kernels are good. But not every kernel is good for everyone.
Edit: What kind of performance are you searching for?
ok then,
thanks for the help
Here you can get the stock kernel for CM7
http://forum.xda-developers.com/showthread.php?t=1564203
Sent from my LG-P500 using XDA
yuripg1 said:
Here you can get the stock kernel for CM7
http://forum.xda-developers.com/showthread.php?t=1564203
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
awesome thanks
yuripg1 said:
Here you can get the stock kernel for CM7
http://forum.xda-developers.com/showthread.php?t=1564203
Sent from my LG-P500 using XDA
Click to expand...
Click to collapse
Haven't seen that you have updated your kernel to latest sources.
> you can use kitchen to extract zimage.. and copy modules from system>lib>modules folder.. I dont know how to repack it as a zip? may be by the link given above for stock kernel with outdated source.. just replace zimage and modules content on the zip.
I get the zImage using a flashable ZIP that I made.
http://db.tt/0WKE2o8w
What I did was simply modify a kernel installer (by Koush) to make it extract the boot.img of the ROM currently installed to the SD card.
After flashing it, I copy and rename the zImage in /sdcard, copy the modules in /system/lib/modules and make the flashable ZIP as any other kernel.
Sent from my LG-P500 using XDA

[Q]Repack a kernel into a boot.img?

I've been learning some development lately and I have a few questions to ask about the boot.img and kernel and things...
As far to my knowledge, it contains the kernel and the ramdisk, correct?
But what about a .sin file? That is also a kernel, isn't it?
But does it contain the ramdisk? Or is ramdisk included in the kernel itself?
For example, what would happen if I only flashed a .sin file on an empty boot partition?
Would the thing boot?
If yes, does that mean there IS ramdisk in the .sin file?
Furthermore, how would I be able to repack the .sin kernel into a boot.img? Just renaming obviously wouldn't do it... But, would anything?
What I'm trying to do:
From an Xperia FTF FW file, I extracted the kernel in .sin file format.
Now, with ready-to-go META-INF and system folders, I came to a dead end where I can't get the boot.img.
The reason for that is that I'm trying to make a Gingerbread ROM. All other ROMs out there (for this phone) are ICS, therefore the kernel wouldn't be compatible.
I COULD just flash the .sin kernel with a PC, but that isn't practical...
Any ideas what could be done?
Sorry for the tricky and unreadable post, but I've been searching the internet for the past 3 hours. No results found...
Thanks!
--someone755
EDIT: Just thought of this:
Better yet; is there a way to use fastboot or adb to pull the boot.img from the device?

Categories

Resources