LineageOS 24.0 device tree for the Amazon Fire HD 10 (2021, trona)
  • C++ 64.5%
  • C 19.6%
  • Makefile 11.5%
  • Python 2.9%
  • Shell 1.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Remco 0059063ec6
graphics: Vulkan with PanVK, Mesa 26.3.0
Build and install PanVK (vulkan.panfrost) and move Mesa to 26.3.0,
which gives Vulkan 1.3 on the Mali-G72 (Bifrost v6).

Upstream still gates PanVK on Bifrost behind
PAN_I_WANT_A_BROKEN_VULKAN_DRIVER and reports conformance 0.0.0.0, so
set the opt-in as debug.mesa.pan.i.want.a.broken.vulkan.driver: apps
and gpuservice cannot read vendor.mesa.* properties.

Declare Vulkan hardware level 0, version 1.3 and compute level 0.

sepolicy: label the driver as a same-process HAL, and let gpuservice
use the graphics allocator, which vkjson needs for the gralloc mapper.

Tested on the tablet with the libraries bind-mounted over /vendor:
3DMark Wild Life completes (230, against 633 for the vendor driver on
stock), WebView WebGL runs with PanVK loaded, the UI is fine on the
26.3.0 GLES driver.

Known limits: PanVK exposes one queue below v10, so HWUI cannot use
skiavk (it wants two) and the UI stays on skiagl. Sling Shot Extreme
in Vulkan mode crashes in the loader.

Co-Authored-By: Claude Mythos 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TuAyF7U7V2HKbM6Qe894Jz
2026-11-16 11:14:16 +01:00
.forgejo/workflows graphics: Vulkan with PanVK, Mesa 26.3.0 2026-11-16 11:14:16 +01:00
camera camera: libcamera: drop a check that cannot fail 2026-11-12 17:17:03 +01:00
ci ci: builds the Updater accepts, reruns, one build at a time 2026-11-12 00:26:48 +01:00
configs trona: vcore DVFS on, lowest level while the display is off 2026-11-13 18:14:54 +01:00
graphics graphics: Vulkan with PanVK, Mesa 26.3.0 2026-11-16 11:14:16 +01:00
media media: c2mtk: inputs without a picture, encoder slot within one client 2026-11-12 22:03:40 +01:00
patches tee: keymint: attested keys from the software KeyMint 2026-11-15 20:08:23 +01:00
rootdir trona: TRONA_TEE_HALS selects the HALs on the secure OS 2026-11-15 19:45:28 +01:00
rro trona: kernel 6.18.21-4k-g1a4cdab1f977: stock charging limits; lockup panic 2026-11-07 01:26:36 +01:00
sepolicy/vendor graphics: Vulkan with PanVK, Mesa 26.3.0 2026-11-16 11:14:16 +01:00
tee tee: keymint: attested keys from the software KeyMint 2026-11-15 20:08:23 +01:00
usb trona: Amazon Fire HD 10 (2021) device tree for LineageOS 24.0 2026-11-03 23:55:04 +01:00
wmt_launcher wmt_launcher: a restarted launcher must not initialise the WMT core again 2026-11-12 17:31:03 +01:00
.gitignore trona: build the kernel from source 2026-11-07 16:03:51 +01:00
Android.bp trona: Amazon Fire HD 10 (2021) device tree for LineageOS 24.0 2026-11-03 23:55:04 +01:00
AndroidProducts.mk trona: Amazon Fire HD 10 (2021) device tree for LineageOS 24.0 2026-11-03 23:55:04 +01:00
BoardConfig.mk trona: vcore DVFS on, lowest level while the display is off 2026-11-13 18:14:54 +01:00
device.mk trona: TRONA_TEE_HALS selects the HALs on the secure OS 2026-11-15 19:45:28 +01:00
extract-files.py trona: Amazon Fire HD 10 (2021) device tree for LineageOS 24.0 2026-11-03 23:55:04 +01:00
lineage_trona.mk trona: target compatibility level 202604 2026-11-13 15:48:22 +01:00
manifest.xml trona: target compatibility level 202604 2026-11-13 15:48:22 +01:00
proprietary-files.txt trona: Amazon Fire HD 10 (2021) device tree for LineageOS 24.0 2026-11-03 23:55:04 +01:00
README.md trona: zram swap, fs-verity and emulated storage features, cleanups 2026-11-12 00:26:48 +01:00
setup-makefiles.py trona: Amazon Fire HD 10 (2021) device tree for LineageOS 24.0 2026-11-03 23:55:04 +01:00
vendor.prop trona: enable the Bluetooth profiles 2026-11-12 00:26:48 +01:00

Amazon Fire HD 10 (2021) — trona — LineageOS 24.0 device tree

MediaTek MT8183 tablet (KFTRWI) on an android17-6.18 kernel.

Repository Path Contents
android_device_amazon_trona device/amazon/trona this tree (the kernel and modules are staged into it by the kernel repo's trona/build.sh, not committed)
android_kernel_amazon_trona kernel source android17-6.18 ACK + trona vendor drivers, arch/arm64/configs/trona.config
android_vendor_amazon_trona vendor/amazon/trona blobs extracted from your own stock Fire OS image (private)

What works

Display (mediatek-drm + drm_hwcomposer), GPU (Mesa panfrost, minigbm), touch, Wi-Fi and Bluetooth (MT8183 CONSYS, wmt_launcher), audio (speaker, headphones with jack detection, microphone), both cameras (libcamera; the ISP is programmed from the AP), hardware H.264 decode and encode (media/c2mtk, Codec2 on MediaTek's userspace codec driver), sensors (accelerometer, light), battery and fuel gauge, wired and wireless charging, USB device modes and OTG. SELinux is enforcing.

Not yet: hardware HEVC/VP9 decode (software codecs are used), camera colour calibration; the system suspends to idle (s2idle): the SPM deep sleep needs its driver built into the kernel, and CONSYS does not survive it yet.

Building

The hardware codecs need MediaTek libraries from the stock image. Extract them from a dump of your own device's Fire OS (system/vendor mounted or unpacked):

cd device/amazon/trona
PYTHONPATH=../../../tools/extract-utils python3 extract-files.py <path-to-dump>

Then the usual:

source build/envsetup.sh
breakfast trona
m bacon

The kernel is a GKI image: built from plain gki_defconfig, with no trona code in it. Everything MT8183- and board-specific is a vendor module, built from android_kernel_amazon_trona with trona.config against that kernel (Android clang r584948b, Rust enabled):

  • prebuilt/Image.gz-dtb: the GKI kernel with the trona DTB appended
  • modules/ramdisk/: SoC and board drivers (pinctrl, clocks, power domains, eMMC, display, ...), loaded by first-stage init from the boot ramdisk in modules.load order
  • modules/vendor/: Wi-Fi/BT (CONSYS), cfg80211, rfkill, zram, SVS and the video codec bridge, installed to the vendor_dlkm partition and loaded from /vendor/lib/modules (a symlink to /vendor_dlkm/lib/modules) by their init scripts

Kernel and modules must always be updated together (symbol CRCs, kCFI type hashes).

Notes

  • Boot image: header v4 without vendor_boot, the kernel is Image.gz-dtb (DTB appended). Amazon's LK reads only v0-v2 headers: it needs kaeru with the trona v3/v4 boot header patch.
  • Only boot, recovery, system, vendor, cache and userdata are written by this build. Never flash lk, preloader, tee* or the other stock partitions.