Jump to content

Sony Xperia 1 III (sony-pdx215)

From postmarketOS Wiki
Sony Xperia 1 III
CHANGE_ME
CHANGE_ME
Manufacturer Sony
Name Xperia 1 III
Codename sony-pdx215
Released 2021
Type handset
Hardware
Chipset Qualcomm Snapdragon 888 (SM8350)
CPU Octa-core (1x2.84 GHz Cortex-X1
3x2.42 GHz Cortex-A78
4x1.80 GHz Cortex-A55)
GPU Adreno 660
Display 1644x3840 6.5" OLED
Storage 256GB/512GB
Memory 12GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 12
Extended version
The most recent supported version from the manufacturer.
Android
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
Features
Flashing
Whether it is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Untested
Battery
Whether charging and battery level reporting work.
Untested
Screen
Whether the display works; ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Untested
Camera
Untested
IR TX
Untested
Connectivity
WiFi
Untested
Bluetooth
Untested
GPS
Untested
NFC
Near Field Communication
Untested
Modem
Calls
Untested
SMS
Untested
Mobile data
Untested
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
USB OTG
USB On-The-Go or USB-C Role switching.
Untested
Sensors
Accelerometer
Handles automatic screen rotation in many interfaces.
Untested
Magnetometer
Sensor to measure the Earth's magnetism
Untested
Ambient Light
Measures the light level; used for automatic screen dimming in many interfaces.
Untested
Proximity
Untested
Hall Effect
Measures magnetic fields; usually used as a flip cover sensor
Untested

Contributors

Users owning this device

  • Alexeymin (Notes: Daily driver (one of))
  • Janmp (Notes: wip port & mainline)
  • Marijn (Notes: Mainline target)


How to enter flash mode

Before you can flash PostmarketOS, you'll need to unlock your bootloader as described on Sony's open devices portal. This may potentially void your warranty, be warned, and read the warnings that Sony provide also.

Once you've finished these steps, your device will have been wiped. Set up android if you want, you won't have any reason to get rid of it because UFS doesn't work at the moment (see below). Then, either:

  • Power off the device. Holding up on the volume rocker, plug the device into a computer.
  • (or, on android) get an adb shell and run adb reboot bootloader.

Status

This device belongs to the Sony Sagami platform, which is the Xperia 1 III (this one, pdx215) and Xperia 5 III (pdx214).

Work has been done on the device trees in the mainline kernel by the folks over at somainline.

For now installing on the sdcard starts up, ssh through usb works. For some reason the screen quickly turns off, and there are some errors in dmesg.

If you want to try to use pmOS you can copy the packages from here. You need to put them into your local pmaports, then installing with pmbootstrap should work fine (Installation). The patch to the kernel is for now a debug tool to see more in dmesg, so get rid of it if you need to.

For now there is a patch adding the screen driver made by User:Marijn from SoMainline at the time of writing available here (also used in the newest patch of the linked pmos packages). From barebones testing, Lomiri and Phosh work on the device with this driver.

The goals for now are:

  • loading the pieces in dts properly (mainly /soc@0/interrupt-controller@17a00000 does not seem to work for now)
  • making the UFS work (or finding out if it can't)

UFS

The phone's internal storage is UFS. Sony's past devices have had a bug that will erase the phone's entire internal storage if you try to start up UFS on mainline, because one of the UFS commands is misimplemented. This includes wiping the bootloader, bricking the device FOR EVER.

We currently have UFS disabled in the device tree, which renders the device's internal storage unusable but means there is no chance of anything getting bricked. It should be possible to patch out this command and reenable UFS in dts on a device-specific kernel eventually.

For now with a test device there is slow work on enabling the UFS. Looking through the Sony kernel patches, it seems that the bug might be gone by this generation. For now the UFS still doesn't work, and with it set in the dts according to the phone's dts the booting process stops, but the phone is still usable.

See also