[q]kernel renaming - Sony Xperia M

I heard that renaming kernel.elf to boot.img will flash it through fastboot method is that true? or need any more modifications to flash it via flashtool
Sent from my C2004 using Tapatalk

If you have unlocked bootloader, yes. Otherwise, no. With locked bootloader the only thing you can do in fastboot mode is getting version and passing unlock key

mbc07 said:
If you have unlocked bootloader, yes. Otherwise, no. With locked bootloader the only thing you can do in fastboot mode is getting version and passing unlock key
Click to expand...
Click to collapse
ya unlock bootloader only
i renamed kernel.elf to boot.img and try to flash via flashtool fastboot method and i get Failed( image is not a boot image)

Just renaming won't work, you need to convert kernel.elf into a proper .img file. If I remember correctly, there was a thread explaining how to do that somewhere, but I couldn't find it now...

any one else know how to convert that kernel.elf to boot.img

stalin.sk2 said:
any one else know how to convert that kernel.elf to boot.img
Click to expand...
Click to collapse
u can directly flash kernel.elf to phone using fastboot,..no need to convert...but my doubt is which kernel is in elf format/?

Learn to edit Kernel
ansebovi said:
u can directly flash kernel.elf to phone using fastboot,..no need to convert...but my doubt is which kernel is in elf format/?
Click to expand...
Click to collapse
yes i know how to flash kernel.sin, kernel.elf
my question is how to create "boot.img" from "kernel.elf" or from ftf
(Learning to modify the kernel content as beginner )

stalin.sk2 said:
yes i know how to flash kernel.sin, kernel.elf
my question is how to create "boot.img" from "kernel.elf" or from ftf
(Learning to modify the kernel content as beginner )
Click to expand...
Click to collapse
u need linux for that...

ansebovi said:
u need linux for that...
Click to expand...
Click to collapse
yes i installed ubuntu

stalin.sk2 said:
yes i installed ubuntu
Click to expand...
Click to collapse
u can extract data from elf using flashtool with extract option from tools
then see here http://forum.xda-developers.com/showthread.php?t=1477845
http://forum.xda-developers.com/showthread.php?t=2073775
hope u can do by this..

Related

play not working after unlocking bootloader.

