Jump to content

Xiaomi Redmi S2 / Redmi Y2 (xiaomi-ysl): Difference between revisions

From postmarketOS Wiki
mNo edit summary
Bczeman (talk | contribs)
m irled is working now
 
(61 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{Infobox device
{{Infobox device
<!-- Main -->
| manufacturer = Xiaomi
| manufacturer = Xiaomi
| name = Redmi S2 / Redmi Y2
| name         = Redmi S2 / Redmi Y2
| codename = xiaomi-ysl
| codename     = xiaomi-ysl
| image = File:Xiaomi-ysl-pmos.png
| model        = <!-- Manufacturer's model/part number, e.g. 2312DRA50G -->
| imagecaption =  
| image       = File:Xiaomi-ysl-pmos.png
| releaseyear = 2018
| imagecaption = <!-- Brief description of the image -->
| category = testing
| releaseyear = 2018
| originalsoftware = Android 8.1
| prereleaseyear = <!-- If the device was announced earlier than release -->
| pmoskernel = 6.3
 
| booting = yes
| status  = <!-- Text displayed in the non-booting box, e.g "kernel compiles, doesn't boot" -->
 
| packaged = yes
| category = community
 
 
<!-- Hardware -->
| chipset = Qualcomm Snapdragon 625 (MSM8953)
| chipset = Qualcomm Snapdragon 625 (MSM8953)
| cpu = Octa-core 2.0 GHz Cortex-A53
| cpu     = Octa-core 2.0 GHz Cortex-A53
| gpu = Adreno 506
| gpu     = Adreno 506
| som    = <!-- Only applicable for carrier boards -->
| display = 720 x 1440 IPS
| display = 720 x 1440 IPS
| storage = 32 GB / 64 GB
| storage = 32 GB / 64 GB
| memory = 3 GB / 4 GB
| memory = 3 GB / 4 GB
| architecture = aarch64
| architecture = aarch64
| n-android =  
| wp_type =
| whet_dhry =
 
| status_usbnet = Y
 
| status_flashing = Y
<!-- Software -->
| status_touch = Y
| originalsoftware = Android
| status_screen = Y
| originalversion  = 8.1
| status_wifi = Y
| extendedversion  = <!-- Latest supported manufacturer OS version -->
| status_xwayland = Y
| optionalsoftware = <!-- Other OS options -->
| status_fde =  
| status_fossbootloader = Y
| status_mainline = Y
 
| status_battery = Y
 
| status_3d = Y
<!-- PostmarketOS -->
| status_audio = N
| type          = Handset
| status_bluetooth = Y
| pmoskernel    = 6.7.5
| status_camera = N
| whet_dhry     = 4109.86
| status_gps = N
| genericdevice = Generic MSM8953 (qcom-msm8953)
| status_mobiledata = N
| optionalgenericdevice = no <!-- yes to change the genericdevice box into an optional genericdevice box -->
| status_sms = P
| kernelpackage = <!-- {{Kernel package|device-codename|category}} -->
| status_calls = P
| devicepackage = <!-- {{Device package|device-codename|category}} -->
| status_otg =  
| firmwarepackage = <!-- {{Firmware package|device-codename|category}} -->
| status_nfc = -
 
| status_accel = Y
<!-- Warning / Note boxes / Miscellaneous -->
| status_magnet = N
| supported      = yes <!-- no if device cannot run postmarketOS (see [[Category:Unsupported Devices]]) -->
| status_light = N
| prebuiltimages = no  <!-- yes if prebuilt images are aviable on the pmOS website -->
| status_proximity = N
| boot_internal_storage = <!-- no if the device can't boot from internal storage -->
| status_hall = N
| bootable_media = <!-- Specify the media type that can be used to boot pmOS, e.g "USB Stick" -->
| status_barometer = -
| changearch    = <!-- Optional, text displayed in the "changearch" box, e.g "armv7" -->
| status_powersensor =  
 
| status_usba =  
| initial_MR  = <!-- {{MR|CHANGE_ME|pmaports}} -->
| status_hdmidp =  
| related_post = <!-- {{Lemmy|CHANGE_ME_TO_POST_ID}} -->
| status_keyboard =  
 
| status_touchpad =  
 
| status_irtx = -
 
| status_trustzone =  
<!-- Features -->
| status_fossbootloader =  
<!--
| status =  
For each of the following questions about device functionality, please respond as follows:
| booting = yes
- Y for Yes    - if the feature works as expected
- P for Partial - if the feature works partially
- N for No      - if the feature does not work
- - for N/A    - if the feature is not applicable for the device
-  Leave blank - if the feature has not been tested
-->
 
<!-- Main Features -->
| status_flashing = Y <!-- Flashing with pmbootstrap -->
| status_usbnet  = Y <!-- USB networking -->
| status_emmc    = Y <!-- Internal storage -->
| status_sdcard  = Y <!-- SD card support -->
| status_battery  = Y <!-- Battery percentage/charging -->
| status_screen  = Y <!-- Built-in display/embedded display connector -->
| status_touch    = Y <!-- Touchscreen -->
| status_keyboard = - <!-- Build in Physical Keyboard -->
| status_touchpad = - <!-- Build in Physical Touchpad -->
| status_stylus  = - <!-- Stylus/digital pen -->
 
 
<!-- Multimedia Features -->
| status_3d     = Y <!-- 3D acceleration -->
| status_dvb    = - <!-- TV tuner -->
| status_audio = Y <!-- Speakers/headphones -->
| status_camera = P <!-- Rear/front cameras -->
| status_cameraflash = - <!-- Flash/torch -->
| status_irtx  = Y<!-- IR transmitter -->
| status_irrx  = - <!-- IR receiver -->
 
 
<!-- Connectivity Features -->
| status_wifi  = Y <!-- Wi-Fi -->
| status_bluetooth = Y <!-- Bluetooth -->
| status_ethernet = - <!-- Wired Ethernet -->
| status_gps   = P <!-- GPS -->
| status_nfc  = - <!-- NFC -->
| status_calls = Y <!-- Cellular calls -->
| status_sms   = Y <!-- SMS -->
| status_mobiledata = P <!-- Mobile data -->
 
 
<!-- Miscellaneous Features -->
| status_fde  = Y <!-- Full Disk Encryption -->
| status_usba = - <!-- USB-A ports -->
| status_sata = - <!-- SATA -->
| status_otg = Y <!-- USB OTG -->
| status_hdmidp = - <!-- HDMI/DisplayPort -->
 
 
<!-- Sensors -->
| status_accel     = Y <!-- Accelerometer -->
| status_magnet   = N <!-- Magnetometer -->
| status_light     = Y <!-- Ambient light -->
| status_proximity = N <!-- Proximity sensor -->
| status_hall     = N <!-- Hall effect -->
| status_haptics  = Y <!-- Vibration/haptics -->
| status_barometer = - <!-- Barometer -->
| status_powersensor = Y <!-- Power sensor -->
 
 
<!-- U-Boot (optional, for devices running U-Boot) -->
<!--
| status_uboot          =
| status_uboot_primary  =
| status_uboot_secondary =
| status_uboot_mainline  =
| status_uboot_internalstorage =
| status_uboot_sd        =
| status_uboot_usbhost  =
| status_uboot_usbperipheral =
| status_uboot_screen    =
| status_uboot_keyboard  =
| status_uboot_buttons  =
-->
}}{{Based on SoC|Qualcomm_Snapdragon_450/625/626/632_(MSM8953)|Qualcomm Snapdragon 450 (MSM8953)}}
}}{{Based on SoC|Qualcomm_Snapdragon_450/625/626/632_(MSM8953)|Qualcomm Snapdragon 450 (MSM8953)}}


== Maintainer(s) ==
== Maintainer(s) ==
[[User:Bczeman]]
* [[User:Bczeman|Bczeman]]
 
== Contributors ==
* [[User:WorryNori|WorryNori]]


== Users owning this device ==
== Users owning this device ==
Line 65: Line 152:
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->


== How to enter flash mode ==
== Mainline kernel ==


Press Power and Volume Down(fastboot mode)
{| class="wikitable"
|-
! scope="col"| Parts
! scope="col"| Hardware
! scope="col"| Status
|-
| scope="row"| Chipset
| MSM8953
| class="feature feature-yes" | Works
|-
| scope="row"| GPU
| Adreno 506
| class="feature feature-yes" | Works
|-
| scope="row"| Modem
| -
| class="feature feature-partial" | Partial
|-
| scope="row"| Touch Screen
| fts_ts
| class="feature feature-yes" | Works
|-
| scope="row"| Fingerprint
| goodix_fp
| class="feature feature-no" | Broken
|-
| scope="row"| Accelerometer
| BMI120
| class="feature feature-yes" | Works
|-
| scope="row"| Magnetometer
| AK09918
| class="feature feature-no" | Broken
|-
| scope="row"| Sound
| msm8953sndcardm
| class="feature feature-yes" | Works
|-
| scope="row"| Notifications LED
| AW2013
| class="feature feature-yes" | Works
|-
| scope="row"| Panel
| hx8394f, ili9881c, ili7807d
| class="feature feature-yes" | Works
|-
| scope="row"| Front Camera
| S5K3P8SP
| class="feature feature-partial" | Partial
|-
| scope="row"| Main Back Camera
| IMX486, OV12A10
| class="feature feature-no" | Broken
|-
| scope="row"| Second Back Camera
| S5K5E8
| class="feature feature-no" | Broken
|}


