Clean up a TV stick and flash Linux using Claude Code
The author used Claude Code to wipe a cheap Android TV stick (Allwinner H618) infected with malware and safely flash Armbian. Using a Builder/Auditor architecture where Sonnet writes and Opus audits, they successfully completed a mainline Linux port without a serial console.
Reddit r/ClaudeCode/u/Personal-Conflict952
Claude Code CLISonnetOpusGit BashKali WSL2usbipd-winActivity LauncherArmbian+1
Added 2026-10-31 · originally published 2026-10-30
Steps
- 1Set up the Claude Code CLI, Git Bash, Kali WSL2, and usbipd-win on Windows, and pass the TV stick's USB through to WSL.
- 2Establish rules for Claude: use Sonnet to write code and Opus to audit it, requiring an audit pass and manual confirmation before every hardware write.
- 3Open hidden developer options via Activity Launcher, run root adbd on TCP 5555, block egress using iptables on the laptop hotspot, and get a full eMMC backup.
- 4Analyze the backup for malware and backdoors (such as remote command systems and UPX-packed Go backdoors) and decide to completely replace Android with Armbian.
- 5Use the LED light and reset timing as a debugger, flash U-Boot environment overrides via FEL for blink testing, or boot a lightweight Linux into RAM to enable the HDMI console and eMMC flasher.
- 6Run the build and audit loop, fix potential bricking risks such as device trees and partition backup verification, and finally write to eMMC and verify the flash results.
Copy-ready prompt
Please help me analyze and refactor a hardware firmware flashing task. I will use a main agent for overall planning and conversation with me, generate a Sonnet sub-agent as the builder (responsible for writing configurations, scripts, and images), and use an independent Opus sub-agent as the auditor (responsible only for reading and writing audit reports). Before performing any irreversible write or modification to the hardware, the task must pass an audit and I must explicitly say "go" before proceeding. Please help me create the first-phase read-only diagnostics and environment backup plan. [Enter your hardware device info and specific goal here, for example: DQ10 Android TV stick / Allwinner H618]
#AI Practical Action#Claude Code#Firmware Reverse Engineering#Agent Workflow
Related use cases
Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.