- C++ 64.5%
- C 19.6%
- Makefile 11.5%
- Python 2.9%
- Shell 1.5%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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 |
||
| .forgejo/workflows | ||
| camera | ||
| ci | ||
| configs | ||
| graphics | ||
| media | ||
| patches | ||
| rootdir | ||
| rro | ||
| sepolicy/vendor | ||
| tee | ||
| usb | ||
| wmt_launcher | ||
| .gitignore | ||
| Android.bp | ||
| AndroidProducts.mk | ||
| BoardConfig.mk | ||
| device.mk | ||
| extract-files.py | ||
| lineage_trona.mk | ||
| manifest.xml | ||
| proprietary-files.txt | ||
| README.md | ||
| setup-makefiles.py | ||
| vendor.prop | ||
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 appendedmodules/ramdisk/: SoC and board drivers (pinctrl, clocks, power domains, eMMC, display, ...), loaded by first-stage init from the boot ramdisk inmodules.loadordermodules/vendor/: Wi-Fi/BT (CONSYS), cfg80211, rfkill, zram, SVS and the video codec bridge, installed to thevendor_dlkmpartition 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,cacheanduserdataare written by this build. Never flashlk,preloader,tee*or the other stock partitions.