boot.img creation from the stock ftf - Sony Xperia P, U, Sola, Go

Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app

Trevor Chuah said:
Hi everyone,
I'm noob here. I'm using Xperia S. And now learning mote about android.
However I have a question, how can I make boot.img from my ftf file?
Sure, I extracted the ftf, decrypt the kernel.sin into kernel.elf.
From kernel.elf, I decrypt it again and get 4 files, one image (I suppose it is kernel zImage), one ramdisk.gz, one file forgotten and another is elf.4.
Okay, now the problem comes.
The main purpose of me is to change the bootlogo of my Xperia S.
I searched for a day to change the bootlogo, most need to add the rle file into boot.img file (ramdisk).
For sure I read through the site how to unpack, edit and repack the boot image.
The kernel and ramdisk of mine are extracted from ftf but not existing custom Rom,
1. Can I directly use the mkbootimg program to create boot.img? Will it work out?
2. Do I need to aware of any parameters or setting for Xperia S? Since I worried that different devices have diff setting.
3. Is it better to make it on linux? I found mkbootimg.c in c language file but not precompiled program as tutorial, the link given is broken. Can work also?
Sorry, I'm really quite new and very noob, I tried searching and many other things, but still can't figure it out.
Hope that pros here can help me...
Sent from my LT26i using xda app-developers app
Click to expand...
Click to collapse
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob

ShivangDave said:
how did you decrypt kernel.sin ? can you explain step by step ? Im also a noob
Click to expand...
Click to collapse
For how to decrypt the kernel.sin, you can use Flashtool (not Sony official one)
Under Tools (perhaps I remember correctly), there is a option about decrypt SIN, and then you can choose the kernel.sin you want to decrypt.

Have to tried kernel kitchen?

neectron said:
Have to tried kernel kitchen?
Click to expand...
Click to collapse
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.

Trevor Chuah said:
Yes, I tried Kernel Kitchen by champion at that time after I asked this question since nobody answer this thread.
I use command way to perform this boot.img creation also. It work that time. now forgot some part dy.
Click to expand...
Click to collapse
Oh,now I see question is so old

neectron said:
Oh,now I see question is so old
Click to expand...
Click to collapse
yeah, very old. haha
Anyway, thank you for your kindly reply.
Moving my way toward developer (super noob developer). haha

Related

create zip file for xrecovery

First sorry for posting new thread because i didn't find anything useful.
my usb socket got crashed and i can't update my phone by cable(SEUS).
i have xrecovery installed on my phone.
i want to know how to convert original x10 roms(like 435) to update.zip form to install it by xrecovery.
kalpas said:
First sorry for posting new thread because i didn't find anything useful.
my usb socket got crashed and i can't update my phone by cable(SEUS).
i have xrecovery installed on my phone.
i want to know how to convert original x10 roms(like 435) to update.zip form to install it by xrecovery.
Click to expand...
Click to collapse
WHY CANT U USE SEARCH??!!!!
WHY POST IN WRONG SECTION?
anyways to answer ur question:
http://forum.xda-developers.com/showthread.php?t=1054818
DooMLoRD said:
WHY CANT U USE SEARCH??!!!!
WHY POST IN WRONG SECTION?
anyways to answer ur question:
http://forum.xda-developers.com/showthread.php?t=1054818
Click to expand...
Click to collapse
DUDE DOOM CHILL!
1. using Flash Tool - unpack blob stuff..
2. use sin2img to extract system.img from system.sin
3. extract system.img to system with unyaffs unpacker
4. from unpacked folder delete all symlinks
5. create META-INF structure and place update-script use some from 2.1 roms avail on x10 section...
6. pack system & META-INF
7. flash.
so some folder has to have:
system & META-INF >>> pack to some.zip
kalpas said:
First sorry for posting new thread because i didn't find anything useful.
my usb socket got crashed and i can't update my phone by cable(SEUS).
i have xrecovery installed on my phone.
i want to know how to convert original x10 roms(like 435) to update.zip form to install it by xrecovery.
Click to expand...
Click to collapse
This should be where the questions are asked not developers thread.
Sent from my Nexus S using XDA Premium App
any idea where is can get sin2img ? D:

