I have few chinese Android TV boxes, two with flashed CoreELEC. One oldest which was not compatible with CoreELEC was unused, partialy bricked (OS loader OK, system not working). During free Christmas time, I searched how is generic linux support for it. And found awesome project devmfc/debian-on-amlogic.
My box is T95Q, this UFO box
which is S905X4, just with 32GB eMMC.
I have downloaded latest debian
Unpacked
xz -d Devmfc_Debian-Bookworm_6.12.6-meson64_Minimal-24.12.26.img.xz
and written into usb key
cat Devmfc_Debian-Bookworm_6.12.6-meson64_Minimal-24.12.26.img | pv > /dev/sdb
Edited boot.config for my box, and tried to boot using reset button on power on.
There was strange boot loop…
After a while I figured out it was due power supply – I just took first 5V which I found, but that was weak for this STB and USD was disconnecting and bot resetting.
Anyway, it worked all well on fist try. I have installed boot loader and system into eMMC:
./aml-multiboot-setup.sh
./aml-install-to-emmc.sh
Perfect!