egzthunder1 · Feb 20, 2013 at 06:00 pm

LK Bootloader for Sony Xperia T Breaks the Chains Between Kernel and Recovery

Often times, we find certain aspects of flashing ROMs, kernels, and anything that needs to be installed via recovery a bit of a pain. For instance, on older Samsung Galaxy devices (anything before the Galaxy S3), having a custom recovery involves having a kernel lumped alongside because the recovery and boot partition are stored in the same location. This means that updating the kernel will wipe your custom recovery. Now, most owners work around this limitation by flashing what is known as a repack, which is a stock or tweaked kernel that includes a custom recovery image. The likes of HTC and Motorola don’t do this, albeit they do have a few other issues, which we will not talk about right now.  Sony Xperia devices are no different from Samsung in that regard, as they also lump boot and recovery in the same area. However, the Sony Xperia T had a little something that was different than other devices with the same “issue.” Upon taking a closer look, XDA Recognized Developers lilstevieDees_Troy, and XDA Elite Recognized Developer Rebellos found a small gift from Sony at the very end of the eMMC memory: unused, unpartitioned 300 MB worth of memory. So, ideas started flying around and the devs got to work.

After several weeks of looking into things, and doing some major trial and error, they took that unused space and turned it into a new home for the recovery image. This is completely separate from the kernel (to a certain extent anyways), which means that flashing a new ROM with a new kernel will not replace the custom recovery image. What has been done was to replace a single stage of the entire boot process known as appsboot, which is patched/replaced by LK. It then loads a new stage (mmcblk0p16) that contains the kernel. From that point, the kernel will listen to commands to call upon recovery, which is located on FOTAKernel. The best part is that even after this, there may be enough free space at the end of the chip to do some more creative things such as the ability to store more kernels—perhaps even space for a multi-boot style menu (thanks XDA Recognized Developer cdesai for the explanation). Other added benefits include the ability to use either Sony .elf files or regular Android boot.img, and the ability to go into recovery from the ROM (reboot into recovery).

You will have to make sure that you are running a 4.1.2 official kernel (no CM or other AOSP variants supported as of yet). Also, ICS is not supported either by this release, mainly due to differences in the 3.0 kernel which will cause the device to not boot. Lastly,please understand that this will modify your partition tables. If you are OK with the inherent risks, make sure that you read and understand the installation instructions and take it for a spin.

Since getting the Xperia T the biggest annoyance is only having one bootable partition.
To combat this issue I have spent some time porting the Little Kernel bootloader. This 
allows booting different kernels for recovery and boot as well as a full implementation 
fastboot.

 

You can find more information in the original thread.

Want something published in the Portal? Contact any News Writer.


_________
Want something on the XDA Portal? Send us a tip!

egzthunder1

egzthunder1 is an editor on XDA-Developers, the largest community for Android users. I have been an active member of xda-developers since 2005 and have gone through various roles in my time here. I am Former Portal Administrator, and currently part of the administrator team while maintaining my writer status for the portal. In real life, I am a Chemical Engineer turned Realtor in the Miami area. View egzthunder1's posts and articles here.
Mario Tomás Serrafero · May 25, 2015 at 02:00 pm · 2 comments

XDA Office Space: Frankenstein’s Perfect IM Client?

The portal’s decentralized XDA office lies in a Hangouts chatroom, where we discuss the latest developments that hit the blogosphere, critique them and figure out what we can do to add a new or original point of view. We came to love this little virtual office, which sees messaging 24/7 due to the international nature of our team. The main problem that we have faced since early on is that Hangouts is not versatile enough for in-depth discussion.   What...

XDA NEWS
Emil Kako · May 25, 2015 at 12:32 pm · 4 comments

Which IM Client on Android is best?

With so many different messengers to choose from, it can be tough to find the best one for you and your friends to use. Hangouts, Whatsapp, Telegram and more are all battling it out for the number one spot. Let us know which IM client you think is best on Android and why.

DISCUSS
Jimmy McGee · May 25, 2015 at 12:00 pm · 2 comments

Android Factory Reset Security Flaw and More – XDA TV

Nvidia is releasing a 500Gb SHIELD TV Pro! That and much more news is covered by Jordan when he reviews all the important stories from this weekend. Included in this weekend's news is the announcement of an Android factory reset security flaw and be sure to check out the article talking about the Nexus Player getting TWRP. That's not all that's covered in today's video! Jordan covered the LG G4 First Impressions and Unboxing video from TK released this weekend...

XDA NEWS
Share This