Xiaomi Mi A2 Lite (xiaomi-daisy): Difference between revisions
Updated sensors mainline status |
Update USB OTG status |
||
Line 41: | Line 41: | ||
| whet_dhry = 0.0 | | whet_dhry = 0.0 | ||
Is OTG available, not used in wiki | Is OTG available, not used in wiki | ||
| status_otg = | | status_otg = Y | ||
--> | --> | ||
}} | }} |
Revision as of 23:27, 3 August 2023
![]() Xiaomi-daisy Booting | |
Manufacturer | Xiaomi |
---|---|
Name | Mi A2 Lite |
Codename | xiaomi-daisy |
Released | 2018 |
Hardware | |
Chipset | Qualcomm Snapdragon 625 (MSM8953) |
CPU | 2 GHz 8 Core Cortex-A53 |
GPU | Adreno 506 |
Display | 1080 x 2280 IPS |
Storage | 32 GB |
Memory | 3/4 GB |
Architecture | aarch64 |
Software | |
Original software | Android 8.1 |
postmarketOS | |
Category | testing |
Pre-built images | no |
Mainline | yes |
postmarketOS kernel | 6.1.0 |
Flashing |
Works |
---|---|
USB Networking |
Works |
Internal storage |
No data |
SD card |
No data |
Battery |
Works |
Screen |
Works |
Touchscreen |
Works |
Multimedia | |
3D Acceleration |
Works |
Audio |
Partial |
Camera |
Broken |
Camera Flash |
No data |
Connectivity | |
WiFi |
Works |
Bluetooth |
Partial |
GPS |
Broken |
NFC |
No data |
Modem | |
Calls |
Broken |
SMS |
Broken |
Mobile data |
Broken |
Miscellaneous | |
FDE |
Works |
USB OTG |
No data |
HDMI/DP |
No data |
Sensors | |
Accelerometer |
Works |
Magnetometer |
No data |
Ambient Light |
No data |
Proximity |
No data |
Hall Effect |
No data |
Haptics |
No data |
Barometer |
No data |
This device is also known as Xiaomi Redmi 6 Pro (sakura). The only difference is that sakura has MIUI preinstalled instead of stock Android One.
Contributors
- Ash
- Alikates
Users owning this device
- Alikates (Notes: Two devices, one with android and the other with pmOS)
- Ash (Notes: Broken part of screen)
- DiabloSat (Notes: A detailed installation guide with pictures has been written)
- Imre (Notes: struggling to install to sdcard)
- ItsVixano (Notes: Has a non-OEM battery replacement)
- Manut (Notes: edge, phosh)
- Progmetalbg (Notes: running Android One 10)
- Russanandres (Notes: Android 12 Custom)
- Soupborsh (Notes: stable pmOS as server with removed battery)
- Victorbnl
- XVT 360 (Notes: Running pmOS)
Installation
Fastboot Mode
First make sure to enable USB debugging in Android ([1]) Then with device powered off, hold the and buttons simultaneously for a few seconds, until Fastboot Mode screen appears.
OEM Unlock
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.
Installation
Build the image
$ pmbootstrap init
$ pmbootstrap install
Mi A2 Lite (xiaomi-daisy)
In order to use the daisy, installing lk2nd is needed. The package lk2nd-msm8953
provides a prebuilt version ready to flash to the device.
To use it, add it in the init step or instead of running pmbootstrap install
, add the package like this: pmbootstrap install --add lk2nd-msm8953
Then put the device in fastboot mode and run:
$ pmbootstrap flasher flash_lk2nd
Then reboot the device and press the START
in green at the top left corner of the screen.
Redmi 6 Pro (xiaomi-sakura)
In order to use the sakura, installing lk2nd is needed. There is no prebuilt version of lk2nd for sakura you need to build yourself.
Redmi 6 Pro has rollback protection for lk2nd installation first you need
$ fastboot boot lk2nd.img
then
$ fastboot flash lk2nd lk2nd.img
Install the image
To proceed with the installation to internal storage of pmOS, plug the device to the computer with an USB cable and run:
$ pmbootstrap flasher flash_rootfs --partition userdata
$ sudo fastboot format system
If you want to install pmOS to an SD card instead of internal storage, you need to add --sdcard <device path> at the end of the install command.I.e. (using lk2nd): pmbootstrap install --add msm8953-lkn2d --sdcard /dev/<your_sdcard> |
Mainline Kernel
To use it select mainline kernel when running pmbootstrap init
Flashing lk2nd is needed. ([2]).
Feature table
Parts | Status | Notes | |
---|---|---|---|
Modem | Partial | ModemManager needs to see a mobile data device, so IPA support is half-needed for calls and SMS to work. There's partial support for it in a dev branch, the driver probes and configures everything, but mobile data still doesn't work. | |
WiFi | Works | ||
Sensors | Partial | Working with i2c-gpio from here. WIP SSC driver here. | |
GPU | Works | ||
Audio | Works | Everything works. Speaker works since version 6.4.7. Needs alsa UCM config from this package. | |
Touchscreen | Partial | Only Focaltech models supported. Models with Goodix GT917D chip not working yet. | |
Charger | Works | Driver added in 6.1 | |
Panel | Partial | Only supported hx8933, ili8707 and otm1911 models (not sure if there are any other panels) |
Modem
Firmware loads and modem boots. It detects SIM card and can be unlocked and configured with qmicli.
Because audio needs more work i couldn't test audio quality on calls but with q6voiced it should work.
Mobile data
Mobile data is not working in kernel version 5.15 and later. There's an ongoing effort to upstream the driver needed for mobile data to work. A testing branch can be found here. |
Mobile data works now.
To configure the mobile network settings, use NetworkManger (mobile network menu on phosh settings) so it sets up the network interface and IP routing.
After that, two new network interfaces should appear. The rmnet one is the connection to the modem, and the other one is virtual and the one that is used to transmit mobile data.
Images
1: Tx, 2: GND, 3: EDL test-points |
See also
- Qualcomm Snapdragon 450/625/626/632 (MSM8953)
- pmaports!1687 Initial merge request
- pmaports!2225 Mainline merge request
- Device package
- Kernel package
- Mainline kernel
- lk2nd
- Charger driver fork