[Tool] [ 5th May]Linux Tools for neo

Hi guys other devices have a thread like this so thought I'd get it going.
Here I share a folder, has a working unyaffs, built on ubuntu 12.04 64 bit known to extract all current neo img files.
a nice 51-udev rules that contains many popular phone models
and a recovery bundle too install cwm from linux, please feel free to add your own contributions and share
http://minus.com/mDZsF8gEU/
Two new additions today.
Motorola's modified fastboot, allows flashing larger images.
Android utility - nice little script will set up and update kitchen and help with porting.
Sent from my MT15i using Tapatalk
i wish i know what to do with these...
where to strt?
mpiekp said:
Hi guys other devices have a thread like this so thought I'd get it going.
Here I share a folder, has a working unyaffs, built on ubuntu 12.04 known to extract all current neo img files.
a nice 51-udev rules that contains many popular phone models
and a recovery bundle too install cwm from linux, please feel free to add your own contributions and share
http://minus.com/mDZsF8gEU/
Click to expand...
Click to collapse
thanks for sharing but unyaffs didn't work on my ubuntu 12.04 32 bit or other 32 distros i don't have any 64 distros so can't tested on those
error is Cannot execute binary file
may I ask did you build unyaffs for 64-bit
Yes sorry, built on 64 bit, just build it frm svn and it will work fine
added 64bit to first post now thanks
mpiekp said:
Yes sorry, built on 64 bit, just build it frm svn and it will work fine
Click to expand...
Click to collapse
already I did it but tool can't extract ics rom anyway
....... Don't get that is it a converted IMG or a nandroid
Sent from my MT11i using Tapatalk
unyaffs
mkfs.yaffs2
for 32bit systems
I hope you know how to install them...
mpiekp said:
....... Don't get that is it a converted IMG or a nandroid
Click to expand...
Click to collapse
converted
leajian said:
unyaffs
for 32bit systems
I hope you know how to install them...
Click to expand...
Click to collapse
also doesn't work with ICS system.img(ftf, not nandroid)
Has anyone tried flashing one of these converted imgs, with fast boot? Does it work
Sin2img strips certain bytes from the sin to create the IMG, could be Sony altered the byte order meaning the IMG are corrupt, especially considering what we had with flashtool final verification failure.
Sent from my MT11i using Tapatalk
added neo&vboottools.
contaions perl scripts to unpack and repack boot.img, edited to use default sony method, so that kernels boot after use. third perl script to extract commandline from existing boot.img, so that if extra options are needed you can add t repack script, just open in any text editor the script is straight forward.
binaries for mkbootimage and to565 included to create logo.rle for boot logs (e.g sony not bootsplash)
hi mpiekp , first of all thank you for your awesome work , secondly i would like to get to the notice of developers the new thread naming rules as mentioned in this fourm
http://forum.xda-developers.com/showthread.php?t=1636154
you can change the title as per the instructions in the above thread, sorry for the trouble , thank you

Making boot.img

