Xiaomi Redmi 4X (xiaomi-santoni)
xiaomi-santoni running pmOS demos
|Chipset||Qualcomm Snapdragon 435 (MSM8940)|
|CPU||Octa-core 1.4 GHz Cortex-A53|
|Storage||16 GB / 32 GB / 64GB|
|Memory||2 GB / 3 GB / 4 GB|
|Unixbench Whet/Dhry score||1526.7|
Users owning this device
- Install to SD Card
- USB Ethernet/Internet
- USB OTG
What does not work
- Mobile Data
- Bluetooth (partially)
- 3D Acceleration (possible on mainline)
- Display Power Management on Wayland
- Full Disk Encryption (does unlock, but failed to look up the partition after booting)
- alsamixer doesn't work, will result in a error telling mixer controls doesn't exist, workaround to control the volume is to use PulseAudio.
There's ongoing effort to bring up mainline kernel on MSM8937 platform, with initial focus on santoni: .
MSM8937/40 is pretty close to MSM8916, so a lot of drivers can be re-used with proper device tree and minimal address remapping in some places.
|Parts||Components||In Torvalds tree?|
|GPU||Adreno 505||Yes (a5xx_gpu.c)|
|Touch Screen||FT5X06||Yes (edt-ft5x06.c)|
|Accelerometer + Gyroscope||ICM20607/BMI120||No/Yes (bmi160_i2c.c)|
|Notifications LED||AW2013||Yes (leds-aw2013.c)|
|Front Camera||OV5675||Yes (ov5675.c)|
More information on this port
- The upstream msm-3.18 kernel is a fork of https://github.com/bitrvmpd/msm-3.18
- Most of this work was done for my project (Arch Linux on Redmi 4X), and the progress are backported to postmarketOS in order to help development.
Like other Xiaomi devices, the user will have to acquire the bootloader unlock key: https://en.miui.com/unlock
The device will not unlock if the device isn't 7 days old (from the time when your device connects to internet and powered on)
If unlock fails at "Can't get info", start unlock process, disconnect USB and reconnect it once the counter hits 99%.
Key combinations for entering Recovery/Fastboot
- Turn the device off (or restart also works)
- Hold both volume buttons (+ and -) and power button
- Keep holding until you got to recovery.
- Same as recovery, but this time hold the volume down key instead of both keys.
Installation over fastboot works, Android recovery zip installation is untested.
Bluetooth on this phone is using the WCNSS chip, which provides two SMD channels to the BT core, one for command and one for event packets. Support for Bluetooth HCI SMD can be added using this patch.
With that patch applied, the Bluetooth interface can be bring up by set /sys/module/hci_smd/parameters/hcismd_set to 1. Then install bluez, start the service and use bluetoothctl to control it.
As right now, it seems to connect, but disconnect very quickly, it doesn't ask for pair code when connecting, so this needs to be investigated.
Serial Connection (UART)
The Serial Connection of the santoni has been tested only on reception mode, with 3.3v TTL to USB FT232RL. This example is an output when starting to fastboot.
Warning: the test point is very small, try to solder only if you're an expert on soldering or you may break the motherboard wirings.
Wiring: (Santoni TX --> FT232RL RX) and (Santoni GND --> FT232RL GND)