Xiaomi Redmi Note 4G (xiaomi-dior)
| This device runs a Downstream kernel. Some UIs will not work, and most features (3D acceleration, audio, etc.) may be broken. |
|
FbKeyboard and pfetch on Xiaomi-dior | |
| Manufacturer | Xiaomi |
|---|---|
| Name | Redmi Note 4G |
| Codename | xiaomi-dior |
| Released | 2014 |
| Type | handset |
| Hardware | |
| Chipset | Qualcomm Snapdragon 400 (MSM8928) |
| CPU | Quad-core 1.6 GHz Cortex-A7 |
| GPU | Adreno 305 |
| Display | 720 x 1280 pIPS LCD |
| Storage | 8GB |
| Memory | 2GB |
| Architecture | armv7 |
| Software | |
Original software The software and version the device was shipped with. |
Android 4.2 |
Extended version The most recent supported version from the manufacturer. |
Android |
| postmarketOS | |
| Category | downstream |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
no |
| Device package |
|
| Kernel package |
|
Flashing Whether it is possible to flash the device with pmbootstrap flasher. |
Partial
|
|---|---|
USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). |
Works
|
Battery Whether charging and battery level reporting work. |
Partial
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
| Multimedia | |
3D Acceleration |
Untested
|
Audio Audio playback, microphone, headset and buttons. |
Untested
|
Camera |
Untested
|
| Connectivity | |
WiFi |
Works
|
Bluetooth |
Untested
|
GPS |
Untested
|
| Modem | |
Calls |
Untested
|
SMS |
Untested
|
Mobile data |
Untested
|
| Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Untested
|
| Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Untested
|
Contributors
- Edwin0cheng
Maintainer(s)
Users owning this device
How to enter flash mode
- Entering fastboot: hold + buttons until fastboot mode is displayed on the screen.
- Entering recovery: hold + buttons. The default is Mi Recovery. TWRP is needed for installation, which can be obtained here
Installation
To flash this device, the boot partition have to be flashed by fastboot:
$ pmbootstrap export$ fastboot flash:raw boot /tmp/postmarketOS-export/boot.img-xiaomi-dior
However, rootfs could be flash by pmbootstrap normally:
$ pmbootstrap flasher flash_rootfs
And its system partition is quite small (800mb), to flash a large distribution (e.g. xfce4), you have to:
1. Split the boot and root partitions (hint: you can use pmbootstrap install --split instead of losetup tricks):
sudo losetup /dev/loop0 /tmp/postmarketOS-export/xiaomi-dior.img
sudo dd if=/dev/loop0p1 of=boot_partition.img
sudo dd if=/dev/loop0p2 of=root_partition.img
sudo losetup -d /dev/loop0
2. Flash the boot partition to system partition:
$ fastboot flash system boot_partition.img
3. Use the netcat method to flash to user partition:
https://gitlab.postmarketos.org/postmarketOS/pmbootstrap/-/issues/456
Additional info
This original implementation of framebuffer device do not support framebuffer console and X-Windows, we patched all missing pieces such that it works. So xfce4 and FbKeyboard works now.
However, due to lacking of DRM driver, all drm related UI are not workings.
See also
- pmaports!1992 Initial merge request