Jump to content

Sony Xperia XZ2 (sony-akari): Difference between revisions

From postmarketOS Wiki
Exkc (talk | contribs)
Add some notes to clarify for beginners
 
(5 intermediate revisions by one other user not shown)
Line 3: Line 3:
| name = Xperia XZ2
| name = Xperia XZ2
| codename = sony-akari
| codename = sony-akari
| image = File:sony-akari.png
| image =  
| imagecaption = Xperia XZ2
| imagecaption =  
| releaseyear = 2018
| releaseyear = 2018
| originalsoftware = Android 10.0 on Linux 4.9
| category = testing
| originalsoftware = Android
| originalversion =
| extendedversion =
| orginalkernel = 4.9
| chipset = Qualcomm Snapdragon 845 (SDM845)
| chipset = Qualcomm Snapdragon 845 (SDM845)
| cpu = Octa-core (4x 2.7GHz Kryo 385 Gold + 4x 1.7GHz Kryo 385 Silver)
| cpu = Octa-core (4x 2.8 GHz Kryo 385 Gold & 4x 1.8 GHz Kryo 385 Silver)
| gpu = Adreno 630
| gpu = Adreno 630
| storage = 64GB UFS
| storage = 64 GB
| display = 1080x2160 5.7" IPS LCD
| display = 1440x2880 LCD
| memory = 4GB / 6GB
| memory = 4/6 GB
| architecture = aarch64
| architecture = aarch64
| status_usbnet =  
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| status_flashing =  
| status_usbnet = Y
| status_touch =  
| status_flashing = Y
| status_screen =  
| status_touch = Y
| status_wifi =  
| status_screen = Y
| status_xwayland =  
| status_wifi =
| status_fde =  
| status_xwayland =
| status_mainline =  
| status_fde =
| status_battery =  
| status_mainline = P
| status_3d =  
| status_battery =
| status_accel =  
| status_3d = Y
| status_audio =  
| status_accel =
| status_bluetooth =  
| status_audio =
| status_camera =  
| status_bluetooth =
| status_gps =  
| status_camera =
| status_mobiledata =  
| status_gps =
| status_sms =  
| status_mobiledata =
| status_calls =  
| status_sms =
| booting = no <!-- not merged into pmaports -->
| status_calls =
| pmoskernel = mainline
| status_nfc =
| whet_dhry =
| status_otg =
| status_irtx =
| status = booting to debug shell, UFS not working, mainline WIP
| booting = yes
| type = handset
}}
}}




