-
Latest Armbian for S805 TV
Working setup: BTV B8 (S805) with Armbian Onecloud bookworm, kernel 6.12, persistent SD boot Sharing what worked on my box, in case it helps someone with a similar S805 board. Thanks to hzyitc for the Onecloud builds and to everyone in this thread whose posts pointed me in the right direction. Hardware Box: BTV B8 (Brazilian brand) Board: A80_V2.0, dated 2017.02.15 SoC: Amlogic S805, 4x Cortex-A5 up to 1.54 GHz, Mali-450 MP RAM: 1 GB DDR3 (2x SK hynix H5TC4G63AFR) Storage: 8 GB eMMC (Samsung KLM8G1WEPD-B031) Ethernet: 10/100 (PPT PM44-11BP magnetics) Wi-Fi: Realtek module, probably RTL8189ETV (not tested) microSD slot, and labeled UART pads on the board (GND, TX, RX, 3V3) Stock firmware: Android 4.4, recovery build KOT49H.20170825 Image used From the hzyitc/armbian-onecloud GitHub releases (tag ci-20250823-102917-UTC): Armbian-unofficial_25.11.0-trunk_Onecloud_bookworm_current_6.12.43_minimal.img.xz Use the plain .img.xz. The .burn.img.xz files are for the USB Burning Tool and write to internal storage with the Onecloud bootloader, which can brick a different board. The boot problem The stock u-boot ignores the SD card. Holding the update button (under box) only boots into Android recovery, because the Onecloud image has no aml_autoscript. The fix was a set of small u-boot scripts placed on the BOOT partition (attached, compiled and as .cmd source): s805_autoscript: loads /uImage, /uInitrd and /dtb/meson8b-mxq.dtb from the SD card and boots. Runs on every boot. aml_autoscript: runs once via the update button. It saves the original bootcmd into bootcmd_orig, sets bootcmd to try the SD card first and fall back to the original, runs saveenv, then boots from SD. restaurar: restore script. It puts the original bootcmd back. Boot script (s805_autoscript.cmd😞 setenv bootargs "root=LABEL=armbi_root rootwait rw rootfstype=ext4 console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 net.ifnames=0" fatload mmc 0 0x14000000 /uImage || exit 1 fatload mmc 0 0x15000000 /uInitrd || exit 1 if fatload mmc 0 0x11800000 /dtb.img; then echo "using /dtb.img"; else fatload mmc 0 0x11800000 /dtb/meson8b-mxq.dtb || exit 1; fi bootm 0x14000000 0x15000000 0x11800000 Persistent setup (aml_autoscript.cmd😞 if test -n "${bootcmd_orig}"; then echo "original already saved"; else setenv bootcmd_orig "${bootcmd}"; fi setenv sdboot 'if mmcinfo; then if fatload mmc 0 0x11000000 /s805_autoscript; then autoscr 0x11000000; fi; fi' setenv bootcmd 'run sdboot; run bootcmd_orig' saveenv run sdboot To use a different dtb, copy it to the root of the BOOT partition and rename it to dtb.img. The script picks it up automatically. Steps Flash the image to a microSD card with balenaEtcher. Copy s805_autoscript, aml_autoscript and restaurar to the root of the BOOT partition (armbi_boot). Connect Ethernet, insert the card, hold the update button, plug in the power and keep holding for 10 to 15 seconds. Wait about 3 minutes (the first boot is slow), find the IP on your router and log in with ssh root@IP, password 1234. From then on, the box boots from SD by itself, even after a power loss. Without the card, it boots Android as usual. To undo: delete aml_autoscript from the card, rename restaurar to aml_autoscript and boot once with the update button. Status Working: Ethernet, 1 GB RAM detected, root filesystem on SD, SSH, CPU temperature reading (around 47 °C idle). Kernel reports 6.12.43-current-meson, model TRONFY MXQ S805. HDMI: not tested. I run it headless over SSH only. Wi-Fi: not tested. eMMC: not detected under Linux with the MXQ dtb (no mmcblk1), so Android stays untouched. Recommended after first login Hold the kernel packages, since a kernel update could change the files the boot script loads: apt-mark hold $(dpkg -l | awk '/linux-(image|dtb|u-boot)/{print $2}') Also keep /etc/netplan/20-eth-fixed-mac.yaml. Armbian creates it to fix the MAC address, since this board has no fixed one. Without it, the MAC changes on each boot and DHCP reservations break. The box has been running Pi-hole and Tailscale (subnet router) without issues. armbi_boot btv8.zip
ERIS
Validating
-
Joined
-
Last visited