Skip to content

mt6768-mainline/downstream-kernel-blobs

Repository files navigation

MT6768 downstream kernel blobs

Open-source kernels:

4.14

Not recommended due to poor code quality.

...and other 4.14 kernels

Sample DTS

4.19

This is a good reference for devices that don't have newer, publicly available kernels.

A few Mediatek drivers (e.g., MMC) have switched to a mainline-like driver.

Sample DTS

5.10

The code quality has improved overall, though only for a few drivers.

Sample DTS

6.6

Recommended, (minor?) improvements over 5.10. Run cd kernel/kernel_device_modules-6.6 to get a linux-like directory structure

Sample DTS

Closed-source kernels:

5.10.209

HyperOS 1 is known to use it with the Redmi 14C. Perhaps this is true for the whole MT6768 family.

6.6.30

HyperOS 2 uses it.

Refer to DTS file names for HyperOS version

Extracting DTB

  1. Download fastboot HyperOS
  2. Go to images directory
  3. Get kernel version:
    • Run binwalk -Me boot.img
    • Run strings extractions/boot.img.extracted/*/decompressed.bin | grep 'Linux version'
  4. binwalk -M vendor_boot.img
  5. Find entry with Device tree blob entry and copy first value
  6. Run dd if=vendor_boot.img of=dtb bs=1 skip=*paste value here*
  7. Run dtc -I dtb -O dts -o *put os version and codename here*.dts dtb

Extracting DTBO

  1. Clone extraction tool, otherwise run extract-dtb dtbo.img, switch to directory with dtb and go to step 7 of Extracting DTB
  2. Copy dtbo.img to cloned directory
  3. Run ./gradlew unpack
  4. Copy build/unzip_boot/dt/dt.0.dts somewhere and rename it to *codename*-*version*-dtbo.dts

Any DTS/DTBO PRs appreciated.

About

MT6768 downstream devicetree & kernels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published