Difference between revisions of "Xiaomi Redmi 1S (xiaomi-armani)"
Jump to navigation
Jump to search
m (chipset) |
(Add device & kernel package links, use Button template, update infobox) |
||
Line 1: | Line 1: | ||
{{Infobox device | {{Infobox device | ||
| manufacturer = Xiaomi | | manufacturer = Xiaomi | ||
− | | name = | + | | name = Redmi 1S |
| codename = xiaomi-armani | | codename = xiaomi-armani | ||
| image = File:Armani.jpg | | image = File:Armani.jpg | ||
Line 8: | Line 8: | ||
| originalsoftware = MIUI 6.0 (based on Android 4.3) | | originalsoftware = MIUI 6.0 (based on Android 4.3) | ||
| chipset = Qualcomm MSM8228 Snapdragon 400 | | chipset = Qualcomm MSM8228 Snapdragon 400 | ||
− | | cpu = Quad-core | + | | cpu = Quad-core 1.6 GHz Cortex-A7 |
| gpu = Adreno 305 | | gpu = Adreno 305 | ||
− | | storage = 8GB | + | | storage = 8GB eMMC, external micro-sd slot |
− | | display = WLED | + | | display = 720x1280 WLED |
− | | memory = | + | | memory = 1 GB |
| architecture = armhf | | architecture = armhf | ||
| status_usbnet = Y | | status_usbnet = Y | ||
Line 59: | Line 59: | ||
== How to enter flash mode == | == How to enter flash mode == | ||
− | * Entering fastboot: hold | + | * Entering fastboot: hold {{Button|Volume Down}} + {{Button|Power}} buttons until fastboot mode is displayed on the screen. |
− | * Entering recovery: hold | + | * Entering recovery: hold {{Button|Volume Up}} + {{Button|Power}} buttons. The default is Mi Recovery. TWRP is needed for installation, which can be obtained [https://twrp.me/xiaomi/xiaomiredmi1s.html here] |
== Installation == | == Installation == | ||
Line 66: | Line 66: | ||
=== pmbootstrap flasher method === | === pmbootstrap flasher method === | ||
− | * Put the device into fastboot mode by holding both | + | * Put the device into fastboot mode by holding both {{Button|Volume Down}} + {{Button|Power}} buttons or rebooting into bootloader from the twrp reboot menu. |
* Connect the device to the computer via usb cable | * Connect the device to the computer via usb cable | ||
* Bootstrap PostmarketOS | * Bootstrap PostmarketOS | ||
Line 79: | Line 79: | ||
=== Android recovery.zip sideload method === | === Android recovery.zip sideload method === | ||
− | * Put the device into TWRP recovery, either by booting twrp image via fastboot directly or by pressing | + | * Put the device into TWRP recovery, either by booting twrp image via fastboot directly or by pressing {{Button|Volume Up}} + {{Button|Power}} button after flashing TWRP recovery image. |
* Connect the device to the computer via usb cable | * Connect the device to the computer via usb cable | ||
* Bootstrap PostmarketOS | * Bootstrap PostmarketOS | ||
Line 122: | Line 122: | ||
* {{github|1204}} Initial pull request | * {{github|1204}} Initial pull request | ||
− | |||
* [https://wiki.lineageos.org/devices/armani LineageOS wiki page] | * [https://wiki.lineageos.org/devices/armani LineageOS wiki page] | ||
+ | * [https://gitlab.com/postmarketOS/pmaports/tree/master/device/testing/device-xiaomi-armani Device package] | ||
+ | * [https://gitlab.com/postmarketOS/pmaports/tree/master/device/testing/linux-xiaomi-armani Kernel package] |
Revision as of 08:58, 25 April 2020
USB Networking |
Works |
---|---|
Flashing |
Works |
Touchscreen |
Works |
Display |
Works |
WiFi |
Works |
Xwayland |
Works |
FDE | |
Mainline | |
Battery | |
3D Acceleration | |
Accelerometer | |
Audio | |
Bluetooth | |
Camera | |
GPS | |
Mobile data | |
SMS | |
Calls | |
USB OTG | |
Contents
Contributors
- alive4ever
What works
- USB ethernet
- Flashing, via android-recovery-zip (twrp) and pmbootstrap flasher
- Touchscreen (ft5x06_i2c)
- Screen: framebuffer (/dev/fb0), backlight & brigtness control (/sys/class/leds/wled:backlight/brightness)
- Notification leds (/sys/class/leds/red/brigtness, /sys/class/leds/green/brightness, /sys/class/leds/blue/brightness)
- Wifi: via wcnss-wlan and wlanarmani service (which does modprobe wlan on system boot after wcnss-wlan service has been initialized)
- Xwayland
- Battery: charging status (/sys/class/power_supply/battery/status), capacity reporting (/sys/class/power_supply/battery/capacity)
- Buttons: KEY_POWER, KEY_VOLUMEUP, and KEY_VOLUMEDOWN (triggerhappy can be used to handle them, see Troubleshooting:HID_buttons)
What does not work
- Screen: framebuffer console (no kernel boot log printed on the display), directfb applications (osk-sdl and charging-sdl)
- Wifi: rfkill (no support for blocking wireless via rfkill block wifi or nmcli radio wifi off). The only way to block wireless is unloading wlan module (``rmmod wlan`` or ``/etc/init.d/wlanarmani stop``)
- Sound: don't know how to initialize the sound card
- Other hardware features are untested (3D, bluetooth, modem, gps, accelerometer)
- Xorg based UI: postmarketos-ui-xfce4 displays nothing on the screen.
How to enter flash mode
- Entering fastboot: hold Volume Down + Power buttons until fastboot mode is displayed on the screen.
- Entering recovery: hold Volume Up + Power buttons. The default is Mi Recovery. TWRP is needed for installation, which can be obtained here
Installation
pmbootstrap flasher method
- Put the device into fastboot mode by holding both Volume Down + Power buttons or rebooting into bootloader from the twrp reboot menu.
- Connect the device to the computer via usb cable
- Bootstrap PostmarketOS
$ pmbootstrap init #select xiaomi-armani
$ pmbootstrap install
- Flash the kernel and system
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_rootfs
- Reboot the device
$ fastboot reboot
Android recovery.zip sideload method
- Put the device into TWRP recovery, either by booting twrp image via fastboot directly or by pressing Volume Up + Power button after flashing TWRP recovery image.
- Connect the device to the computer via usb cable
- Bootstrap PostmarketOS
$ pmbootstrap init #select xiaomi-armani
$ pmbootstrap install --android-recovery-zip
$ pmbootstrap export # generate symlinks inside /tmp/postmarketOS-export directory
- Put the twrp recovery into sideload mode
$ adb shell "twrp sideload"
- Start sideloading the recovery file
$ adb sideload /tmp/postmarketOS-export/pmos-xiaomi-armani.zip
- Reboot the device
$ adb reboot
Additional info
It's necessary to unplug the usb cable after issuing ``poweroff`` command to properly shut down PostmarketOS.
Don't leave screen on for a long time, otherwise there will be LED burn-in. If the display screen is not used, turn the screen off.
$ echo 0 | sudo tee "/sys/class/leds/wled:backlight/brightness"
The screen can be turned on with maximum value up to 4095
$ echo 3072 | sudo tee "/sys/class/leds/wled:backlight/brightness"
Battery state can be monitored. Refer to Battery capacity monitoring for more information.
Hardware enablement effort
- Framebuffer: directfb based applications don't work (osk-sdl and charging sdl)
- Sound: unable to initialize the sound card on PmOS
See also
- #1204 Initial pull request
- LineageOS wiki page
- Device package
- Kernel package