Jump to content

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

From postmarketOS Wiki
Bczeman (talk | contribs)
m irled is working now
 
(60 intermediate revisions by 9 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 ==
On your host machine, install <code>arm-none-eabi-gcc</code> toolchain and follow the instructions below
* Follow the [[Installation guide]]
 
{{Note|'''Note:''' [[lk2nd]] is a hard dependency, without it the mainline kernel will not select the panel.}}
<pre>
<syntaxhighlight lang="shell-session">
git clone https://github.com/msm8953-mainline/lk2nd
$ pmbootstrap init # choose Vendor: qcom Device codename: msm8953
cd lk2nd
$ pmbootstrap install
make TOOLCHAIN_PREFIX=arm-none-eabi- msm8953-secondary
$ pmbootstrap flasher flash_lk2nd
fastboot flash boot build-msm8953-secondary/lk2nd.img
$ pmbootstrap flasher flash_rootfs
fastboot reboot
</syntaxhighlight>
</pre>
Boot your device. Once you see the Xiaomi logo and the startup vibration, hold the {{Button|Volume Down}}. You should now see a version of the fastboot screen with selectable entries (use Volume buttons to select between) and a summary of your device specs. This is lk2nd's fastboot mode and you can now continue the normal flashing procedure.
 
[[File:Xiaomi-ysl-lk2nd.png|300px]]
 


Follow the [[Installation guide]]
=== 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


If using recovery zip, boot into lk2nd and flash boot.img into lk2nd using
== Modem ==
Modem works since 6.7.2.
{{note|'''Note:''' Mobile data, SMS and Calls are working. Mobile data not works on every device.}}


<code>$ fastboot flash boot boot.img</code>, then hit the power button to reboot
== 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
Android 8.1
Android
FOSS bootloader yes
postmarketOS
Category community
no
yes
6.7.5
4109.86
Generic port Generic MSM8953 (qcom-msm8953)
Device package device-qcom-msm8953
Kernel package linux-postmarketos-qcom-msm8953
Features
Works
Works
Works
Works
Works
Works
Touchscreen
Works
Multimedia
3D Acceleration
Works
Works
Camera
Partial
IR TX
Works
Connectivity
WiFi
Works
Bluetooth
Works
GPS
Partial
Modem
Calls
Works
SMS
Works
Mobile data
Partial
Miscellaneous
Works
Works
Sensors
Works
Broken
Ambient Light
Works
Proximity
Broken
Broken
Haptics
Works
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