Xiaomi Redmi Note 4G (xiaomi-dior)

Contributors

 * Edwin0cheng

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:

However, rootfs could be flash by pmbootstrap normally:

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  instead of losetup tricks):

2. Flash the boot partition to system partition:

3. Use the netcat method to flash to user partition:

https://gitlab.com/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.