2025-05-17 03:30:31 +03:00
2025-05-21 20:53:16 +03:00
2025-05-21 20:53:16 +03:00
2025-05-21 20:53:16 +03:00
2025-05-21 20:53:16 +03:00
2025-05-28 03:47:38 +03:00
2025-05-22 21:18:42 +03:00
2025-05-21 20:53:16 +03:00

PostmarketOS for Xiaomi Angelican (Redmi 9C NFC)

en ru

This port also might work on angelica (without NFC) and other phones on MT6765 processors.

Roadmap

  • Kernel compiling
  • Kernel loading (see issues)
  • SSH
  • Screen

How to install

git clone https://github.com/MeexReay/pmos-xiaomi-angelican.git
cd pmos-xiaomi-angelican
source extract-paths.sh
ln -s $PWD/linux-xiaomi-angelican $PMAPORTS/device/testing
ln -s $PWD/device-xiaomi-angelican $PMAPORTS/device/testing

How to flash

Firstly, you need to unlock bootloader (See section below).

Enter fastboot mode (hold vol- and pwr buttons while turned off), and run this commands:

  1. Disable VerifiedBoot
fastboot flash vbmeta prebuilt/vbmeta_disabled.img
fastboot flash vbmeta_system prebuilt/vbmeta_disabled.img
fastboot flash vbmeta_vendor prebuilt/vbmeta_disabled.img
  1. Flash dtbo and boot
pmbootstrap flasher flash_kernel
pmbootstrap flasher flash_dtbo
  1. Flash system
fastboot reboot fastboot
fastboot delete-logical-partition product
pmbootstrap flasher flash_rootfs

How to unlock bootloader

Drivers

Windows

Install usb drivers:

Linux

TODO: write about usb drivers, but they seem to be preinstalled

Unlocking

git clone https://github.com/bkerler/mtkclient
cd mtkclient
pip -r install requirements.txt
git clone https://github.com/coloredmarble/redmi_9a_mtkclient
cp redmi_9a_mtkclient/* .
python mtk.py da seccfg unlock --preload preloader_k62v1_64_bsp.bin --loader n.bin
# power off phone, hold vol+ and vol- at same time and connect usb cable
# i did it with test point, but it isnt required

See also

Contacts

If you want to develop it together, or maybe you have working port, please write me in discord: @meexreay. Also you can find more about me on my site: meex.lol

Contributing

If you would like to contribute to the project, feel free to fork the repository and submit a pull request.

Description
PostmarketOS Xiaomi Angelican port
Readme 20 MiB
Languages
Shell 92%
Nix 8%