Skip to content

LineageOS/android_device_xiaomi_mi89xx-mainline

Repository files navigation

Android device tree for Xiaomi devices with MSM89xx SoC running mainline kernel

Kernel repositories

Target Path URL Branch
mi8916 kernel/mainline/msm8916-mainline https://github.com/msm8916-mainline/linux wip/msm8916/6.19
mi8953_a kernel/mainline/msm8953-mainline https://github.com/msm8953-mainline/linux barni2000/6.19/develop
mi439_mainline, mi89x7, tiare_mainline kernel/mainline/msm89x7-mainline https://github.com/msm89x7-mainline/linux msm89x7/6.19-develop

Kernel patches

Commit name Purpose Source
ANDROID: usb: gadget: configfs: Add Uevent to notify userspace Fixes USB in normal mode https://android.googlesource.com/kernel/common-patches/+/refs/heads/main-kernel/android-mainline/ANDROID-usb-gadget-configfs-Add-Uevent-to-notify-userspace.patch
ANDROID: mm/memfd-ashmem-shim: Introduce shim layer Fixes media codec https://android.googlesource.com/kernel/common-patches/+/refs/heads/main-kernel/android-mainline/ANDROID-mm-memfd-ashmem-shim-Introduce-shim-layer.patch
ANDROID: mm: shmem: Use memfd-ashmem-shim ioctl handler" Fixes media codec https://android.googlesource.com/kernel/common-patches/+/refs/heads/main-kernel/android-mainline/ANDROID-mm-shmem-Use-memfd-ashmem-shim-ioctl-handler.patch

Notes for mi439_mainline target

  • If you're flashing the device starting from stock OS, please firstly flash vbmeta image from any working custom ROM (Example: Official LineageOS builds). We do not enable AVB support here for smaller image sizes, for now.
  • If you're flashing the device starting from non mainline linux OS, please flash the appropriate dtbo image from dtbo-lk2nd.
  • The target only supports Xiaomi SDM439 devices with LM3697 backlight IC. KTD3137 backlight IC isn't supported in the kernel yet.
  • Almost all of the touchscreen variants aren't supported on in the kernel yet. You'll have to interact with the device in other ways.

Notes for mi8916 target

  • The target may boot only on Redmi 2 (wt88047) as of now.
  • The target uses SD card for /data mountpoint. Make sure to have a SD card with 2 GB size at minimum inserted.

Notes for tiare_mainline target

  • The device has recovery partition sized at 25 MB which is too small to hold recovery.img built from the target. To boot the recovery.img, flash the image to boot partition and continue with normal boot.
  • The target is 32-bit, which requires the following changes to be made in AOSP tree in order to boot:
    1. On packages/modules/Connectivity/bpf/loader/NetBpfLoad.cpp, locate to the next line of the line containing [Arm] 64-bit userspace required on 6.2+ kernels (%d). (which should be return 1;), remove the line.
    2. On system/netd/server/XfrmController.cpp, in function validateResponse, replace the return statement containing Error netlink message with return netdutils::status::ok;.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors