Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

LK (LittleKernel) for Tablet Z

OP lilstevie

22nd June 2013, 04:30 AM   |  #1  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
Note: This is a preview build only, features may change or be incomplete at this time
SGP311 & SGP312 only

Installation instructions in the second post, download links in the third

What is LittleKernel?
LittleKernel is an opensource bootloader for qualcomm devices available from codeaurora.

Why LK?
TL;DR Version
LK allows running separate boot and recovery that are fully independant of eachother.
Sony use a special method of booting into recovery for their updates, this is not available when you are unlocked, and there is no button combination to enter this mode. As a result the common method to get recovery on Xperia devices has been to use an initrd that has a script to load either normal boot or recovery boot based on a button press. This is a far from ideal solution as when you update your kernel it also updates your recovery. If something goes wrong you are stuck needing a computer to reflash the kernel partition.

With the recent addition of TWRP support for the latest devices there have been advances made in this technique making recovery updatable it still requires the flashed boot image to support that method. This is less than ideal still as it reduces choice in what you want on your device, giving the decision to the dev of the rom you have flashed. This also leaves you in the position of needing your computer if a kernel update fails for any reason.

LK solves these problems by separating out boot and recovery to their own kernels with their own ramdisks like every other device, if you flash the boot kernel, recovery isn't touched and will be there for you as a failsafe in case anything goes wrong. This removes the need to have a computer near by in case of breakage occuring.

What progress has been made?

I have been working on LK for the Xperia Z phone and since the release for the Xperia T have managed to make things a little more portable between devices.

Once the hardware arrives I need to compare the expected configuration against what is expected and add these definitions into my Xperia modifications to the aboot module.

Are there any changes that devs should look at?

Yes, they are minor but I suggest that devs look at the implementation by Dees_Troy for flip flopping boot and fota kernel. Soon I will also publish a patch to kernel restart procedure so that reboot messages can be passed to LK from kernel without S1Boot intercepting and clearing them.

Reboot patch will be very similar to http://review.cyanogenmod.org/#/c/44366/

XDA:DevDB Information
LK (LittleKernel) for Tablet Z, a Tool/Utility for the Sony Xperia Tablet Z

Contributors
lilstevie

Version Information
Status: Alpha
Current Beta Version: 1.0a
Beta Release Date: 2013-07-02

Created 2013-07-30
Last Updated 2013-08-26
Last edited by lilstevie; 2nd July 2013 at 06:12 AM.
The Following 16 Users Say Thank You to lilstevie For This Useful Post: [ View ]
22nd June 2013, 04:31 AM   |  #2  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
Installation:
Follow these instructions for installing the preview of lk.
  1. Boot device in fastboot mode
  2. Flash pollux_windy-lk.img
  3. Type "fastboot reboot"
  4. Press Vol-Down between 1 and 5 seconds after rebooting
  5. Flash boot.img with "fastboot flash boot boot-pollux_windy.img"
  6. Flash recovery with "fastboot flash recovery pollux_wifionly.img"
  7. Reboot device

Notes:

S1Boot (default bootloader) has different Device ID's to LK, this is to make it easier to identify when you are in lk fastboot, and because google's drivers are more available. The device will show up like the following if you are in lk fastboot:
Code:
Bus 001 Device 049: ID 18d1:d00d Google Inc.
This is only a preview, if your serial number does not show up in settings please notify me so that this can be investigated.

This is for Pollux_Windy only, that is the WiFi version of the Tablet Z, Model numbers are SGP311 and SGP312.

Because this is chainloaded from S1Boot pressing vol-up/down within the first second from pressing the power button may end up in flashmode or sony's fastboot. There is a 5 second timeout for pressing buttons in LK, you will not miss it if you wait a second.

Volume-up will boot the kernel you have flashed to recovery.
Volume-down boots into fastboot.
Last edited by lilstevie; 2nd July 2013 at 06:15 AM.
The Following 5 Users Say Thank You to lilstevie For This Useful Post: [ View ]
22nd June 2013, 04:31 AM   |  #3  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
Downloads:

LK for pollux_windy: here
Stock boot image: here

TWRP by Dees_Troy: here

Note: The boot.img is entirely stock, only repacked for use with lk. Kernel is from .370
Last edited by lilstevie; 28th February 2014 at 03:48 PM.
The Following 3 Users Say Thank You to lilstevie For This Useful Post: [ View ]
22nd June 2013, 04:32 AM   |  #4  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
Source:
https://github.com/lilstevie/android..._bootloader_lk

How To Build:
Coming soon
Last edited by lilstevie; 2nd July 2013 at 06:15 AM.
The Following 2 Users Say Thank You to lilstevie For This Useful Post: [ View ]
24th June 2013, 03:39 PM   |  #5  
tehSmoogs's Avatar
Member
Flag Essex
Thanks Meter: 13
 
57 posts
Join Date:Joined: Jul 2012
More
Thumbs up
Sounds good!
1st July 2013, 08:22 AM   |  #6  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
Tablet Z has arrived today, once I've charged, rooted and backed up TA I will unlock and get lk booting
The Following 2 Users Say Thank You to lilstevie For This Useful Post: [ View ]
1st July 2013, 04:21 PM   |  #7  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
LK is up and running on my tabz now, in the morning I am going to push out a preview build.
The Following 4 Users Say Thank You to lilstevie For This Useful Post: [ View ]
2nd July 2013, 06:16 AM   |  #8  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
updated first few posts with preview build and information on installing
The Following 3 Users Say Thank You to lilstevie For This Useful Post: [ View ]
2nd July 2013, 11:42 AM   |  #9  
Senior Member
Thanks Meter: 591
 
580 posts
Join Date:Joined: Nov 2011
just want to understand. when we flash lk in fastboot. what partion are we flashing LK to?

Sent from my SCH-I605 using xda app-developers app
Last edited by skiwong20; 2nd July 2013 at 12:19 PM.
2nd July 2013, 12:42 PM   |  #10  
lilstevie's Avatar
OP Senior Recognized Developer
Thanks Meter: 1,040
 
1,334 posts
Join Date:Joined: Apr 2009
Donate to Me
More
Quote:
Originally Posted by skiwong20

just want to understand. when we flash lk in fastboot. what partion are we flashing LK to?

Sent from my SCH-I605 using xda app-developers app

it is being flashed to boot (the kernel partition). It takes 1Mb off the start to store lk along with enough room for future expansion. LK is aware of how it is set up and uses FOTAKernel as the kernel partition so that no room is lost to lk, then recovery gets the ~19MiB left of boot after lk.

The Following User Says Thank You to lilstevie For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Tags
xda tablet z competition
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes