This guide details how to flash and configure a high-performance Linux server OS (Armbian) on old Indonesian TV boxes. This specific method uses a bootloader injection technique that forces the device to boot from the SD card, even if the internal storage is dead, the original Bootloader is corrupted, or Android OS is bricked.
- TV Box: HG680P or B860H (Amlogic S905X).
- MicroSD Card: 8GB+ (Class 10 recommended).
- Card Reader: A reliable USB card reader.
- PC/Laptop: Windows 10/11.
- Bootcard Maker: Tool to inject the magic bootloader.
- Custom Bootloader (
u-boot.bin): Pre-modified for HG680P/B860H compatibility. - AutoScript (
aml_autoscript): Essential script to trigger the boot process. - Rufus: The tool to burn the OS image.
- Armbian Image (ophub Amlogic Build):
- Download from GitHub
- Selection Guide: Open "Assets" on the latest release. Look for a file name like:
Armbian_xx.xx.x_amlogic_s905x_xxx_x.xx.x_server_xxxx.xx.xx.img.gz
- Extract the Armbian Image archive file you downloaded.
- Insert your MicroSD card into your PC.
- Open Rufus then:
- Device: Ensure your SD Card is selected.
- Boot Selection: Click "SELECT" and choose the Armbian
.img. - Start: Click the "START" button.
- Confirmation: Confirm the warning that all data on the SD card will be destroyed.
- Wait for the progress bar to reach 100% ("READY"). Close Rufus.
This step writes a specific bootloader to the hidden sector of the SD card, allowing it to take over the TV box immediately upon power-up.
- Open Bootcard Maker.
- Choose Disk: Select your SD Card drive.
- To Partition and Format: YOU MUST UNCHECK THIS BOX.
- Reason: If you leave it checked, it will erase the Armbian OS you just installed in Phase 1.
- Choose your bin files: Click "Open" and select the
u-boot.binfile you downloaded. - Make: Click the "Make" button.
- Success: Wait for a popup message saying "Success". Close the tool.
- Open your Windows File Explorer.
- Navigate to the SD Card. It should be named
BOOT.
- In the root folder, look for a file named
u-boot-p212.bin. - Copy this file and Paste it 3 times in the same folder.
- Rename the 3 copies to these exact names:
u-boot.extu-boot.sdu-boot.usb
- Overwrite if it ask to.
- Copy the
aml_autoscriptfile you downloaded. - Paste it directly into the root folder of the SD card (the main folder where you see all the files).
- Overwrite if it ask to.
You must edit three text files to tell the system it is running on an S905X chip (P212 board).
1. Edit uEnv.txt
- Open
uEnv.txtwith Notepad. - Find the line starting with
FDT=. Change it to:FDT=/dtb/amlogic/meson-gxl-s905x-p212.dtb - Save and Exit.
2. Edit boot.ini
- Open
boot.iniwith Notepad. - Find the block discussing
devtype. Ensure it points to the p212 dtb file:if test "${devtype}" = ""; then setenv devtype "/dtb/amlogic/meson-gxl-s905x-p212.dtb"; fi
- Save and Exit.
3. Edit extlinux/extlinux.conf
- Go into the
extlinuxfolder. - Rename the
extlinux.conf.baktoextlinux.conf - Open
extlinux.confwith Notepad. - Update the
FDTline to match the p212 path:FDT /dtb/amlogic/meson-gxl-s905x-p212.dtb - Save and Exit.
- Safely Eject the SD card from Windows.
- Insert the SD card into the SD slot of your HG680P or B860H.
- Connect the LAN cable (Ethernet) to your router.
- Plug in the Power Adapter.
- Wait: Do not interrupt the power. The first boot takes 3-10 minutes as the script resizes the partition and sets up the system.
- Indicator: If your box has an LED, the green LED may stay off for a moment before it back on again.
- Check your Router's "Client List" page for a new device named
armbian.