Sony Xperia XA (sony-tuba)

From postmarketOS Wiki
Sony Xperia XA
Sony Xperia XA
Sony Xperia XA
Manufacturer Sony
Name Xperia XA
Codename sony-tuba
Released 2016
Type handset
Hardware
Chipset MediaTek Helio P10 (MT6755)
CPU Octa-core (4x2.0 GHz Cortex-A53 & 4x1.0 GHz Cortex-A53)
GPU Mali-T860MP2
Display 720 x 1280 IPS
Storage 16GB
Memory 2 GB
Architecture aarch64
Software
Original software Android
Original version 6.0.1
postmarketOS
Category testing
Pre-built images no
Mainline no
postmarketOS kernel 3.18.35
Features
Flashing
Works
USB Networking
Works
Internal storage
SD card
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Audio
Camera
Camera Flash
Connectivity
WiFi
Broken
Bluetooth
GPS
NFC
Modem
Calls
SMS
Mobile data
Miscellaneous
FDE
USB OTG
HDMI/DP
Sensors
Accelerometer
Magnetometer
Ambient Light
Proximity
Hall Effect
Haptics
Barometer


Contributors

Maintainer(s)

Users owning this device

  • Natsu (Notes: Single SIM)


How to enter flash mode

  1. Power off: Power+Vol+ until device vibrates three times
  2. Connect usb cable to computer
  3. Press and hold Vol+
  4. Connect usb cable to phone
  5. Hold Vol+ until led turns blue
  6. Fastboot mode is now active

Installation

  1. pmbootstrap init, select sony-tuba, answer questions
  2. pmbootstrap install
  3. pmbootstrap flash_rootfs
  4. pmbootstrap flash_kernel

Kernel

As of 2020-10-01, vendor kernel SonyCustoms/kernel_sony_tuba_stock is used. The original should be available from Sony Developer World, but for some reason the 33.3.A series used by Xperia XA does not seem to be available in their kernel repository at all and Xperia open source archives only have a outdated build 33.3.A.115 while .126 is the latest.

Touchscreen

Touchscreen is apparently some ELAN model. The driver is included in the vendor kernel at drivers/input/touchscreen/mediatek/ektf3249_VY36. It seems to work correctly with postmarketOS userspace.

Display

Without including msm-fb-refresher package, weston gui booted successfully and the desktop environment and postmarketOS demos menu were shows correctly. However, the screen was not updating at all, resulting in apparent nonresposiveness to touch and frozen datetime. Adding msm-fb-refresher solved the issue.

Problems

  • Horizontal boot splash image is shown, even though screen in vertically aligned, resulting to part of splash screen being hidden and bottom of screen being left blank.
  • When usb power is connected and battery is not completely empty, device boots.

See also