== Installation ==
== Installation ==
# Install custom [https://github.com/msm8953-mainline/lk2nd lk2nd] (alternative bootloader that provides a standard fastboot interface). You need to compile it yourself.
* Follow the [[Installation guide]]
# Follow the [[Installation guide]]
{{Note|'''Note:''' [[lk2nd]] is a hard dependency, without it the mainline kernel will not select the panel.}}
# If using recovery zip, boot into lk2nd and flash boot.img into lk2nd using
<syntaxhighlight lang="shell-session">
<code>$ fastboot flash boot boot.img</code>, then hit the power button to reboot
$ pmbootstrap init # choose Vendor: qcom Device codename: msm8953
$ pmbootstrap install
$ pmbootstrap flasher flash_lk2nd
$ pmbootstrap flasher flash_rootfs
</syntaxhighlight>
 
=== How to enter flash mode ===
{{note|'''Note:''' Pressing the keys too early will cause the stock bootloader to handle the key combination. You will end up in the wrong Fastboot interface.}}
* '''Stock Fastboot''': Power on the device with both {{Button|Power}} and {{Button|Volume Down}} buttons
* '''lk2nd Fastboot''': Power on the device. After it vibrates, hold {{Button|Volume Down}}
* '''Recovery''': Power on the device with both {{Button|Power}} and {{Button|Volume Up}} buttons
 
== Modem ==
Modem works since 6.7.2.
{{note|'''Note:''' Mobile data, SMS and Calls are working. Mobile data not works on every device.}}
 
== Photos ==
<gallery>
File:Ysl-unixbench.jpg|Unixbench
File:Phosh-ysl.jpg|Phosh
File:KDE Mobile.jpg|KDE Mobile
</gallery>


