Difference between revisions of "Amlogic TV boxes"

Add 'dtb files' and 'Tips and tricks' sections
(Add 'Rooting Android' section)
(Add 'dtb files' and 'Tips and tricks' sections)
Line 100: Line 100:


Next, install and run [https://github.com/topjohnwu/Magisk/releases Magisk] under Android. When installing Magisk, choose '''Recovery mode''' then select the '''Select and Patch a File''' method. You will then be asked to locate the backup of the boot partition we created with TWRP so navigate to '''SD card/TWRP/BACKUPS/1234567890/SOMEDATE/boot.emmc.win''' and double-click the boot partition image file then choose '''Let's go'''. Magisk will then patch the ramdisk within the boot image and create a new recovery image called '''magisk_patched-something.img''' that gets saved to your Android '''Downloads''' directory. Copy this new image file from '''Downloads''' onto a micro SD card and rename it '''recovery.img''' so that you can multiboot from it, rooted.
Next, install and run [https://github.com/topjohnwu/Magisk/releases Magisk] under Android. When installing Magisk, choose '''Recovery mode''' then select the '''Select and Patch a File''' method. You will then be asked to locate the backup of the boot partition we created with TWRP so navigate to '''SD card/TWRP/BACKUPS/1234567890/SOMEDATE/boot.emmc.win''' and double-click the boot partition image file then choose '''Let's go'''. Magisk will then patch the ramdisk within the boot image and create a new recovery image called '''magisk_patched-something.img''' that gets saved to your Android '''Downloads''' directory. Copy this new image file from '''Downloads''' onto a micro SD card and rename it '''recovery.img''' so that you can multiboot from it, rooted.
== .dtb files ==
A DTB file is a Linux Device Tree Blob. Device Tree Compiler (dtc) converts between the human editable device tree source "dts" format and the compact device tree blob "dtb" representation usable by the Linux kernel.
=== Recommended .dtb files ===
This is a list of Amlogic TV boxes and the dtbs that offer the best support. Please provide a download link if the dtb is not packaged with the Manjaro vim or aml kernel.
X96 Air Q1000 - [https://github.com/danboid/meson-sm1-sei610-qca9377-bt meson-sm1-sei610-qca9377-bt] - Working gig eth, Wifi, BT, HDMI audio. No support for onboard audio or LED display.
=== Useful device tree commands ===
Decompile dtb to dts:
{{UserCmd|command=dtc -I dtb -O dts -o devicetree.dts devicetree.dtb }}
Compile a dts to a dtb:
{{UserCmd|command=dtc -O dtb -o devicetree.dtb devicetree.dts}}
[https://github.com/PabloCastellano/extract-dtb DTB extractor]
== Tips and tricks ==
=== Enable graphics acceleration ===
Edit '''/etc/X11/xorg.conf.d/01-panfrost.conf''' and change '''AccelMethod''' from '''none''' to '''glamor'''.
=== CH340-fan-control ===
[https://github.com/danboid/CH340-fan-control CH340-fan-control] is a python script to control a USB fan.
32

edits