==Basic info==
==Basic info==
XZ2/XZ2 Compact/XZ3 has smailer situation (see [[Samsung Galaxy S III (samsung-m0)#Basic info]]) as [[Samsung Galaxy S III (samsung-m0)]] , [[Samsung Galaxy S III LTE (samsung-m3)]] but unlike samsung-m* there are a unify name and unify code name for XZ2/XZ2 Compact/XZ3: Tama device (sony-tama).Currently XZ2/XZ2 Compact/XZ3 are packaged into three subpackages of sony-tama.
XZ2/XZ2 Compact/XZ3 has smailer situation (see [[Samsung Galaxy S III (samsung-m0)#Basic info]]) as well as [[Samsung Galaxy S III (samsung-m0)]] , [[Samsung Galaxy S III LTE (samsung-m3)]] but unlike samsung-m* there are a unify name and unify code name for XZ2/XZ2 Compact/XZ3: Tama device (sony-tama).Currently XZ2/XZ2 Compact/XZ3 are packaged into their own device packages .


== How to enter flash mode ==
== How to enter flash mode ==
You have to press {{Button|Power}} + {{Button|Volume Up}} to enter the bootloader.
You have to press {{Button|Power}} + {{Button|Volume Up}} to enter the bootloader.


== Installation ==
== Configuration/Build ==
It is possible to either use a pre-built image as explained in the [[installation]] article, or to use [[pmbootstrap]] to build your own image.
It is possible to either use a pre-built image as explained in the [[installation]] article, or to use [[pmbootstrap]] to build your own image.


1. Run <code>pmbootstrap init</code> and select sony as vendor and akatsuki as device.
1. Run <code>pmbootstrap init</code> and select sony as vendor and akari as device.


3. Follow the onscreen instruction and configure as your needs.
3. Follow the onscreen instruction and configure as your needs.
Line 57: Line 65:
[18:20:41] Available vendors (79): acer, alcatel, amazon, amediatech, apple, ark, arrow, asus, beelink, bq, cubietech, cutiepi, dongshanpi, essential, fairphone, finepower, fly, generic, goclever, google, gp, hisense, htc, huawei, inet, infocus, jolla, klipad, kobo, lark, leeco, lenovo, lg, mangopi, medion, meizu, microsoft, mobvoi, motorola, nextbit, nobby, nokia, nvidia, odroid, oneplus, oppo, ouya, pegatron, pine64, planet, purism, qemu, radxa, raspberry, samsung, semc, sharp, shift, sipeed, sony, sourceparts, surftab, t2m, tablet, thundercomm, tokio, tolino, trekstor, vernee, videostrong, volla, wexler, wiko, wileyfox, xiaomi, xunlong, yu, zte, zuk
[18:20:41] Available vendors (79): acer, alcatel, amazon, amediatech, apple, ark, arrow, asus, beelink, bq, cubietech, cutiepi, dongshanpi, essential, fairphone, finepower, fly, generic, goclever, google, gp, hisense, htc, huawei, inet, infocus, jolla, klipad, kobo, lark, leeco, lenovo, lg, mangopi, medion, meizu, microsoft, mobvoi, motorola, nextbit, nobby, nokia, nvidia, odroid, oneplus, oppo, ouya, pegatron, pine64, planet, purism, qemu, radxa, raspberry, samsung, semc, sharp, shift, sipeed, sony, sourceparts, surftab, t2m, tablet, thundercomm, tokio, tolino, trekstor, vernee, videostrong, volla, wexler, wiko, wileyfox, xiaomi, xunlong, yu, zte, zuk
[18:20:41] Vendor [sony]:
[18:20:41] Vendor [sony]:
[18:20:44] Available codenames (23): amami, aries, castor, coconut, eagle, falconss, hollyss, honami, ivy, leo, mango, nicki, scorpion, seagull, sirius, sumire, suzu, suzuran, tama, taoshan, tuba, tulip, yuga
[18:20:44] Available codenames (24): akari, amami, aries, castor, coconut, eagle, falconss, hollyss, honami, ivy, leo, mango, nicki, scorpion, seagull, sirius, sumire, suzu, suzuran, tama, taoshan, tuba, tulip, yuga
[18:20:44] Device codename [tama]:
[18:20:44] Device codename [tama]: akari
[18:20:46] Which kernel do you want to use with your device?
[18:20:46] Available kernels (3):
[18:20:46] * akari: Sony Xperia XZ2
[18:20:46] * akatsuki: Sony Xperia XZ3
[18:20:46] * apollo: Sony Xperia XZ2 Compact
[18:20:46] Kernel [apollo]: akatsuki
[18:21:21] This device has proprietary components, which trade some of your freedom with making more peripherals work.
[18:21:21] This device has proprietary components, which trade some of your freedom with making more peripherals work.
[18:21:21] We would like to offer full functionality without hurting your freedom, but this is currently not possible for your device.
[18:21:21] We would like to offer full functionality without hurting your freedom, but this is currently not possible for your device.
Line 79: Line 81:
<pre>
<pre>
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_kernel
$ truncate -s 2 dtbo_empty.img
$ fastboot flash dtbo dtbo_empty.img
$ fastboot flash dtbo dtbo_empty.img
$ fastboot  --disable-verity --disable-verification flash vbmeta vbmeta.img
$ fastboot  --disable-verity --disable-verification flash vbmeta vbmeta.img
Line 84: Line 87:


=== Installation to SD card ===
=== Installation to SD card ===
You can take advantage of Akatsuki's SD card slot to install postmarketOS for testing.
You can take advantage of Akari's SD card slot to install postmarketOS for testing.


Install to the SD card:
Install to the SD card:

Latest revision as of 19:01, 31 August 2024

Sony Xperia XZ2
Manufacturer Sony
Name Xperia XZ2
Codename sony-akari
Released 2018
Type handset
Hardware
Chipset Qualcomm Snapdragon 845 (SDM845)
CPU Octa-core (4x 2.8 GHz Kryo 385 Gold & 4x 1.8 GHz Kryo 385 Silver)
GPU Adreno 630
Display 1440x2880 LCD
Storage 64 GB
Memory 4/6 GB
Architecture aarch64
Software
Original software Android
postmarketOS
Category testing
Pre-built images no
Mainline partial
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
No data
Camera
No data
Camera Flash
No data
IR TX
No data
Connectivity
WiFi
No data
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
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


Basic info

XZ2/XZ2 Compact/XZ3 has smailer situation (see Samsung Galaxy S III (samsung-m0)#Basic info) as well as Samsung Galaxy S III (samsung-m0) , Samsung Galaxy S III LTE (samsung-m3) but unlike samsung-m* there are a unify name and unify code name for XZ2/XZ2 Compact/XZ3: Tama device (sony-tama).Currently XZ2/XZ2 Compact/XZ3 are packaged into their own device packages .

How to enter flash mode

You have to press Power + Volume Up to enter the bootloader.

Configuration/Build

It is possible to either use a pre-built image as explained in the installation article, or to use pmbootstrap to build your own image.

1. Run pmbootstrap init and select sony as vendor and akari as device.

3. Follow the onscreen instruction and configure as your needs.

Sample output:

[18:20:39] Channel [edge]:
[18:20:41] Choose your target device vendor (either an existing one, or a new one for porting).
[18:20:41] Available vendors (79): acer, alcatel, amazon, amediatech, apple, ark, arrow, asus, beelink, bq, cubietech, cutiepi, dongshanpi, essential, fairphone, finepower, fly, generic, goclever, google, gp, hisense, htc, huawei, inet, infocus, jolla, klipad, kobo, lark, leeco, lenovo, lg, mangopi, medion, meizu, microsoft, mobvoi, motorola, nextbit, nobby, nokia, nvidia, odroid, oneplus, oppo, ouya, pegatron, pine64, planet, purism, qemu, radxa, raspberry, samsung, semc, sharp, shift, sipeed, sony, sourceparts, surftab, t2m, tablet, thundercomm, tokio, tolino, trekstor, vernee, videostrong, volla, wexler, wiko, wileyfox, xiaomi, xunlong, yu, zte, zuk
[18:20:41] Vendor [sony]:
[18:20:44] Available codenames (24): akari, amami, aries, castor, coconut, eagle, falconss, hollyss, honami, ivy, leo, mango, nicki, scorpion, seagull, sirius, sumire, suzu, suzuran, tama, taoshan, tuba, tulip, yuga
[18:20:44] Device codename [tama]: akari
[18:21:21] This device has proprietary components, which trade some of your freedom with making more peripherals work.
[18:21:21] We would like to offer full functionality without hurting your freedom, but this is currently not possible for your device.
[18:21:21] device-sony-tama-nonfree-firmware: Modem, WiFi and GPU Firmware, also needed for osk-sdl
[18:21:21] Enable this package? (y/n) [y]: y

Next, we will build the system:

pmbootstrap install # add --fde if you need full disk encryption (FDE)

Flash the kernel and rootfs:

$ pmbootstrap flasher flash_kernel
$ truncate -s 2 dtbo_empty.img
$ fastboot flash dtbo dtbo_empty.img
$ fastboot  --disable-verity --disable-verification flash vbmeta vbmeta.img

Installation to SD card

You can take advantage of Akari's SD card slot to install postmarketOS for testing.

Install to the SD card:

$ pmbootstrap install --sdcard=/dev/mmcblk0

Mainline status

There's significant progress on upstreaming the device specific parts to the mainline kernel here: https://github.com/SoMainline/linux

Display

Works fine. MSM DRM based panel.


Touchscreen

3D GPU Acceleration

Since our panels are MSM DRM based, 3D acceleration works perfectly fine using the freedreno driver from mainline.

WiFi

Bluetooth

Audio

Battery

GPS

Camera

Mobile Data, Calls and SMS

Dual SIM

Mobile Data Problems

Change Kernel parameters

1, sudo vim /etc/deviceinfo

2, Change cmdline parameters to desired state

3, sudo apk fix linux-postmarketos-qcom-sdm845

Community Info

Maintainers

  • phodina

Users owning this device


See also