WARNING 1: This modification makes changes
to the devices partition table. I (lilstevie) am not
responsible for any damage to your device or
data loss that may occur.
WARNING 2: ICS kernels currently do not boot
with this modification at this point in time. This
can only be used with JB kernels including those
from the alpha and leaked releases. At the time
of writing the TWRP 2.4.1.1 FOTA image has
everything required to boot without any changes.
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.
Features:
Separate boot and recovery partition.
Full fastboot implementation including fastboot boot (with correctly formatted boot.img)
Ability to load both Android boot image and sony elf formats.
Boot to recovery, and boot to recovery from userspace (requires patched kernel).
Known Issues:
No display until kernel has booted – This is also the case with S1Boot.
Cannot reboot into another boot mode without kernel patch.
No LEDs to indicate status.
ICS 3.0 kernels will not boot.
Usage:
After 1 second from pressing the power button LK will listen for input on the volume keys for 2-5 seconds:
Volume Up -> boot recovery.
Volume Down -> boot fastboot.
Credits:
Rebellos -- Inital work on getting eMMC and buttons working.
Dees_Troy -- extract_elf_ramdisk served as a base for elf parsing.
cdesai -- Bug fixes and hosting bootloader on his github.
Various others for support, if you think your name should be here
and that I have forgotten all about you let me know.
BBQLinux - An Arch based Linux distribution for Android developers
Website: http://www.bbqlinux.org | Downloads: [url]http://sourceforge.net/projects/bbqlinux/files//url]
IRC: #bbqlinux on freenode
Sweet. I saw the patch on gerrir and was wondering how it worked. Will have a try.
The only thing I'm wondering is whether there is a way to reverse the changes to the partition table.
Sent from my Xperia T using Tapatalk 2
Please don't send me PMs about my ROMs or asking for help. I probably won't respond. I take a much keener interest in people posting in the correct places and on the relevant thread. Also don't PM or ask about ETAs for any of my ROMs - I don't have them to give out.
My current phones: Huawei Ideos (U8150-D), ZTE Skate, Sony Xperia T
My Xperia T ROM: My self compiled CyanogenMod 10.1 ROM
My ZTE Skate ROM: ColdFusionX 3 (CyanogenMod 10.1 ROM - developed by me!)
My Huawei U8150 ROM: My self compiled CyanogenMod 10.1 ROM (basically retired now though)
Ok so from what I understand you are still depending on s1boot as primary bootloader. Then once the primary bootloader passes boot sequence to main kernel (mmcblk0p4) you have little kernel which will intercept it and then function as a bootloader? Which can then accept these commands or in turn boot a secondary kernel (fotakernel) or mmcblk0p16 which will now act as boot partition for the OS?
My concern is how are you making space for that mmcblk0p16? Are you repartitioning internal sdcard?
Sent from my LT30p using xda app-developers app
Quote:
Originally Posted by tilal6991
Sweet. I saw the patch on gerrir and was wondering how it worked. Will have a try.
The only thing I'm wondering is whether there is a way to reverse the to the partition table.
Sent from my Xperia T using Tapatalk 2
I think flashing a standard full stock firmware should restore partition table
There is 300mb free space at the end of the emmc, and this makes a new 30mb partition after the sdcard.
Like you said DooMLoRD, s1boot is still used, and it loads lk which in turn loads p16 as kernel, and p11(FOTA) as recovery.
There's still enough space left to add more kernels, and some sort of a boot menu to multi boot
CyanogenMod Maintainer | SGT7 | TeamBBQ
BBQLinux - An Arch based Linux distribution for Android developers
Website: http://www.bbqlinux.org | Downloads: [url]http://sourceforge.net/projects/bbqlinux/files//url]
IRC: #bbqlinux on freenode
Ok so from what I understand you are still depending on s1boot as primary bootloader. Then once the primary bootloader passes boot sequence to main kernel (mmcblk0p4) you have little kernel which will intercept it and then function as a bootloader? Which can then accept these commands or in turn boot a secondary kernel (fotakernel) or mmcblk0p16 which will now act as boot partition for the OS?
We can't actually replace S1Boot due to code signatures, and S1Boot is actually multiple bootloader stages in 1. Other devices would have pbl sbl and appsboot.mbn, Sony have combined them all into 1, LK is only a replacement for appsboot, thankfully between each stage everything that was turned on gets turned on for the purpose of appsboot (such as mmu) get turned off again before the next stage which allows us to do this without major hacks. Essentially what we are doing is adding an extra boot stage.
mmcblk0p16 which has been added to the end indeed does act as the new boot partition. I did originally plan to add another extra partition for boot, but after talking to Dees_Troy we worked out a situation where we could utilise FOTAKernel for recovery and not impact installation of TWRP from goomanager.
Quote:
Originally Posted by DooMLoRD
My concern is how are you making space for that mmcblk0p16? Are you repartitioning internal sdcard?
I do understand this concern, however I did notice that all Xperia T's that I have encountered so far (I checked with ~10 peoples devices) and they all have 300±25MB of unused, and unpartitioned space at the end of their eMMCs, I do not delete or resize any partitions. This is the script I run when installing lk if you are interested in seeing how it is done.
Quote:
Originally Posted by DooMLoRD
I think flashing a standard full stock firmware should restore partition table
Utimately this is what eased my feelings towards modifying the partition table, I understand people get a little bit funny about things that cannot be easily reverted, and in this case flashing a stock ftf or using EMMA to reflash back to stock will undo the changes to the partition table.
Please contact me if you have any of the following devices with a bootloader unlock: Xperia TX, TL (Are any of these unlocked?) and V. I would like to add support for these devices but as I do not have any of them I will need some testers.
EDIT: Xperia V is off the table for the moment as there isn't enough free space to remap the kernel partition.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?