Jump to content

Xiaomi Redmi 7A (xiaomi-pine): Difference between revisions

From postmarketOS Wiki
Bczeman (talk | contribs)
lk2nd installatipn
Halamix2 (talk | contribs)
mNo edit summary
 
(One intermediate revision by one other user not shown)
Line 83: Line 83:
Prebuilt images can be found here https://github.com/barni2000/dtbo-lk2nd/releases
Prebuilt images can be found here https://github.com/barni2000/dtbo-lk2nd/releases


<source lang="shell-session">
<syntaxhighlight lang="shell-session">
$ fastboot flash dtbo dtbo-xiaomi-pine.img
$ fastboot flash dtbo dtbo-xiaomi-pine.img
$ fastboot flash boot lk2nd.img
$ fastboot flash boot lk2nd.img
</source>
</syntaxhighlight>


== Installation ==
== Installation ==
Line 92: Line 92:


<!-- Expand this with the commands needed for flashing, add --sdcard to install if it makes sense etc. -->
<!-- Expand this with the commands needed for flashing, add --sdcard to install if it makes sense etc. -->
<source lang="shell-session">
<syntaxhighlight lang="shell-session">
$ pmbootstrap init
$ pmbootstrap init
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_rootfs --partition userdata
$ pmbootstrap flasher flash_rootfs --partition userdata
</source>
</syntaxhighlight>


== Working UIs ==
== Working UIs ==
Line 133: Line 133:
* [https://twrp.me/xiaomi/xiaomi-mi439.html TWRP for Xiaomi SDM439 Devices]
* [https://twrp.me/xiaomi/xiaomi-mi439.html TWRP for Xiaomi SDM439 Devices]
* [https://wiki.lineageos.org/devices/Mi439 Lineageos wiki page]
* [https://wiki.lineageos.org/devices/Mi439 Lineageos wiki page]
* [https://github.com/hitechshell/lk2nd lk2nd]
* [https://github.com/msm8916-mainline/lk2nd lk2nd]
<!--
<!--
If you manage to get your device packages merged, uncomment links below and change DEVICE_CODENAME with the actual one.
If you manage to get your device packages merged, uncomment links below and change DEVICE_CODENAME with the actual one.

Latest revision as of 11:47, 1 February 2025

Xiaomi Redmi 7A
Xiaomi Redmi 7A running XFCE
Xiaomi Redmi 7A running XFCE
Manufacturer Xiaomi
Name Redmi 7A
Codename xiaomi-pine
Released 2019
Type handset
Hardware
Chipset Qualcomm Snapdragon 439 (SDM439)
CPU 4x1.95GHz & 4x1.45GHz Cortex A53
GPU Adreno 505
Display 720x1440
Storage 16 / 32 GB
Memory 2 / 3 GB
Architecture aarch64
Software
Original software Android (MIUI)
Original version 9 (MIUI 10)
Extended version 10
postmarketOS
Category testing
Pre-built images no
Features
Flashing
Works
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
Partial
Screen
Works
Touchscreen
Works
Keyboard
No data
Multimedia
3D Acceleration
No data
Audio
No data
Camera
No data
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
No data
GPS
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
Works
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Power Sensor
No data


Contributors

Users owning this device


How to enter flash mode

  • Fastboot: Power on the device with both Power and Volume Down buttons.
  • Recovery: Power on the device with both Power and Volume Up buttons; and while holding Volume Up, release Power.

lk2nd

lk2nd is supported with msm8916-mainline/lk2nd for installation custom dtbo.img is needed.

Prebuilt images can be found here https://github.com/barni2000/dtbo-lk2nd/releases

$ fastboot flash dtbo dtbo-xiaomi-pine.img
$ fastboot flash boot lk2nd.img

Installation

Use pmbootstrap to build your own installation image.

$ pmbootstrap init
$ pmbootstrap flasher flash_kernel
$ pmbootstrap flasher flash_rootfs --partition userdata

Working UIs


Rotate screen

create file /etc/X11/xorg.conf.d/00-display-rotate.conf and put this

Section "Device"
  Identifier "LCD"
  Option "Rotate" "CW"
EndSection

also for rotate touchscreen you need to create udev file: /etc/udev/rules.d/98-touchscreen-cal.rules

ATTRS{name}=="fts_ts", ENV{LIBINPUT_CALIBRATION_MATRIX}="0 1 0 -1 0 1"

See also