Difference between revisions of "Sony Xperia Z2 Tablet (sony-castor-windy)"

From postmarketOS
Jump to: navigation, search
m (CmdrWgls moved page Xperia Z2 Tablet (sony-castor-windy) to Sony Xperia Z2 Tablet (sony-castor-windy): Device title format change.)
(Added infobox.)
Line 1: Line 1:
 
[[Category:Supported Devices]]
 
[[Category:Supported Devices]]
=== Contributors ===
+
[[Category:Devices]]
 +
{{Infobox device
 +
| manufacturer = Sony
 +
| name = Xperia Z2 Tablet
 +
| codename = sony-castor-windy
 +
| image = File:Sony Xperia Z2 Tablet.png
 +
| imagecaption = Sony Xperia Z2 Tablet
 +
| releaseyear = 2014
 +
| originalsoftware = Android 4.4.2 on Linux 3.10
 +
| cpu = Qualcomm MSM8974AB Snapdragon 801
 +
| gpu = Adreno 330
 +
| storage = 16GB
 +
| display = 1920x1200
 +
| memory = 3GB
 +
}}
 +
== Contributors ==
  
 
* bjorn andersson (ported device to 4.3)
 
* bjorn andersson (ported device to 4.3)
Line 6: Line 21:
 
* opendata26
 
* opendata26
  
=== What works ===
+
== What works ==
  
 
* Booting the system
 
* Booting the system
Line 19: Line 34:
 
* Freedreno (see Additional Info below)
 
* Freedreno (see Additional Info below)
  
=== What does not work ===
+
== What does not work ==
  
 
* Audio
 
* Audio
 
* Both cameras
 
* Both cameras
  
=== Installation ===
+
== Installation ==
  
 
# Init pmbootstrap
 
# Init pmbootstrap
Line 35: Line 50:
 
$ ./pmbootstrap.py flasher flash_system
 
$ ./pmbootstrap.py flasher flash_system
 
$ ./pmbootstrap.py flasher flash_kernel</source>
 
$ ./pmbootstrap.py flasher flash_kernel</source>
=== Links ===
+
 
 +
== Links ==
  
 
* [https://github.com/postmarketOS/pmbootstrap/tree/master/aports/device/device-sony-castor-windy Device package]
 
* [https://github.com/postmarketOS/pmbootstrap/tree/master/aports/device/device-sony-castor-windy Device package]
 
* [https://github.com/andersson/kernel Kernel source]
 
* [https://github.com/andersson/kernel Kernel source]
  
==== Wifi ====
+
== Wifi ==
  
 
The <code>linux-firmware</code> (included by default) package is required to provide the brcmfmac firmware necessary for initializing the wifi device.
 
The <code>linux-firmware</code> (included by default) package is required to provide the brcmfmac firmware necessary for initializing the wifi device.
Line 59: Line 75:
  
 
<pre>$ sudo udhcpc -i wlan0</pre>
 
<pre>$ sudo udhcpc -i wlan0</pre>
==== Freedreno ====
+
 
 +
== Freedreno ==
  
 
Freedreno is only supported with X atm as weston segfaults<br />
 
Freedreno is only supported with X atm as weston segfaults<br />
Line 69: Line 86:
 
# Start X
 
# Start X
 
$ sudo X &</source>
 
$ sudo X &</source>
==== Setting the date ====
+
 
 +
== Setting the date ==
  
 
Since the rtc driver is read only you need to use ntp to set the date
 
Since the rtc driver is read only you need to use ntp to set the date
Line 78: Line 96:
 
# Write the current system time to the hardware clock
 
# Write the current system time to the hardware clock
 
$ sudo ntp -s</source>
 
$ sudo ntp -s</source>
=== Helpful Links for Porting ===
+
 
 +
== Helpful Links for Porting ==
  
 
* [https://github.com/andersson/kernel Kernel]
 
* [https://github.com/andersson/kernel Kernel]
 
* [http://elixir.free-electrons.com/linux/v4.8.16/source/Documentation/devicetree/bindings/display/msm/mdp5.txt New MDP5 Bindings]
 
* [http://elixir.free-electrons.com/linux/v4.8.16/source/Documentation/devicetree/bindings/display/msm/mdp5.txt New MDP5 Bindings]

Revision as of 22:26, 4 September 2017

Sony Xperia Z2 Tablet
Sony Xperia Z2 Tablet
Sony Xperia Z2 Tablet
Manufacturer Sony
Name Xperia Z2 Tablet
Codename sony-castor-windy
Released 2014
Original software Android 4.4.2 on Linux 3.10
Hardware
CPU Qualcomm MSM8974AB Snapdragon 801
GPU Adreno 330
Display 1920x1200
Storage 16GB
Memory 3GB
Features
USB Networking
Flashing
Touchscreen
Display
WiFi
Xwayland
FDE
Mainline
Battery
3D Acceleration
Accelerometer
Audio
Bluetooth
Camera
GPS
Mobile data
SMS
Calls
USB OTG


Contributors

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

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_system
$ ./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 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