[Q] What after zimage?? - Android Q&A, Help & Troubleshooting

Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......

@[email protected] said:
Hi XDA members
I was just compiling kernel for My Xperia SOLA using this thread......
And it was successfully build....
i got some .ko modules and a zimage file in the output dir....
My question is how to combine this kernel with the boot.img image or how to create a boot.img from this file.......
I would be very happy if someone could help me out....
I am new to this developing world and want to learn.........
THANKS IN ADVACNE....
P.S : posted it in Android Q&A section but no replies so I thought of posting it here.... Sorry if its the wrong section......
Click to expand...
Click to collapse
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium

shimp208 said:
To compile a boot.img file that you can then flash to your device you will need to use the mkbootimg binary that is included as part of the AOSP source code. This will combine the ram disk that was produced, the kernel modules, and the zimage into a boot.img file. To learn more about this I would suggest taking a look at these two guides http://android-dls.com/wiki/index.php?title=HOWTO:_Unpack,_Edit,_and_Re-Pack_Boot_Images and http://stackoverflow.com/questions/...how-to-load-kernel-image-in-mkbootimg-command.
Sent from my Nexus 10 using xda premium
Click to expand...
Click to collapse
thanks buddy for your precious reply........

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

[Q]Kitchen SIII/S3 ROM

Hi
I am trying to use dsixda's kitchen (v196).
It cannot process the tar of the ROM itself.
I have to extract the contents of the tar and use those bin files as the "Original Update".
In that case it progresses quite a bit.
I managed to deodex overcoming some errors that others have found as well.
http://forum.xda-developers.com/showthread.php?p=27758343
But the final thing is missing zImage and modem.bin and who knows what else.
Is there a fix to allow the kitchen to use the tar itself?
Or anybody know what to do in addition to the above?
Thanks
gkahd said:
Hi
I am trying to use dsixda's kitchen (v196).
Click to expand...
Click to collapse
You're in Development, not Q&A kiddo.
DallasJones said:
You're in Development, not Q&A kiddo.
Click to expand...
Click to collapse
Question about dev, like other questions about dev
http://forum.xda-developers.com/showthread.php?t=1728477
Can you help?
Reported
Sent from my GT-I9100 using Tapatalk 2
Please post questions in the Q&A section only. Thank you.
---Jay--- From the Nexus

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

[Help] Flashing compiled kernel

Hello guys,
I have compiled the stock kernel from source for kenzo and got the Image and Image.gz files.Source
Now what are the next steps to flash the kernel/make it bootable?
Please help. Thx
first of all this thread is in wrong forum,please use q/a section for asking questions.
coming to topic,you can either take stock kernel,unpack and replace your Image to it, repack it and flash or your can use varunchitre's or osmosis' anykernel flashable zip.
neonkat said:
first of all this thread is in wrong forum,please use q/a section for asking questions.
coming to topic,you can either take stock kernel,unpack and replace your Image to it, repack it and flash or your can use varunchitre's or osmosis' anykernel flashable zip.
Click to expand...
Click to collapse
Sorry and thx.
I think my question wasnt clear. Sorry for that. I want to generate dt.img of stock kernel, that wlan module (is that required? If yes then how to generate).
In stock kernel there is no dtbtool in scripts. Please help me
Devam03 said:
Sorry and thx.
I think my question wasnt clear. Sorry for that. I want to generate dt.img of stock kernel, that wlan module (is that required? If yes then how to generate).
In stock kernel there is no dtbtool in scripts. Please help me
Click to expand...
Click to collapse
*for generating dtb,you need dtbtool(get DtbtoolCM[Cm kernel]from hereand check its readme for command).
*modules have now been disabled and are built along with kernel,so no need for them.
building dtb is not necessary everytime unless and until you play with any dtsi file.
look at here

Need help to edit ROM for system.img

Greetings ,
I need help to edit rom for Samsung devices , Since after Lollipop there are 4 separate files for flashing. I want to extract and edit system.img file then add my own created app.apk into system/app and rebuilt the system.img.
after creating system.img can I use just a simple tar utility to build .tar file
I.E : tar -cf mycustombuild.tar system.img boot.img recovery.img userdata.img
All I need a unpack / repacker for that kind of roms , Looking forward to your kind response.
Regards
Net_Spy
Net_Spy said:
Greetings, I need help to edit rom for Samsung devices , Since after Lollipop there are 4 separate files for flashing. I want to extract and edit system.img file then add my own created app.apk into system/app and rebuilt the system.img...
Click to expand...
Click to collapse
The following thread may be helpful for what you are looking to do and don't be afraid to ask for some member guidance too.
https://forum.xda-developers.com/showthread.php?t=3616040
Good Luck!
~~~~~~~~~~~~~~~
I DO NOT provide support via PM unless asked/requested by myself. PLEASE keep it in the threads where everyone can share.
thank you so much , Ive tried that but I stuck in 28 or 32 bit, since now most of mobile using 64bit arm processor. any idea how to deal with that armv7 or armv8;
Regards
Try this..
https://forum.xda-developers.com/showthread.php?t=3601702
Sent from my N9515 using Tapatalk

Categories

Resources