I unlocked my boot loader the way it shows you on sonyericsson site, now my phone wont work it gets to the sony ericsson then stops. anyone no whats happened?
Adam1986 said:
I unlocked my boot loader the way it shows you on sonyericsson site, now my phone wont work it gets to the sony ericsson then stops. anyone no whats happened?
Click to expand...
Click to collapse
did u flash any rom or kernel??
all i did was root my play using the one click method a wile ago, and was using v6 supercharger, so decided to unlock boot loader how it shows you on sony site, im kind of new to all this, i wanted to try a new rom but i needed to unlock boot loader, now its just stuck at 2nd sony ericsson start up screen.
Adam1986 said:
all i did was root my play using the one click method a wile ago, and was using v6 supercharger, so decided to unlock boot loader how it shows you on sony site, im kind of new to all this, i wanted to try a new rom but i needed to unlock boot loader, now its just stuck at 2nd sony ericsson start up screen.
Click to expand...
Click to collapse
unlock bootloader cant cause like that, maybe something else.. try to flash your firmware back using flashtool..
Does anyone no whats happened? please help ha also was gona try installing doomlords kernel but when i try to unzip the file it says its not a valid archive, is it not a zip file?
Adam1986 said:
Does anyone no whats happened? please help ha also was gona try installing doomlords kernel but when i try to unzip the file it says its not a valid archive, is it not a zip file?
Click to expand...
Click to collapse
as i said.. flash back your stock rom via flashtool.. it should solve your problem..
for doomkernel.. its a .img file that u need to flash it using fastboot
thanks for helping, where can i find the flash tool? what software do i use to unpack doomlords kernel? thanks again for any help.
Adam1986 said:
thanks for helping, where can i find the flash tool? what software do i use to unpack doomlords kernel? thanks again for any help.
Click to expand...
Click to collapse
Flashtool:
http://androxyde.github.com/
what software do i use to unpack doomlords kernel?:
It is usually a .IMG file that you flash using Fastboot.exe (there's many guide in the forums on this, just have a search around)
how do i flash back to stock rom, ive installed flashtool, now do i need to download another rom? also i still cant find anything on how to unpack doomlords kernel :/ sorry for all questions im just a noob ha.
Adam1986 said:
how do i flash back to stock rom, ive installed flashtool, now do i need to download another rom? also i still cant find anything on how to unpack doomlords kernel :/ sorry for all questions im just a noob ha.
Click to expand...
Click to collapse
You don't unpack the kernel. Search the development forum for the correct .ftf file that corresponds to your phone model.
Then, find a guide to using fastboot. That will tell you how to use the kernel.
Sent from my R800x using XDA
Adam1986 said:
how do i flash back to stock rom, ive installed flashtool, now do i need to download another rom? also i still cant find anything on how to unpack doomlords kernel :/ sorry for all questions im just a noob ha.
Click to expand...
Click to collapse
flash this stock rom http://www.mediafire.com/?69i1wwhlvzf18f8
then place it in firmware folder in flashtool.. then flash it(turn off phone, hold the back button n connect to pc via usb.. led turn green.)
flash this kernel (.img file) via fastboot http://forum.xda-developers.com/showthread.php?t=1176502&page=216
put boot.img file in the fastboot folder.
fastboot download - http://www.mediafire.com/?ea6l1lab1tl0ah3
open fastboot folder, press shift+right click.. then click ' open command window here ' then..turn phone off, hold the search button(blue led)
type this in the command window - fastboot flash boot boot.img
turn on phone.. n thats it
p/s : u need to flash doomkernel wifi module in cwm.. gud luck
Thanks

Use toolkit

Can i use toolkit to flash BOOT.IMG files required for running custom roms???
By placing them in "KERNEL" folder and renaming it...
Yes... as long as the boot.img is renamed as boot.img
ckpv5 said:
Yes... as long as the boot.img is renamed as boot.img
Click to expand...
Click to collapse
But the toolkit says its only meant for kernels.
and shud i flash a non-stock kernel for cm9??
When we talk about kernel, we are talking about boot.img
ckpv5 said:
When we talk about kernel, we are talking about boot.img
Click to expand...
Click to collapse
Thanks dude

Kernel problem - cannot load boot.img no error

Hi
I already installed fastboot. Works ok. And then I tried to install kernel.
i typed fastboot flash boot boot.img and i got an error cannot load boot.img no error
i tried everything but without success. my phone is in fastboot mode and all other commands works too.
i thank u in advance
Is the BL actually unlocked?
Sent from the app on my Z1C...
XperienceD said:
Is the BL actually unlocked?
Sent from the app on my Z1C...
Click to expand...
Click to collapse
Yes BL is unlocked.
Sugarfreee said:
Yes BL is unlocked.
Click to expand...
Click to collapse
Need to ask given the limited information you've provided. Is the kernel in the same folder as your fastboot.exe?
I solved the problem. My kernel boot was named boot.img
thanks anyway for the help

Find someone who can do boot.img and recovery.img for xperiu L1

Find someone who can do boot.img and recovery for xperiu L1
Custom recovery isn't required if you use Magisk to root, but custom kernel is no exception.
I tried to modify stock kernel with Magisk Manager but it failed.
Currently I don't have Linux PC so building custom kernel may be a problem.
mingkee said:
Custom recovery isn't required if you use Magisk to root, but custom kernel is no exception.
I tried to modify stock kernel with Magisk Manager but it failed.
Currently I don't have Linux PC so building custom kernel may be a problem.
Click to expand...
Click to collapse
Use Android Image Kitchen by @osm0sis to convert the boot.elf (boot.img) and fotakernel.elf (recovery.img) to standard aosp .img format then test using fastboot (Bootloader must be unlocked) Check out other "mediatek" xperia device threads also.
I tried before.
It didn't work as it cannot unpack the boot.img extracted using Flashtool sin converter
@bigrammy
Do you help a create boot.img And recovery.img
Bro please helping very very thanxxxxx
mingkee said:
I tried before.
It didn't work as it cannot unpack the boot.img extracted using Flashtool sin converter
Click to expand...
Click to collapse
HEKER510 said:
@bigrammy
Do you help a create boot.img And recovery.img
Bro please helping very very thanxxxxx
Click to expand...
Click to collapse
Upload the boot.sin and fotakernel.sin only to a NO spam file host like mega or G-drive and I will take a look when I get some time.
bigrammy said:
Upload the boot.sin and fotakernel.sin only to a NO spam file host like mega or G-drive and I will take a look when I get some time.
Click to expand...
Click to collapse
Actually, you can download full ROM using Flashtool with xperifirm, and extract boot and recovery using SIN extractor.
Currently I am at work and I will upload them to android file host later Monday
mingkee said:
Actually, you can download full ROM using Flashtool with xperifirm, and extract boot and recovery using SIN extractor.
Currently I am at work and I will upload them to android file host later Monday
Click to expand...
Click to collapse
Bro do you created boot.img and recovery.img
Very very thanxxxx bro
mingkee said:
Actually, you can download full ROM using Flashtool with xperifirm, and extract boot and recovery using SIN extractor.
Click to expand...
Click to collapse
Did you Really type that. :laugh: :laugh:
I have enough #***# on my PC without adding even more unnecessary Gig's for a device I don't even own.
As you will know there are many variants country to country single sim dual sim etc so I will need the boot from the testers variant and not just one I made guess at.
bigrammy said:
Did you Really type that. :laugh: :laugh:
I have enough #***# on my PC without adding even more unnecessary Gig's for a device I don't even own.
As you will know there are many variants country to country single sim dual sim etc so I will need the boot from the testers variant and not just one I made guess at.
Click to expand...
Click to collapse
G3313 (single SIM)
Kernel
https://androidfilehost.com/?fid=962021903579487242
MD5: af6470e932b1231cf207343a97eeee76
Recovery
https://androidfilehost.com/?fid=673791459329055867
MD5: 871ca7cc7c688b722f7fe38597ff18cb
mingkee said:
G3313 (single SIM)
Kernel
https://androidfilehost.com/?fid=962021903579487242
MD5: af6470e932b1231cf207343a97eeee76
Recovery
https://androidfilehost.com/?fid=673791459329055867
MD5: 871ca7cc7c688b722f7fe38597ff18cb
Click to expand...
Click to collapse
Here is the boot.img to test.
It has not been modified in anyway so encryption and verity are still enabled as they are in the stock .elf
IF it boots then we will move on.
Bootloader unlock is required just for clarity and anyone thinking of testing it.
I have successfully modified the kernel and mine is rooted.
The next one will be dual SIM version and it will come later.
Here is mine https://androidfilehost.com/?fid=673791459329055871
---------- Post added at 09:54 AM ---------- Previous post was at 09:40 AM ----------
bigrammy said:
Here is the boot.img to test.
It has not been modified in anyway so encryption and verity are still enabled as they are in the stock .elf
IF it boots then we will move on.
Bootloader unlock is required just for clarity and anyone thinking of testing it.
Click to expand...
Click to collapse
Use Notepad ++ to edit default.prop
ro.secure=0
ro.debuggable=1
Save and repack.
That's it.
mingkee said:
I have successfully modified the kernel and mine is rooted.
The next one will be dual SIM version and it will come later.
Click to expand...
Click to collapse
So I need not of wasted my time after all
I am well aware of how to root a kernel and do all things regarding sony and mediatek and I think you somehow got your wires crossed.
I suggested to you how to modify the kernel.elf but you said you tried and failed that's why I offered to HELP I don't even have the L1 hence the reason for not going for the full on modification of the kernel until it was fully tested.
Anyway now your underway I will leave you all to get on with it.
Good Luck :good:
Unfortunately, I am still unable to make TWRP for L1 at this time.
Moreover, it appears that modified stock image doesn't work for other L1 variations, and all I have is US version. I uploaded all three variations and see the results.
It looks like SIM cannot be read with modified image.
where is tutorial on XDA on how to twrp recovery create please link brothersss very thankx
HEKER510 said:
where is tutorial on XDA on how to twrp recovery create please link brothersss very thankx
Click to expand...
Click to collapse
I found there's a YouTube video to tell how to compile.
https://youtu.be/WkulPr_uUqI
Linux machine required.
mingkee said:
I found there's a YouTube video to tell how to compile.
https://youtu.be/WkulPr_uUqI
Linux machine required.
Click to expand...
Click to collapse
hm i windows machine (((((((((
i find this https://www.youtube.com/watch?v=799eopwzQYg
this is good tutorial How to make Cwm or Twrp recovery for any Android device
https://www.youtube.com/watch?v=rFnG7fso9HE
How backup stock recovery ?
I am install apk flashfire and open and click backup stock recovery but failed
How to stock recovery bro?
Where is it?

Deleted everything

Hi
I was messing around with my system and tought I delete everything in TWRP. :crying:
I am still able to go in TWRP and Fastboot.
I messed with the partition formats too.
What can I do then?
Android 10(Lineageos17) wont boot, I always get to the fastboot.
Thanks a lot for your answers.
Konradrundfunk said:
Hi
I was messing around with my system and tought I delete everything in TWRP. :crying:
I am still able to go in TWRP and Fastboot.
I messed with the partition formats too.
What can I do then?
Android 10(Lineageos17) wont boot, I always get to the fastboot.
Thanks a lot for your answers.
Click to expand...
Click to collapse
you can flash stock rom with any fastboot tutorial of you device, but take care because i think it can brick if you flash any wrong rom
zumboy said:
you can flash stock rom with any fastboot tutorial of you device, but take care because i think it can brick if you flash any wrong rom
Click to expand...
Click to collapse
but with fastboot you can only flash images i thought
Konradrundfunk said:
but with fastboot you can only flash images i thought
Click to expand...
Click to collapse
i think you need unzip your rom and run these commands in fastboot console
zumboy said:
i think you need unzip your rom and run these commands in fastboot console
Click to expand...
Click to collapse
this :
zumboy said:
this :
Click to expand...
Click to collapse
from the stock rom?
Konradrundfunk said:
from the stock rom?
Click to expand...
Click to collapse
yes, or you can easly flash stock rom without unzip & console commands. with Xiaomi miflash tool.
search it in google/youtube
zumboy said:
yes, or you can easly flash stock rom without unzip & console commands. with Xiaomi miflash tool.
search it in google/youtube
Click to expand...
Click to collapse
but can u just use TWRP for theese?
zumboy said:
this :
Click to expand...
Click to collapse
I cant't see the first file in the images folder
Thank You
Konradrundfunk said:
I cant't see the first file in the images folder
Click to expand...
Click to collapse
Ok that worked out realy well thanks a lot!!!!:good::good::good:

Categories

Resources