[Help to Devs] boot loader cracking tips from x8 - Sony Ericsson XPERIA X10 Mini

Original LINK: http://forum.xda-developers.com/showthread.php?t=1023670
To start and organize X8 bootloader bypassing, and to leave X10 developers to focus entirely on X10 cracking, I've made this thread to keep track of progress and for developers to share info.
Of course, X10 developers, you're welcome too! Don't be shy!
Most important: do not ask for ETAs, and progress. It will be posted here, in first two posts.
Note: First two posts will be updated regulary, so don't forget to check them regularly!
What has to be done:
Compile splboot as kernel module - should be fine - nobodyAtall
Compile miniloader for MSM7227 - probably not working OK (jerpelea)
Make boot.img with zImage and ramdisk for X8
Developers and their work:
andrej456 - splboot, 15th May
Asdoos - signed up splboot.ko and miniloader - no progress yet
Bin4ry - side help and tips
Blagus - initiator, splboot, miniloader, boot.img, kernel
Chumby_666 - mood-lifter in IRC and tools provider
jerpelea - kernel progress
nobodyAtall - first compilation of splboot.ko and miniloader
slade87 - checking out splboot and miniloader, therefore reviving this subject, 2nd May
zdzihu - side help and tips
Progress (sorted by time):
splboot.ko - compiled by nobodyAtall - checked by jerpelea - working fine
miniloader - compiled by nobodyAtall - compiled from msm7x sources - checked by jerpelea, probably not working
ramdisk - from jerpelea - OK
kernel - needs to be compiled:
Originally Posted by jerpelea View Post
after many atrempts it seems that our problem is the compiled kernel
i have tested ramdisk and is ok
is loaded at correct address with correct parameters
kernel seems not to be compiled corectly
i will try to recompile and we will see
How to boot into custom kernel (how to test is it even working):
1) Get splboot.ko, miniloader and boot.img.
2) Download FlashTool 0.2.9.1
3) Place three files downloaded eariler to ./custom/kernel, replace existing files.
5) Ask root permissions - Allow
6) xRecovery
7) Install kernel bootkit (Advanced -> Kernel -> Install bootkit)
8) Reboot into custom kernel (Advanced -> Kernel -> Reboot custom kernel)
Click to expand...
Click to collapse
As far i can see the x8 comunity just need to recompile the kernel and thats it.
Maybe we can take advantage of what they did and try to work for our x10 mini/pro

Well, that's not so easy as it seems, we need to compile a splboot, and all who tried to did it, i think fail'd including me . Anyway we're working on that, but it's not gonna be easy

Does it by chance have anything to do with locating the root partition?

I really appreciate all the dev's hard work on this. With x10mp kernel being bypassed and seeing as we already have UV/OC/MT, what exactly is the benefit of putting a custom kernel on at this point?

D4rKn3sSyS said:
Well, that's not so easy as it seems, we need to compile a kernel, and all who tried to did it, i think fail'd including me . Anyway we're working on that, but it's not gonna be easy
Click to expand...
Click to collapse
compiling the kernel is not the issue compiling the splboot/miniloader with the adresses is the main issue.

slade87 said:
compiling the kernel is not the issue compiling the splboot/miniloader with the adresses is the main issue.
Click to expand...
Click to collapse
My bad i meant splboot.ko

Related

[Q] custom kernel / kexec status?

