Jump to content

Sony Xperia 5 II (sony-pdx206): Difference between revisions

From postmarketOS Wiki
Dodoradio (talk | contribs)
No edit summary
Dodoradio (talk | contribs)
remove dodoradio as device contributor due to no actual involvement in project
 
(10 intermediate revisions by 8 users not shown)
Line 6: Line 6:
| imagecaption = CHANGE_ME
| imagecaption = CHANGE_ME
| releaseyear = 2020
| releaseyear = 2020
| originalsoftware = Android 10 on kernel 4.14
| originalsoftware = Android
| chipset = sm8250 Snapdragon 865 5G
| 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 = <!-- Touch screen is working? You can also answer these questions with P for partially. -->
| status_touch = Y
| status_screen = <!-- The display is working? -->
| 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 = no <!-- The device is booting at all, can be yes/no *IMPORTANT* -->
| 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 55: Line 57:
== Contributors ==
== Contributors ==
* [[User:Konradybcio|Konrad Dybcio]] (@konradybcio)
* [[User:Konradybcio|Konrad Dybcio]] (@konradybcio)
* [[User:dodoradio|Dodoradio]] (@dodoradio)


== Users owning this device ==
== Users owning this device ==
Line 65: Line 66:


== How to enter flash mode ==
== How to enter flash mode ==
Either:
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.
* 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>.
* (or, on android) get an adb shell and run <code>adb reboot bootloader</code>.


== Installation ==
== Installation ==
no install instructions yet. work needed.
no actual aport at the moment.
Looks like these have a and b slots.
{{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>


{{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}}
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 84: Line 92:
* smaller overall body
* smaller overall body


Quoting mainline [https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm64/boot/dts/qcom/sm8250-sony-xperia-edo.dtsi?id=69cdb97ef6529b6b23c81da37bab7b183af7b8ee commit 69cdb97ef6529b6b23c81da37bab7b183af7b8ee]: 'The devices are affected by a scary UFS behaviour where sending a certain UFS command (which is worked around on downstream) renders the device unbootable, by effectively erasing the bootloader. Therefore UFS AND UFSPHY are strictly disabled for now.' Hence the warning above. The workaround disables an instruction in UFS communication, but the fix for this might not get accepted into mainline.  
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.  


Work has been done on the device trees in the mainline kernel by the folks over at [https://somainline.org somainline]. The status of how far this actually boots hasn't been tested by anyone on postmarketOS
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

Sony Xperia 5 II
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
Features
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

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 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.

See also