Sony Xperia Z2 Tablet LTE (sony-castor)

Contributors

 * bjorn andersson (ported device to 4.3)
 * robclark (freedreno support)
 * opendata26
 * plata

Users owning this device
See also Sony_Xperia_Z2_Tablet_(sony-castor-windy), which has no modem but uses the same device package.

Warning
On sony-castor-windy, trying write to an SD card seems to always end up having it corrupted. And even worse: Also the internal memory seems to get corrupted. I have not tested if already reading an SD card can cause memory corruption. The situation is unknown on sony-castor.

What does not work

 * GUI (tested with plasma, phosh on sony-castor)

Unlock Bootloader (tested on sony-castor)
This might not work if the device is in factory settings, so setup Android once.
 * open dialer and type
 * Service info → Configuration → Rooting Status
 * check that bootloader unlock says "Yes" (otherwise, you cannot unlock)
 * use the IMEI to retrieve the unlock code from the Sony website
 * turn off device and disconnect USB (if connected)
 * hold volume up and connect USB to computer to enter fastboot (LED should switch from red to blue)
 * with the unlock code from the Sony website as :

Install pmbootstrap

 * see Installing_pmbootstrap

Install postmarketOS
Then follow the general installation instructions in Installation_guide, i.e.
 * turn off device and disconnect USB (if connected)
 * hold volume up and connect USB to computer to enter fastboot (LED should switch from red to blue)
 * select  and

However, the  partition is rather small, so one might want to install to the   partition instead via

Plasma Mobile
Set scaling to 3x:

Setting the date
Since the rtc driver is read only you need to use ntp to set the date

PostmarketOS kernel
qcom-msm8974

Graphics
Graphics in the current version of the above kernel is very unstable, the screen usually freezes after a few minutes of running X. Maybe the same as ? The most recent kernel where it is more stable is qcom-msm8974-5.12.13, which is in commit 2ebc93b43e92b4eada0cefba70561642508b191d in pmaports. However, that version does not include a patch which makes the external power supply work.

So, if you want have both mostly stable graphics and a functioning charger, change to pmaports commit

2ebc93b43e92b4eada0cefba70561642508b191d,

apply the patch

c7bfa860092c00e9c02d3907dbc545e5e41083bc

from linux-postmarketos and build linux-postmarketos-qcom-msm8974 manually.

Useful key combinations

 * fastboot: volume up and connect USB
 * hard shutdown: press and hold volume up and power

Links

 * Initial merge request


 * Sony Xperia Z2 Tablet Wifi
 * Sony Developer|Unlock bootloader
 * Sony Developer|Useful key combinations
 * Kernel
 * New MDP5 Bindings