hey all,
just wondering...
- what is the current status for getting custom kernels running on the x10 mini / mini pro?
- has development of a kexec module or something similar begun based on code written for other phones?
- if so, does anybody know how far people have gotten? what difficulties are we facing at the moment in those regards?
i'm wondering because if nobody has started working on a kexec module then i thought i might try, but if someone is already working on it then i'd be glad to lend a hand if needed / if i can...
cheers,
uriah
uriahheep said:
hey all,
just wondering...
- what is the current status for getting custom kernels running on the x10 mini / mini pro?
- has development of a kexec module or something similar begun based on code written for other phones?
- if so, does anybody know how far people have gotten? what difficulties are we facing at the moment in those regards?
i'm wondering because if nobody has started working on a kexec module then i thought i might try, but if someone is already working on it then i'd be glad to lend a hand if needed / if i can...
cheers,
uriah
Click to expand...
Click to collapse
here is the development thread for bootloader bypassing (on x8, but our phones are "twined" )
it is a dev thread, so don't post anything unless you're a dev.
link is here
answers to your questions may be there
i cant put the link cause my post, but u can serarch this in google
"how to build a linux kernel" sony ericsson
is from the original dev SE team
burnice said:
i cant put the link cause my post, but u can serarch this in google
"how to build a linux kernel" sony ericsson
is from the original dev SE team
Click to expand...
Click to collapse
this link is only for open bootloader.
it is unuseful for now ^^
here is the link you are talking about: blogs.sonyericsson.com/wp/2011/05/06/how-to-build-a-linux-kernel/
wht z a kexec module?
death_syndrome said:
wht z a kexec module?
Click to expand...
Click to collapse
a kexec module is a kernel module which reconstructs the kexec functionality (which allows one to execute a kernel from within another kernel) that the linux kernel can have. usually kexec support needs to be built into the kernel (i.e. not a module), but by loading modules such as splboot (which is the kexec module that is being developed in the X8 bootloader bypassing thread based on work that was done for the X10) one can execute a kernel from within the current kernel even if kexec support wasn't built into it.
[EDIT] actually, splboot doesn't exactly reconstruct kexec support, but does something similar. see this post and the few that follow for more details.

[DEV] ICS Android 4.0 Porting and Development | es209ra (X10) | alpha1 | 21/11/2011

