Skip to content

Instantly share code, notes, and snippets.

View vanbwodonk's full-sized avatar

Arif Darmawan vanbwodonk

View GitHub Profile
@FarelRA
FarelRA / revive-dead-emmc-bootloader.md
Created February 15, 2026 14:51
Revive Dead eMMC or Corrupt Bootloader for HG680P & B860H TV Boxes with Armbian

Revive Dead eMMC or Corrupt Bootloader for HG680P & B860H TV Boxes with Armbian

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.


🛠 Prerequisites & Downloads

Hardware

  • TV Box: HG680P or B860H (Amlogic S905X).

Using pioasm in platformio projects

Here is somethig you might find useful: automatic pio assembly -> h file generation for platformio.
I have tested it on Linux only.

This is the state as of Nov 2022. The arduino core for RP2040 will most likely change in the future and make this method obsolete.

May 2025 Update.

The pioasm tool by earlephilhower has been removed from the official Platformio repository, thus installing it requires choosing the correct version (OS) from the releases and providing a direct link to the package.

Step 1:

Visit the tool release page:

@vanbwodonk
vanbwodonk / read-stm32-firmware.md
Last active May 26, 2026 20:46
Read stm32 firmware binary with openOCD

read-stm32-firmware

OpenOCD scripts for read STM32 firmware binary

Requirements

Linux

OpenOCD (Open On-Chip Debugger) is open-source software that interfaces with a hardware debugger's JTAG port. OpenOCD provides debugging and in-system programming for embedded target devices. OpenOCD provides the ability to flash NAND and NOR FLASH memory devices that are attached to the processor on the target system. Flash programming is supported for external CFI compatible flashes (Intel and AMD/Spansion command set) and several internal flashes (LPC2000, AT91SAM7, STR7x, STR9x, LM3 and STM32x).

OpenOCD was originally developed by Dominic Rath at the University of Applied Sciences Augsburg. The OpenOCD source code is now available through the GNU General Public License (GPL).