Hi!
I'm wondering about if I replace the original #whatever#.rle with the new one in boot.img, will that hard-brick my device?
Learning how to mod.....
No. It won't.
Btw, you could have got this answer in the ace forums too..
Don't be a noob. Be a newbie..!!
Details here.
panpjp said:
Hi!
I'm wondering about if I replace the original #whatever#.rle with the new one in boot.img, will that hard-brick my device?
Learning how to mod.....
Click to expand...
Click to collapse
I had try it. And work's fine, nothing get hard-brick. Change *.rle file is just change the image on the 1st boot after logo and before bootanimation. I always use this tool, to change that image.
This link maybe help u:
http://forum.xda-developers.com/showthread.php?t=1477845
And this for step by step on Galaxy Mini with detail tutor (u can use google translate if u don't know about the lang.)
http://www.guebantu.com/2012/06/dev-tool-unpack-repack-boot-img-kernel-files-galaxy-mini/
Nah..Nothing will happen.But in Ace,it is known to cause a bug that disables the boot animation.

Extracting boot.img

How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
jatinrungta said:
How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
Click to expand...
Click to collapse
Have you tried this link? I find it helpful for the single core A8 Cortex (Polaroid) tablets when I have to access the boot.img. Look about halfway down for the "Boot partition" section.
Hope this helps.
https://www.miniand.com/wiki/Allwinner/Unpacking+and+building+LiveSuit+images
jatinrungta said:
How do I extract boot.img from Xperia U
I already got many images but while unpacking they all say android magic header not found stopping using many tools
I used android kitchen and all
one more thing
i made rom using android kitchen and then when i boot
wifi,bluetooth and phone aint working
Help Me
:crying:
Click to expand...
Click to collapse
Use championswimmer tool http://forum.xda-developers.com/showthread.php?p=26229528
Sent from my GT-I9100 using xda app-developers app
rename it to kernel.elf and it can be extract either via flashtool or kitchen (kernel tools etc)

How to unpack boot.img

hi i know this seems like a over asked question but my case is different at least i could find a solution .. i did look for it
so i need to unpack a boot.img and i did try with dsixda's kitchen and championswimmers kitchen but no hope .. they both say android magic header not found and doesn't unpack it.. i need to edit the bootclasspath of the kernel but there isnt a way i can without unpacking yeah ? i even tried re-naming to .elf and extracting with flashtool but that dosent give me an output either ..
does anyone know how i can do this ? or atleast a workaround ?
androidous said:
hi i know this seems like a over asked question but my case is different at least i could find a solution .. i did look for it
so i need to unpack a boot.img and i did try with dsixda's kitchen and championswimmers kitchen but no hope .. they both say android magic header not found and doesn't unpack it.. i need to edit the bootclasspath of the kernel but there isnt a way i can without unpacking yeah ? i even tried re-naming to .elf and extracting with flashtool but that dosent give me an output either ..
does anyone know how i can do this ? or atleast a workaround ?
Click to expand...
Click to collapse
Try using this tool found here http://forum.xda-developers.com/showthread.php?t=2073775
it has worked very well for me. If this doesn't work for you then I can suggest some Linux alternatives.
Sent from my SCH-I535 using XDA Premium 4 mobile app
shimp208 said:
Try using this tool found here http://forum.xda-developers.com/showthread.php?t=2073775
it has worked very well for me. If this doesn't work for you then I can suggest some Linux alternatives.
Sent from my SCH-I535 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Hey thanks but ive tried that kitchen before and no luck
i figure the problem is
caused because the boot.img 's are not of standard type and do not have the standard ANDROID header therefore that kitchen wouldnt work
Okay, unpackbootimg crashes trying to unpack the boot.img from FXP204-cm-9-20130126-UNOFFICIAL-kumquat because it has the wrong "magic" at the top. trevd pointed this out as a definite incompatibility for some devices a couple pages back. Trying trevd's split_img from the first page, it actually reports the "Wrong magic" error and shows that the file has an ELF header not an ANDROID!. Opening in HxD shows that there is no ANDROID! header later on as with some HTC devices, so ELF is the only header, and we're basically dealing with a different, unsupported filetype here. On the upside, there is no real gap in the data, so there might not be a ramdisk packed with it anyway.
Click to expand...
Click to collapse
enlighten me on the linux alternatives please
androidous said:
Hey thanks but ive tried that kitchen before and no luck
i figure the problem is
caused because the boot.img 's are not of standard type and do not have the standard ANDROID header therefore that kitchen wouldnt work
enlighten me on the linux alternatives please
Click to expand...
Click to collapse
These are the linux alternatives they may or may not work based on what you said but might as well give them a try.

Categories

Resources