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.
Jimmy McGee · Apr 28, 2015 at 06:00 am · no comments

Xposed Modules to Modify Email – XDA Xposed Tuesday

Even though we have Dropbox and other ways to share files, people still want to send files by email. Some Email apps on your Android device have a limit on file sizes. These limits are often lower that the emails servers limits. Why can’t you attach to the limit set by your server? In this episode of XDA Xposed Tuesday, XDA TV Producer TK reviews a couple Xposed Modules that removed the file size limit of the email client. Today...

XDA NEWS
Emil Kako · Apr 27, 2015 at 12:26 pm · 5 comments

Do You Use 4:3 or 16:9 in the Camera App?

Every person has their own method of taking the best photos on their devices, but which aspect ratio is best when taking photos on your smartphone camera? Let us know whether you prefer to use 4:3 or 16:9 and why in the comments below.

DISCUSS
Aamir Siddiqui · Apr 27, 2015 at 11:12 am · 3 comments

The Curious Case Of The Flash Sale

What do the horses in the Xiaomi stable, notably the Mi 3, Mi 4, Redmi 1S, Redmi 2 & Redmi Note 4G have in common with the YU Yureka or the Micromax Canvas Spark, or even the Lenovo A6000 and the A7000? For starters, the mentioned phones are amongst the more value centric Android smartphones, aiming to offer a better deal in terms of specifications and an overall package, than their domestic and foreign competitors in the Indian market. What...

XDA NEWS
Share This