Sony Xperia Z2 Tablet LTE (sony-castor)
| This device has been archived. This means that it no longer appears in pmbootstrap and is likely broken. It can still be selected in pmbootstrap init by typing in the vendor and codename, but you will have to build the kernel package manually. |
|
Sony Xperia Z2 Tablet | |
| Manufacturer | Sony |
|---|---|
| Name | Xperia Z2 Tablet LTE |
| Codename | sony-castor |
| Released | 2014 |
| Type | tablet |
| Hardware | |
| Chipset | Qualcomm Snapdragon 801 (MSM8974AB) |
| CPU | Quad-core 2.3 GHz Krait 400 |
| GPU | Adreno 330 |
| Display | 1200x1920 TFT |
| Storage | 16/32 GB |
| Memory | 3 GB |
| Architecture | armv7 |
| Software | |
Original software The software and version the device was shipped with. |
Android 4.4.2 on Linux 3.4 |
Extended version The most recent supported version from the manufacturer. |
Android |
| Nura | |
| Category | archived |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
no |
| Device package |
|
| Kernel package |
|
Flashing Whether it is possible to flash the device with pmbootstrap flasher. |
Works
|
|---|---|
USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). |
Works
|
Battery Whether charging and battery level reporting work. |
Works
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
| Multimedia | |
3D Acceleration |
Partial
|
Audio Audio playback, microphone, headset and buttons. |
Broken
|
Camera |
Broken
|
| Connectivity | |
Wi-Fi |
Works
|
Bluetooth |
Works
|
| Modem | |
Calls |
Untested
|
SMS |
Untested
|
Mobile data |
Untested
|
| Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Untested
|
| Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Untested
|
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 corrupting it. Even worse, the internal memory seems to get corrupted as well. I haven't 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 Mobile, Phosh on sony-castor)
How to enter flash mode
- Fastboot: With the device powered off, hold while connecting the device to a computer with a USB cable. The LED should switch from red to blue.
Installation
Prerequisites
Unlock Bootloader (tested on sony-castor)
This might not work if the device is in factory settings, so setup Android once.
- Open the Dialer app and type
*#*#7378423#*#* - 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
- Boot into Fastboot mode
- With the unlock code from the Sony website as
KEY:
$ fastboot oem unlock 0xKEY
Install pmbootstrap
Install Nura
Boot into Fastboot mode and follow the general instructions in Installation guide:
$ pmbootstrap init
Select sony and castor.
$ pmbootstrap install
$ pmbootstrap flasher flash_rootfs
$ pmbootstrap flasher flash_kernel
Since the system partition is rather small, it's recommended to install to the userdata partition instead via
$ pmbootstrap flasher flash_rootfs --partition userdata
Plasma Mobile
Set scaling to 3x:
$ kscreen-doctor output.1.scale.3
Setting the date
Since the RTC driver is read-only, the date msut be set with NTP:
Install openntpd
$ sudo apk add openntpd
Write the current system time to the hardware clock
$ sudo ntp -s
Graphics
| This section dates to September 2021 and is severely outdated. |
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 pmaports#424? The most recent kernel where it is more stable is qcom-msm8974-5.12.13, which is in commit 2ebc93b4 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 2ebc93b4 and apply the patch c7bfa8600[dead link] from linux-postmarketos and build
linux-postmarketos-qcom-msm8974 manually.
Links
- pmaports!1240 Initial merge request
- Bootloader unlocking on Sony Developer
- Useful key combinations on Sony Developer
- Kernel on GitHub
- New MDP5 Bindings