Xiaomi MI A2 Lite (xiaomi-daisy)
Users owning this device
First make sure to enable USB debugging in Android () Then with device powered off, hold the and buttons simultaneously for a few seconds, until Fastboot Mode screen appears.
Get device into Fastboot Mode, plug in USB cable, then:
$ sudo fastboot oem unlock
When prompted on device, use Volume-Up/Down buttons to highlight choice, then Power button to select it. The Fastboot Mode screen will appear again, and a message saying that the device isn't secure will appear briefly.
First build the image:
$ pmbootstrap init $ pmbootstrap install
Then in order to flash it put your device in fastboot mode, and plug it in USB. Then do:
$ pmbootstrap flasher flash_rootfs --partition userdata $ sudo fastboot format system $ pmbootstrap flasher flash_kernel
Device tree and panel driver support added on msm8953-mainline (). Flashing lk2nd is needed. (Need to make PR to support xiaomi-daisy). The device package also needs to be updated to use linux-postmarketos-qcom-msm8953 package for kernel.
Firmware loads and modem boots. It detects SIM card and can be unlocked and configured with qmicli. Need to test Ofono with patches for QRTR support.
Works but it is very slow. Driver spams dmesg with errors about
wcn36xx: WARNING Bad TX complete indication
Firmware loads and 2D acceleration works. Testing of 3D acceleration is needed.