Jump to content

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

From postmarketOS Wiki
Exkc (talk | contribs)
No edit summary
Add some notes to clarify for beginners
 
Line 52: Line 52:
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 81: 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 86: 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