Sony Xperia 1 II (sony-pdx203)
This device has been tested with postmarketOS, but its device package has not yet been added to the postmarketOS repositories. This means that it cannot be selected in pmbootstrap. |
CHANGE_ME CHANGE_ME | |
Manufacturer | Sony |
---|---|
Name | Xperia 1 II |
Codename | sony-pdx203 |
Released | 2020 |
Type | handset |
Hardware | |
Chipset | Qualcomm Snapdragon 865 5G (SM8250) |
CPU |
Octa-core (1x2.84 GHz Kryo 585 3x2.42 GHz Kryo 585 4x1.80 GHz Kryo 585) |
GPU | Adreno 650 |
Display | 1644x3840 6.5" OLED |
Storage | 128GB/256GB |
Memory | 8/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 |
Flashing It is possible to flash the device with pmbootstrap flasher . |
Broken
|
---|---|
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 Charging and battery level reporting works |
Untested
|
Screen 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 Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile |
Untested
|
Magnetometer Sensor to measure magnetism |
Untested
|
Ambient Light |
Untested
|
Proximity |
Untested
|
Hall Effect Also known as flip cover sensor |
Untested
|
Contributors
Users owning this device
- Marijn (Notes: Old DD, mainline target)
- Tath1nhhdk (Notes: Main device)
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
.
Installation
WARNING: DO NOT NEVER EVER EVER TRY TO ENABLE UFS ON NON-VENDOR/NON-SODP KERNELS! IT WILL ERASE THE CHIP CLEAN (INCLUDING THE BOOTLOADER!) CONSIDER YOURSELF WARNED |
For more info on UFS see below
Because UFS doesn't work, you'll want to flash the rootfs to an sdcard. Use pmbootstrap install --sdcard=/dev/path-to-sdcard-device
. Take a look at partitioning to understand what's going on here.
You'll need to flash some empty bytes to the dtbo due to a bootloader bug. Create a file with two empty bytes with truncate -s 2 emptystuff.img
and then flash it with fastboot flash dtbo emptystuff.img
Then flash the kernel as usual, by putting the device into flash mode (fastboot) and then running pmbootstrap flasher flash-kernel
.
Status
This device belongs to the Sony Edo platform, which is the Xperia 1 II (this one, pdx203), Xperia 5 II (pdx206) and the 2020 Xperia PRO (pdx204). This might warrant a common platform page if anyone gets their hands on another Edo.
Work has been done on the device trees in the mainline kernel by the folks over at somainline. The device does boot, but I can't get SSH to work, telnet works fine, also for some reason the initramfs cannot find my sdcard
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.