Extracting boot.img - Android Q&A, Help & Troubleshooting

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)

Related

[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

I can not cook a rom for LG P920 with Kitchen

Hello all I tried to cook a rom with Kitchen program but I have a problem while checking the file Boot.img the program reports the following errors
Code:
Checking boot.img
Working Folder Found
Android 'magic' header not found at start of boot.img
Checking if it exists elsewhere...
Warning Android Header not found in boot.img ( unsupported format)
Kernel found at offset775040367 in boot.img
Making folder BOOT-EXTRACTED...
Extracted kernel
Error. Zimage is Emply!
Extracting ramdisk...
Error: No Ramdisk folder found!
Warning: init.rc not found in boot.img
I have tried flash the phone but the installation is aborted
There is nobody who can help me I have to give me a reference
Aleaba said:
There is nobody who can help me I have to give me a reference
Click to expand...
Click to collapse
if im not mistaked the kitchen was built primarily for HTC devices
thank you
If you have any ideas for how I can cook a rom for lg P920 I would be grateful for the help
Aleaba said:
thank you
If you have any ideas for how I can cook a rom for lg P920 I would be grateful for the help
Click to expand...
Click to collapse
What exactly are you trying to do?
Sent from my PC36100 using Xparent Red Tapatalk 2
Go to the LG optimus 3d or thrill 4g Dec section and look for acid hazard kitchen Tom that's what I'm running on my 3d and its awesome
xstokerx said:
Go to the LG optimus 3d or thrill 4g Dec section and look for acid hazard kitchen Tom that's what I'm running on my 3d and its awesome
Click to expand...
Click to collapse
Ok I'll try to give them a look, thanks
jboyer0000 said:
What exactly are you trying to do?
Click to expand...
Click to collapse
I'm trying to cook a rom, as I wrote above does not work with Kitchen, thanks for the help
I tried but it does not work on my phone refuses to flash the rom with AcidHazardROM KITCHEN, attached you can see all the folders of my rom files and scripts
Aleaba said:
Hello all I tried to cook a rom with Kitchen program but I have a problem while checking the file Boot.img the program reports the following errors
Code:
Checking boot.img
Working Folder Found
Android 'magic' header not found at start of boot.img
Checking if it exists elsewhere...
Warning Android Header not found in boot.img ( unsupported format)
Kernel found at offset775040367 in boot.img
Making folder BOOT-EXTRACTED...
Extracted kernel
Error. Zimage is Emply!
Extracting ramdisk...
Error: No Ramdisk folder found!
Warning: init.rc not found in boot.img
I have tried flash the phone but the installation is aborted
Click to expand...
Click to collapse
Its only the kernel that's not compatible with the kitchen. You can still mess with the rom itself in the kitchen. You may need to copy the updater script from your original rom though. Also I would recommend just zipping the rom up manually and not using the kit hen for that. The kit hen is good for adding root or deodexing, things like that.
If you want to mess with the boot.img for the p920/925 you will need specific tools which can be found in the development section of the Thrill/p925 forum.
Sent from my SAMSUNG-SGH-I777 using XDA
http://forum.xda-developers.com/showthread.php?t=633246
I made a rom for LGP970

boot.img creation from the stock ftf

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

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.

[BOOTANIMATION] Xbox Boot Animation [HD] for Xperia SP!

Hello Guys!
I am back with my new and great boot-animation for our only Xperia SP!
This is a great and amazing boot-animation
With the logo of Xperia SP a pure white essence just beautify's the phone's look with the X Box logo
It's just amazing
I have attached 3 screenshots which I guess are more than enough for you!
Rest you need to see when you try
This is an aroma flashable file so just boot into recovery and install this amazing boot animation
Some special feautres
* It has sound which intensifies the amazing experience of this boot animation
* It is in potrait mode i.e. You have it in vertical screen
* It is a flashable file. No need to carry all the manual setting like copying, setting permission bla bla. Just download, reboot in recovery, install and enjoy
Q:- I am just loving it, want to try NOW! But how to install it with keeping my current (or original) bootanimation safe!
You just need to go to root of your phone via root explorer the migrate to "/system/media/" there you will find your current or stock bootanimation.zip file. Just copy it and save it to someplace safe.
Then reboot into recovery and install my bootanimation!
Warning : No bricked devices should be blamed at me! Install at your own risk. Recommendation is to always keep a nandroid backup ready!
Click to expand...
Click to collapse
Though it is purely SAFE! But in-case you know if any mishap happens.
Please hit thanks for this great bootanimation..!
Here is the download link : https://app.box.com/s/quf3wpea5b54vcivdcv0
Request : Every work I do I need resources and currently I am working on various projects along with this bootanimation projects like building a beautiful and super sexy and fast ROM (4.4.4) with all the options to edit your own ROM as you wish from customizing battery icon to it's system tray and everything without any third party software! I am creating manual themes that would be provided with the ROM. Me alone as a developer it takes pretty much time and resources to build them eg I had my phone hard bricked just for trying my first bootanimation I made and I lost all my data in case of recovering it and it costed a lot of money too as Sony Service Center had to repair it. Please consider a small donation to me as it would help me to get my resources as I try every project before I release and ensure that you don't feel any bugs and it will also encourage me to develop more projects for future.If you have problem in donating then wait for sometime as my PayPal doesn't opens for all but do try at a later time. Thanks in advance
hey brother,could you make it for T2 ultra?
Yes I can. Just give me your device resolution and the update binary file for your device
Sent from my C5302 using XDA Free mobile app
the resolution is same as XSP,and where can i get the update binary?
Chena_22 said:
the resolution is same as XSP,and where can i get the update binary?
Click to expand...
Click to collapse
Loctate your META-INF folder and explore it you will find two files updater script and update binary
share update binary for me
I can't find the META-INF folder,can you tell me the proper location?
Was about to port an xbox boot animation and wham you beat me to it. Amazing work but the only problem I see with the boot animation is that xperia sp image. The font just doesnt suit the xperia sp design. Change the typography and ill be using this everyday
---------- Post added at 06:12 PM ---------- Previous post was at 06:10 PM ----------
Btw you should add the instruction to change the downloaded zip to bootanimation.zip and chnage its permissions
That Xperia SP screen is original.
And it's flashable zip so need to set permission or anything
Sent from my C5302 using XDA Free mobile app
Do you have any custom ROM for your device?
If yes then open it and you'll find the first folder named as meta-inf
Sent from my C5302 using XDA Free mobile app
Tech N You said:
Do you have any custom ROM for your device?
If yes then open it and you'll find the first folder named as meta-inf
Sent from my C5302 using XDA Free mobile app
Click to expand...
Click to collapse
Used a custom rom and tried flashing. Noticed that your meta-inf folder is missing and a missing installer files. It isnt flashable at all lul. Need me to port it to AROMA?
Furrydaus said:
Used a custom rom and tried flashing. Noticed that your meta-inf folder is missing and a missing installer files. It isnt flashable at all lul. Need me to port it to AROMA?
Click to expand...
Click to collapse
Isn't flashing? How mine is flashing perfectly
Tech N You said:
Isn't flashing? How mine is flashing perfectly
Click to expand...
Click to collapse
How does one flash a zip that doesnt have any meta-inf? Lol XD
Furrydaus said:
How does one flash a zip that doesnt have any meta-inf? Lol XD
Click to expand...
Click to collapse
it has dude. obviously it has meta inf folder
Tech N You said:
it has dude. obviously it has meta inf folder
Click to expand...
Click to collapse
Ill redownload the package again. Download must have screwed something up I guess
Furrydaus said:
Ill redownload the package again. Download must have screwed something up I guess
Click to expand...
Click to collapse
Might be try again
i'm not using any custom rom,its stock deodexed...
I mean have you downloaded any custom ROM before for the device in order to try it like cm11 etc if yes then open it you'll see meta-inf folder
Sent from my C5302 using XDA Free mobile app
no bro,my device is new and its variant has'nt have any custom rom yet...
Tech N You said:
it has dude. obviously it has meta inf folder
Click to expand...
Click to collapse
No it hasn't... So it can't be flashed.
Chena_22 said:
no bro,my device is new and its variant has'nt have any custom rom yet...
Click to expand...
Click to collapse
Sorry dude then I can't make it flashable.

Categories

Resources