Jump to content

Sony Xperia Z2 Tablet (sony-castor-windy)

From postmarketOS Wiki
Revision as of 21:23, 22 December 2020 by Eloy (talk | contribs) (update arch)
Note This device is still running on armhf, although the processor supports armv7. If you own it, change it and test it that way.
Warning WARNING: This device is not recommended for future use with postmarketOS due to its armhf architecture. Alpine Linux (the distribution that postmarketOS extends) pmaports#599 has been considering dropping it.
The processor of the device may support the armv7 architecture. If so, you can modify the device package and change the architecture accordingly.
Sony Xperia Z2 Tablet
Sony Xperia Z2 Tablet
Sony Xperia Z2 Tablet
Manufacturer Sony
Name Xperia Z2 Tablet
Codename sony-castor-windy
Released 2014
Hardware
Chipset Qualcomm APQ8074AB Snapdragon 801
CPU Quad-core 2.3 GHz Krait 400
GPU Adreno 330
Display 1200x1920 TFT
Storage 16/32 GB
Memory 3 GB
Architecture armhf
Software
Original software Android 4.4.2 on Linux 3.4
postmarketOS
Category testing
Pre-built images no
Mainline yes
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
Works
NFC
No data
Miscellaneous
FDE
Works
USB OTG
No data
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Contributors

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

Users owning this device


What works

  • Booting the system
  • Kernel log to the display
  • Framebuffer graphics
  • Unlocking the root partition
  • Display Backlight control
  • Wayland on framebuffer
  • Module loading
  • Wifi (see Additional Info below)
  • Notification led
  • Freedreno (see Additional Info below)

What does not work

  • Audio
  • Both cameras

Installation

  1. Init pmbootstrap
$ ./pmbootstrap.py init
  1. Start the build process and install flash to the device
# Replace /dev/sdX with the device for your sdcard
$ ./pmbootstrap.py install
$ ./pmbootstrap.py flasher flash_rootfs
$ ./pmbootstrap.py flasher flash_kernel

Links

Wifi

The linux-firmware (included by default) package is required to provide the brcmfmac firmware necessary for initializing the wifi device.

Once the device has been successfully initialized, enable it:

$ sudo ip link set wlan0 up

Configure wpa_supplicant (only necessary on encrypted networks):

$ sudo su -
# wpa_passphrase $YOUR_SSID > /etc/wpa_supplicant/wlan0.conf
<enter passphrase here and press Enter>
# exit

Connect to network using wpa_supplicant:

$ sudo wpa_supplicant -i wlan0 -c /etc/wpa_supplicant/wlan0.conf 

If your network uses DHCP, start the DHCP client:

$ sudo udhcpc -i wlan0

Freedreno

Freedreno is only supported with X and kwin atm as weston segfaults
Here are some games being played https://imgur.com/a/ji6jl#jhR61Ww

# Install mesa and X allong with the touchscreen driver
$ sudo apk add mesa mesa-dri-freedreno xorg-server xf86-input-libinput

# Start X
$ sudo X &

Setting the date

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

# Install openntpd
$ sudo apk add openntpd

# Write the current system time to the hardware clock
$ sudo ntp -s

Helpful Links for Porting