== See also ==
== See also ==
* [https://github.com/msm8953-mainline/linux Kernel source]
* [https://github.com/msm8953-mainline/linux Kernel source]
* {{Kernel package|postmarketos-qcom-msm8953}}
* {{Kernel package|postmarketos-qcom-msm8953|community}}
* {{Device package|xiaomi-ysl}}
* {{Device package|qcom-msm8953|community}}
* {{Firmware package|xiaomi-ysl}}
* {{Firmware package|qcom-msm8953|community}}
* [https://gitlab.postmarketos.org/postmarketOS/pmaports/-/tree/master/device/community/soc-qcom-msm8953 Soc package]
* [https://gitlab.postmarketos.org/postmarketOS/pmaports/-/tree/master/main/lk2nd lk2nd package]
* [https://github.com/msm8953-mainline/lk2nd lk2nd source]
* [https://github.com/msm8953-mainline/alsa-ucm-conf ALSA UCM source]
* [https://www.deviceinfohw.ru/devices/item.php?item=52845 Device Info HW database entry]

Latest revision as of 14:01, 2 September 2025

Note This device is supported as part of a generic port. Refer to Generic MSM8953 (qcom-msm8953) for installation instructions and more information.
Xiaomi Redmi S2
Redmi Y2
Manufacturer Xiaomi
Name Redmi S2
Redmi Y2
Codename xiaomi-ysl
Released 2018
Type handset
Hardware
Chipset Qualcomm Snapdragon 625 (MSM8953)
CPU Octa-core 2.0 GHz Cortex-A53
GPU Adreno 506
Display 720 x 1440 IPS
Storage 32 GB / 64 GB
Memory 3 GB / 4 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android 8.1
Extended version
The most recent supported version from the manufacturer.
Android
FOSS bootloader yes
postmarketOS
Category community
Pre-built images
Whether pre-built images are available here.
no
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
yes
pmOS kernel
The kernel version that runs on the device's port.
6.7.5
Unixbench score
Unixbench Whetstone/Dhrystone score. See Unixbench.
4109.86
Generic port Generic MSM8953 (qcom-msm8953)
Device package device-qcom-msm8953
Kernel package linux-postmarketos-qcom-msm8953
Features
Flashing
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).
Works
Internal storage
eMMC, SD cards, UFS, ...
Works
SD card
Also includes other external storage cards
Works
Battery
Charging and battery level reporting works
Works
Screen
Display works. Ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Audio
Audio playback, microphone, headset and buttons.
Works
Camera
Partial
IR TX
Works
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Partial
Modem
Calls
Works
SMS
Works
Mobile data
Partial
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Works
USB OTG
USB On-The-Go or USB-C Role switching
Works
Sensors
Accelerometer
Auto screen rotation works in desktops e.g. Phosh or Plasma Mobile
Works
Magnetometer
Sensor to measure magnetism
Broken
Ambient Light
Works
Proximity
Broken
Hall Effect
Also known as flip cover sensor
Broken
Haptics
Works
Power Sensor
Sensor to monitor current, voltage and power. Not fuel gauge!
Works


Maintainer(s)

Contributors

Users owning this device


Mainline kernel

Parts Hardware Status
Chipset MSM8953 Works
GPU Adreno 506 Works
Modem - Partial
Touch Screen fts_ts Works
Fingerprint goodix_fp Broken
Accelerometer BMI120 Works
Magnetometer AK09918 Broken
Sound msm8953sndcardm Works
Notifications LED AW2013 Works
Panel hx8394f, ili9881c, ili7807d Works
Front Camera S5K3P8SP Partial
Main Back Camera IMX486, OV12A10 Broken
Second Back Camera S5K5E8 Broken

Installation

Note Note: lk2nd is a hard dependency, without it the mainline kernel will not select the panel.
$ pmbootstrap init # choose Vendor: qcom Device codename: msm8953
$ pmbootstrap install
$ pmbootstrap flasher flash_lk2nd
$ pmbootstrap flasher flash_rootfs

How to enter flash mode

Note Note: Pressing the keys too early will cause the stock bootloader to handle the key combination. You will end up in the wrong Fastboot interface.
  • Stock Fastboot: Power on the device with both Power and Volume Down buttons
  • lk2nd Fastboot: Power on the device. After it vibrates, hold Volume Down
  • Recovery: Power on the device with both Power and Volume Up buttons

Modem

Modem works since 6.7.2.

Note Note: Mobile data, SMS and Calls are working. Mobile data not works on every device.

Photos

See also