Sony Xperia 5 II (sony-pdx206): Difference between revisions
mNo edit summary |
remove dodoradio as device contributor due to no actual involvement in project |
||
(13 intermediate revisions by 8 users not shown) | |||
Line 6: | Line 6: | ||
| imagecaption = CHANGE_ME | | imagecaption = CHANGE_ME | ||
| releaseyear = 2020 | | releaseyear = 2020 | ||
| originalsoftware = Android 10 | | originalsoftware = Android | ||
| chipset = | | originalversion = 10 (Linux 4.14) | ||
| chipset = Qualcomm Snapdragon 865 5G (SM8250) | |||
| cpu = Octa-core (1x2.84 GHz Kryo 585 & 3x2.42 GHz Kryo 585 & 4x1.80 GHz Kryo 585) | | cpu = Octa-core (1x2.84 GHz Kryo 585 & 3x2.42 GHz Kryo 585 & 4x1.80 GHz Kryo 585) | ||
| gpu = Adreno 650 | | gpu = Adreno 650 | ||
Line 14: | Line 15: | ||
| memory = 8GB | | memory = 8GB | ||
| architecture = aarch64 | | architecture = aarch64 | ||
| type = handset | |||
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) --> | <!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) --> | ||
| status_usbnet = <!-- USB networking does work? then put Y here and delete this comment --> | | status_usbnet = Y<!-- USB networking does work? then put Y here and delete this comment --> | ||
| status_flashing = <!-- Flashing with "pmbootstrap flasher" works? Put Y here. It works the same for everything coming below. --> | | status_flashing = N<!-- Flashing with "pmbootstrap flasher" works? Put Y here. It works the same for everything coming below. --> | ||
| status_touch = | | status_touch = Y | ||
| status_screen = | | status_screen = Y | ||
| status_wifi = <!-- Wireless network works? --> | | status_wifi = <!-- Wireless network works? --> | ||
| status_xwayland = <!-- Showing X11 applications in a Wayland compositor (Weston, KWin, ...) works? --> | | status_xwayland = <!-- Showing X11 applications in a Wayland compositor (Weston, KWin, ...) works? --> | ||
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? --> | | status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? --> | ||
| status_mainline = <!-- Instead of a Linux kernel fork, it is possible to run mainline. --> | | status_mainline = Y<!-- Instead of a Linux kernel fork, it is possible to run mainline. --> | ||
| status_battery = <!-- Charging the battery with charging-sdl is possible --> | | status_battery = <!-- Charging the battery with charging-sdl is possible --> | ||
| status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) --> | | status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) --> | ||
Line 41: | Line 43: | ||
| status_proximity = <!-- Proximity sensor works --> | | status_proximity = <!-- Proximity sensor works --> | ||
| status_hall = <!-- Hall effect sensor works --> | | status_hall = <!-- Hall effect sensor works --> | ||
| booting = | | booting = Y <!-- The device is booting at all, can be yes/no *IMPORTANT* --> | ||
<!-- you can also use these lines if you need to: | <!-- you can also use these lines if you need to: | ||
Line 54: | Line 56: | ||
== Contributors == | == Contributors == | ||
* [[User:Konradybcio|Konrad Dybcio]] (@konradybcio) | |||
== Users owning this device == | == Users owning this device == | ||
Line 63: | Line 66: | ||
== How to enter flash mode == | == How to enter flash mode == | ||
Before you can flash PostmarketOS, you'll need to unlock your bootloader as described on [https://developer.sony.com/develop/open-devices/get-started/unlock-bootloader/ 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 <code>adb reboot bootloader</code>. | |||
== Installation == | == Installation == | ||
no install | no actual aport at the moment. | ||
{{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 <code>pmbootstrap install --sdcard=/dev/path-to-sdcard-device</code>. Take a look at [https://wiki.postmarketos.org/wiki/Partition_Layout partitioning] to understand what's going on here. | |||
You'll need to flash some empty bytes to the dtbo due to a bootloader bug. Get a file with two empty bytes and then flash it with <code>fastboot flash dtbo emptystuff.img</code> | |||
Then flash the kernel as usual, by putting the device into flash mode (fastboot) and then running <code>pmbootstrap flasher flash-kernel</code>. | |||
== Status == | == Status == | ||
Line 78: | Line 92: | ||
* smaller overall body | * smaller overall body | ||
Work has been done on the device trees in the mainline kernel by the folks over at [https://somainline.org somainline]. The device does boot, USB networking and ssh work, and the framebuffer works, so x11 UIs should work. | |||
== 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. | |||
== See also == | == See also == |
Latest revision as of 15:01, 13 October 2024
CHANGE_ME CHANGE_ME | |
Manufacturer | Sony |
---|---|
Name | Xperia 5 II |
Codename | sony-pdx206 |
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 | 1080x2520 6.1" OLED |
Storage | 128GB/? |
Memory | 8GB |
Architecture | aarch64 |
Software | |
Original software | Android |
Original version | 10 (Linux 4.14) |
postmarketOS | |
Category | testing |
Pre-built images | no |
Mainline | yes |
Flashing |
Broken |
---|---|
USB Networking |
Works |
Internal storage |
No data |
SD card |
No data |
Battery |
No data |
Screen |
Works |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
No data |
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 |
Contributors
- Konrad Dybcio (@konradybcio)
Users owning this 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
no actual aport at the moment.
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. Get a file with two empty bytes 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 (pdx203), Xperia 5 II (this one, pdx206) and the 2020 Xperia PRO (pdx204). This might warrant a common platform page if anyone gets their hands on another Edo.
The defining features of the Xperia 5 II compared to other Edo is as follows:
- 128GB UFS + 8GB RAM. GSMArena mentions a 256GB variant but it's not certain that it exists.
- lack of TOF depth camera
- smaller display resolution (both other Edo have 1644 x 3840), running at 120hz (other Edo run at 60hz)
- smaller overall body
Work has been done on the device trees in the mainline kernel by the folks over at somainline. The device does boot, USB networking and ssh work, and the framebuffer works, so x11 UIs should work.
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.