This is a dev thread. Do not install this release unless you know what you're doing. Do not post if you have nothing to contribute.
This is very early build, we're behind other qsd8k devices but will eventually catch up
Big thanks to all qsd8k developers working on this (N1, Desire, HD2, X10).
[KERNEL]
- ol' good 2.6.29-SEMC
- fixed touchscreen driver (now backward-compatibile with Gingerbread)
[ROM]
- partially based on drewis release (thanks!) - currently I don't have access to PC that could handle compilation of the whole thing
If someone could compile clean es209ra build and upload it would be awesome.
[WORKING]
- it boots
- radio, calls, txt (sms)
- audio partially working (in-call is fine, playing mp3/ringtones leads to WLOD)
- bluetooth, GPS seem to work
- wifi almost working ("can't find wlan0 device")
- mobile data (it gets IP but disconects afterwards, needs investiagtion)
[NOT WORKING]
- most of the stuff does not work
- quite unstable
[SOURCES]
Will upload all of the useful code/fixes here.
- ICS + GB compatibile touch driver: es209ra_touch_mt.c
- compatibile ramdisk (props FXP): http://www.mediafire.com/?1n51pn1upwv79ur
[DOWNLOAD]
Alpha1 ROM (for CWM5) + corresponding kernel (flashtool) is here:
http://www.mediafire.com/?ht6p6tbpj2988d4
Cheers,
z
Just did a major clean up on this thread mates....no more "thanks" posts please. If thankful... click the thanks button.
Regards,
M_T_M
Finally we get it. aZuZu is working on ASOP ICS 4.0.1. This may help him work easier. So with locked bootloader, can we flash cause' you wrote there CWM5?
VIDEO
here's a video for ics on x10 alpha build 1
http://www.youtube.com/watch?v=bsOFn4YLvZU
@frosty666 please kindly include this on your ics discussion thread.
thankz
hi zdzihu, its great to see you back! is this only temporary or, are you going to be more active, like before?
mmmkay, I'm not dev, but I want to ask if you're compiling this from ground up (like Jerpelea's CM7), or you're like just mashup of current SE and ICS sources. if its a mashup, I can help. but I do very little design from ground up things.
Sent from my X10i using xda premium
if you have fixed audio hw sources i could recompile..
altho i have complete es209ra compile with ics hw, old cm gralloc / copybit sources and generic audio..
So for me doesn't even boot
As i came from night shift i will try later on more...
Here you are libhardware.so, libhardware_legacy.so & wpa_supplicant from my compiled ICS build so if someone can boot z rom maybe it could test this too
p.s.
it is searching ar6000.ko as normal stock one not wifi.ko as sdk port
aZuZu said:
So for me doesn't even boot
As i came from night shift i will try later on more...
Here you are libhardware.so, libhardware_legacy.so & wpa_supplicant from my compiled ICS build so if someone can boot z rom maybe it could test this too
p.s.
it is searching ar6000.ko as normal stock one not wifi.ko as sdk port
Click to expand...
Click to collapse
Hi Azuzu, I am able to compile single libs and binaries (libhw_legacy, supplicant), it's just dex and stuff causing problems (1GB of ram + 1.6GHz). As for libaudio, I will take a look soon
Cheers,
z
I help if u want
Hello guys, I'm new to the forum and I hope to see well with you.
I would be willing to help compile the source since EXCLUSIVELY use only Linux operating system and is much easier to work on programming because most of the libraries are already installed by default, I hope I was clear.
greetings
Joseph
zdzihu said:
Hi Azuzu, I am able to compile single libs and binaries (libhw_legacy, supplicant), it's just dex and stuff causing problems (1GB of ram + 1.6GHz). As for libaudio, I will take a look soon
Cheers,
z
Click to expand...
Click to collapse
yaay Z!!!
glad to see back!
now i feel so bad & depressed that i dont have a working x10 with me
hope that service center guy is able to repair it again...
@aZuZu
can u please upload ur work-in-progress sources to git... i know how much fixing u have done... it might help other too
aZuZu said:
So for me doesn't even boot
As i came from night shift i will try later on more...
Here you are libhardware.so, libhardware_legacy.so & wpa_supplicant from my compiled ICS build so if someone can boot z rom maybe it could test this too
p.s.
it is searching ar6000.ko as normal stock one not wifi.ko as sdk port
Click to expand...
Click to collapse
so good
I will try to build ICS this weekend!
I have no time this weekday
Zdzihu, if the wifi still reports the same error (can't find wlan0 device), it probably means that the kernel refers to wlan interface as eth0. Try changing the wifi.interface entry in build.prop to eth0.
little help for folks that compile ICS on weak pc
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/noproguard.classes-with-local.dex] Killed << if processes during compile get killed try this script > Fix Swap
Well to me helped so maybe it helps other ppl.
Has anyone pulled this Kernel apart, i'm trying to lock down some of the touch screen info but I can't gunzip the ICS ramdisk...not even sure if i should be able to.
I GPIO the main files out, can't see anything pertinent in there, so I can only assume its in this ramdisk...biggest problem is that if it is a corrupted archive I can't get ubuntu to open a recovery tool cos it's implementation of the Zlib system sucks dice
WHAT IS IT WITH SOME OF YOU GUYS, IT IS DEV ONLY THREAD AT THE REQUEST OF THE DEVELOPER, IF YOU CAN'T FOLLOW SIMPLE RULES THEN INFRACTIONS WILL BE HANDED OUT, YOU HAVE NOW BEEN WARNED!
wbbigdave said:
Has anyone pulled this Kernel apart, i'm trying to lock down some of the touch screen info but I can't gunzip the ICS ramdisk...not even sure if i should be able to.
I GPIO the main files out, can't see anything pertinent in there, so I can only assume its in this ramdisk...biggest problem is that if it is a corrupted archive I can't get ubuntu to open a recovery tool cos it's implementation of the Zlib system sucks dice
Click to expand...
Click to collapse
gunzip -c <ramdisk.gz> | cpio -i
Cheers,
z
The next member who disregards a developers request and posts in a non helpful way will be banned for a week.
i encourage any dev or helpful member to pm me or any other mod with the offending post and the user will be dealt with
Please don't reply tp them to tell them they are breaking th rules as you post will then also be rule break worthy
Hugs and kisses
PiLoT
http://review.cyanogenmod.com/#q,status:merged+project:CyanogenMod/android_frameworks_base,n,z
sorry for posting here. but is for development. for ICS, can we used modified 2.6.29, and modify, like what zdzihu did, it so it 100% or do we have to use 3.x (or whatever) becuase I'm starting to do kernel mods and I want to see what I can contribution.
so in all, does the newest kernel have to be ported? or can we continue using good old 2.6.29 and keep Modding it? (hopefully camera will work, drivers have to be rewritten for kernel. and no one likr to write drivers)
Sent from my X10i using xda premium
In case, we can see here how they get the SD Card working
http://forum.xda-developers.com/showthread.php?p=19774268#post19774268

Initramfs for Xperia Mini

Hello,
I am quite new to Android development. I want to build a kernel for my Xperia Mini.
I have been following the steps on the official SE site. However,I need an initramfs. How do I get it ?
Thank You !
I just downloaded one from github freexperia project, but after compiling the kernel the phone doesn't boot ! What may be the problem ?
If you downloaded FXP sources to use with the Stock rom, it wont boot due to different size on the ramdisk.
Try compiling the zImage from Doomlord's Sources.
link: https://github.com/DooMLoRD/Xperia-2011-Kernel-2.6.32.9
Btw... Wrong forum section
Hello, I downloaded the ramdisk from DooMLoRD sources on github and built the kernel using the steps provided on the SE website. However, the phone doen not boot using that kernel which I have built. What may have gone wrong ?
Please Help !

[Q] Compiling stock kernel

Hey Guys,
I'm following sony tutorial on how to build stock kernel.
It is my first time doing something like that so I don't have a lot of knowlodge.
I done the following.
- Downloaded the source
- Downloaded prebuild toolchain by doomlord
- configured the kernel
- edited menu config and got zimage
Then I'm stuck , don't know what to do next...
So my questions is :
1- from where should I get stock ics ramdisk ?
2- How can I merge the ramdisk and zimage to get my boot.img ( I mean finishing compiling process ) ?
Other questions
1- Do I need to edit menu config only to get ext support? ( I used "ncurses-devel" which enables me to edit menu config via terminal , and I think I found ext2/3 is enabled by default if I'm not mistaken!!!! )
2- How to upstream the kernel to the latest available ?
3- how to add a patch ( like power button + home key = fast reboot )
I just want to create a simple kernel close to sony's one with tiny modifications , and have some fun by compiling too
I'm using ubuntu for this...
If anyone could help by answering my questions or pointing me to the right tutorial , I'll be thankfull.
Mysteryagr said:
Hey Guys,
I'm following sony tutorial on how to build stock kernel.
It is my first time doing something like that so I don't have a lot of knowlodge.
I done the following.
- Downloaded the source
- Downloaded prebuild toolchain by doomlord
- configured the kernel
- edited menu config and got zimage
Then I'm stuck , don't know what to do next...
So my questions is :
1- from where should I get stock ics ramdisk ?
2- How can I merge the ramdisk and zimage to get my boot.img ( I mean finishing compiling process ) ?
Other questions
1- Do I need to edit menu config only to get ext support? ( I used "ncurses-devel" which enables me to edit menu config via terminal , and I think I found ext2/3 is enabled by default if I'm not mistaken!!!! )
2- How to upstream the kernel to the latest available ?
3- how to add a patch ( like power button + home key = fast reboot )
I just want to create a simple kernel close to sony's one with tiny modifications , and have some fun by compiling too
I'm using ubuntu for this...
If anyone could help by answering my questions or pointing me to the right tutorial , I'll be thankfull.
Click to expand...
Click to collapse
1.you can get ics ramdisk from ics stock kernel.
2.get kernel kitchen
1.1you need to edit ramdisk to add suport
1.2you need to find your way to upstream it.
1.3its not posibole to go to fast boot with that module coz semc bootloder use menu bootn.that conbinacion is used on samsung phones.
n1kolaa said:
1.you can get ics ramdisk from ics stock kernel.
2.get kernel kitchen
1.1you need to edit ramdisk to add suport
1.2you need to find your way to upstream it.
1.3its not posibole to go to fast boot with that module coz semc bootloder use menu bootn.that conbinacion is used on samsung phones.
Click to expand...
Click to collapse
1. Is this the right way to get the ramdisk from 2011 xperia stock kernel
Edit: used kernel kitchen for this
2. I have kernel kitchen Should I use it to assemble boot.img ?
Also in sony tut. they used mkbootimg program
Edit: will figure it out myself insted of looking dumb xD
1.1 ok
1.2 still searching but do not know how!
need help
1.3 I didn't mean fastboot I meant device reset Home + power key , already there in some xperia 2011 stock based and JB kernels.
Thanks for answering my questions , I'm noob trying to learn here
Mysteryagr said:
1. Is this the right way to get the ramdisk from 2011 xperia stock kernel
Edit: used kernel kitchen for this
2. I have kernel kitchen Should I use it to assemble boot.img ?
Also in sony tut. they used mkbootimg program
Edit: will figure it out myself insted of looking dumb xD
1.1 ok
1.2 still searching but do not know how!
need help
1.3 I didn't mean fastboot I meant device reset Home + power key , already there in some xperia 2011 stock based and JB kernels.
Thanks for answering my questions , I'm noob trying to learn here
Click to expand...
Click to collapse
look at naa kernel,its for reset keyboard...look at his source its inside kernel
ok will check that...
another thing
Can I take cwm recovery from other custom kernel and simply put it in my ramdisk sbin folder or it needs modifications?
Compiled successfully
Kernel Compiled successfully, and I flashed it to my phone. booted fine
But now I've a problems:
- A message shows "are you sure you enabled root"
I already changed ro.secure=1 to =0 in defualt.prop in ramdisk
anything else to do?

Request: Need latest Kernels of ZenDroKat ROM

I hope, this is okay for XDA...
I am only asking for kernels...
NOT for whole ROMs...
Maybe someone has working zImage of latest ZenDrokat for SD & NAND...
I Only have NAND kernel on Wave II...
Need also Kernels for SD and both for GT S8500...
If someon has these files pleas post here or PM me!
Thanks in advance!
V4.5
wave 2
nand
https://mega.co.nz/#!SAlDzRbK!A5t5u3Cv3LwxmZjIdouhcXM3rUskCHWLNQeZSwp4Y4w
sd
https://mega.co.nz/#!aMN0yQ7I!FpbxC0dqgdfCJjK0x-djwlG9oaJQ20VYwqyz86H_EKU
wave1
nand
https://mega.co.nz/#!KYkDRQYI!RS6njFpENUE17S6SWLNN_yWGYug9ad4DeFBfK0E1JCc
sd
https://mega.co.nz/#!uIdkzb7Y!BmPMrVpHqVhN9p-1xgNl1SOyyv46nhKXMtT4dcpK5EM
Taxidriver05 said:
I hope, this is okay for XDA...
I am only asking for kernels...
NOT for whole ROMs...
Maybe someone has working zImage of latest ZenDrokat for SD & NAND...
I Only have NAND kernel on Wave II...
Need also Kernels for SD and both for GT S8500...
If someon has these files pleas post here or PM me!
Thanks in advance!
Click to expand...
Click to collapse
I know Tigrouzen ROM's until now have not been GPL compliant (look here, here or here for example), but sharing this sources may allow XDA talk about it if it become GPL compliant:
Look at this from may 23th:
https://www.facebook.com/tigrouzen/posts/869017383124767
ICZen source 2.5GB compressed, 5GB uncompressed :
This is source not rom, you can modify and compile to make rom.
http://zendrokat.com/ICZen.tar.gz​
Edit1: I am afraid it is not GPL compliant, It seems he is just focusing on new project
-- not all sources have been shared ...
- "Of course i don't give it for free," ...
May 4th
https://www.facebook.com/tigrouzen/posts/856550224371483
If you are interesting from source & kernel pm me :
I make it 5GB full source and 2.4GB compressed, original source it is 20GB.
Support : 2 Weeks, also i support you if you need port Kitkat or Jelly Bean, explain how make it optimize.
Source ICS :
Ready to compile
Support if you have issue or need help and porting.
Very fast compile, 45min for my B960 2 core.
Rom file script :
Support for making it easy way and tweak
With last modification for make theme default.
Kernel source :
All script Nand, SD (bigmem...)
All tweak
Ready to compile, with bash script.
Recovery mode Integrated on kernel source :
I lost the source, but as you see it is complète
I added many thing on
Support for script making.
FBOOT : Multi boot source, like you can use it to boot under to 2 different rom with multi key code.
Kernel goes on 1 folder with 2 different name.
Example : boot ics kernel name : zIcs. Boot Kitkat kernel name zKitkat. Then with key holding you choose which rom you want boot.
I never do it because only support S8500
But it is work.
Of course i don't give it for free,there's more then 5 years experience work before making good kernel and good rom.
Ps : im on new project it is making file sharing next generation. zClouds...
hunktb said:
I know Tigrouzen ROM's until now have not been GPL compliant (look here, here or here for example), but sharing this sources may allow XDA talk about it if it become GPL compliant:
Look at this from may 23th:
https://www.facebook.com/tigrouzen/posts/869017383124767
ICZen source 2.5GB compressed, 5GB uncompressed :
This is source not rom, you can modify and compile to make rom.
http://zendrokat.com/ICZen.tar.gz​
Edit1: I am afraid it is not GPL compliant, It seems he is just focusing on new project
-- not all sources have been shared ...
- "Of course i don't give it for free," ...
May 4th
https://www.facebook.com/tigrouzen/posts/856550224371483
If you are interesting from source & kernel pm me :
I make it 5GB full source and 2.4GB compressed, original source it is 20GB.
Support : 2 Weeks, also i support you if you need port Kitkat or Jelly Bean, explain how make it optimize.
Source ICS :
Ready to compile
Support if you have issue or need help and porting.
Very fast compile, 45min for my B960 2 core.
Rom file script :
Support for making it easy way and tweak
With last modification for make theme default.
Kernel source :
All script Nand, SD (bigmem...)
All tweak
Ready to compile, with bash script.
Recovery mode Integrated on kernel source :
I lost the source, but as you see it is complète
I added many thing on
Support for script making.
FBOOT : Multi boot source, like you can use it to boot under to 2 different rom with multi key code.
Kernel goes on 1 folder with 2 different name.
Example : boot ics kernel name : zIcs. Boot Kitkat kernel name zKitkat. Then with key holding you choose which rom you want boot.
I never do it because only support S8500
But it is work.
Of course i don't give it for free,there's more then 5 years experience work before making good kernel and good rom.
Ps : im on new project it is making file sharing next generation. zClouds...
Click to expand...
Click to collapse
Zendrokat
Yesterday at 12:36am · Edited ·
ICZen source 2.5GB compressed, 5GB
uncompressed :
This is source not rom, you can modify and
compile to make rom.
http://zendrokat.com/ICZen.tar.gz
Use 7zip, already downloaded tested.
black0000 said:
Zendrokat
Yesterday at 12:36am · Edited ·
ICZen source 2.5GB compressed, 5GB
uncompressed :
This is source not rom, you can modify and
compile to make rom.
http://zendrokat.com/ICZen.tar.gz
Use 7zip, already downloaded tested.
Click to expand...
Click to collapse
Those are only ROM sources, but he says kernel sources will come later.
Can the Nand version of the kernel work on Badadroid, more specifically unofficial CM by volk? Can I just flash it or are there any other necessary steps? (Aside from the usual clear dalvik and cache)
Nope!
Tigrouzen's kernels are not compatible with volk204's ROMs.
Taxidriver05 said:
Nope!
Tigrouzen's kernels are not compatible with volk204's ROMs.
Click to expand...
Click to collapse
Hey @Taxidriver05, Tigrouzen mentioned that you had broken video and asked me to give you zImage that makes the video work again.
here it is for Wave I (Nand)
http://speedy.sh/ppwBe/zImage
you'll also notice faster back button and recents window
Silkmeister1
But I need kernel for Wave II...

Categories

Resources