I take boards apart
from the boot ROM up.
I'm Thanh Le, an embedded/firmware engineer at Amazon. Most evenings I'm at home getting one of my own dev boards to boot: bare metal, FreeRTOS, an NPU without Linux, old SoCs pushed further than their vendors went.
This site is where I write down what broke and what I measured, so the next time I hit the same wall I don't start from zero.
| Boards on the bench | 12 |
| Board stories (STAR) | 42 |
| Linux notes | 12 |
| Power-on to RTOS (ROCK 3A) | 154 ms |
| Oldest SoC revived | BCM2835 (2012) |
| Writing here since | 2017 |
Boards
§1 · one hub per board, each milestone written as Situation / Task / Action / ResultRadxa ROCK 3A
Bare metal, FreeRTOS on four A55s, a 154 ms boot, NPU without Linux, Android 14, a hidden RISC-V MCU
NanoPi 2 Fire
An old quad Cortex-A9 board from FriendlyELEC, taken from the boot ROM up to a FreeRTOS webcam that finds faces
Raspberry Pi Zero W
Bare metal with no SD card, a FreeRTOS shell on the boot cable, and the 12 QPUs driven from my own code
Raspberry Pi 1 Model B
A 2012 Pi with no Linux: FreeRTOS, MJPEG decoded by the VideoCore, a face detector on the 12 QPUs, a WS2812 ring
Raspberry Pi 5
A read-only survey of my Pi 5, and FreeRTOS borrowing one of its cores from a running Linux (QEMU so far)
Allwinner D1-H Nezha
A single-core RISC-V board: my own boot0 on SPI-NAND, FreeRTOS, a webcam on HDMI with no Linux, XR829 Wi-Fi on mainline
Banana Pi M3
An octa-core Allwinner board I drove from the FEL boot ROM: my own code in SRAM, then DRAM, then a CLI for every peripheral
Banana Pi R2
Five Ethernet jacks on two MACs, a quad Cortex-A7, and nothing measured on the board yet
DragonBoard 8074
Intrinsyc's APQ8074 board, from its stock Android 4.3 to Android 15 on kernel 6.6, then HDMI, sound, USB and local AI
Intel Edison
Two Atom cores at 500 MHz on a Mini Breakout: its boot measured from the USB side, then Zephyr run from RAM
NanoPC-T3
The 64-bit big sister of my NanoPi 2 Fire. Everything so far comes from the schematic, U-Boot and the boot files, not the board
NanoPi K2
A quad A53 TV-box chip on a Pi-sized board. I've read it, fixed my demos against mainline, and not run them on hardware yet
Webcam to NPU to HDMI, with no Linux on the chip
Driving the RK3568 NPU, my own xHCI/UVC host and a JPEG decoder from FreeRTOS, RetinaFace boxes on HDMI
Porting Android 14 to the ROCK 3A myself
Radxa ships Android 14 for the ROCK 3C only: a new product from its tree, 13 kinds of build failure, a DDR blob that hangs on reboot
A Vietnamese voice assistant with the network unplugged
Speech to text, a 0.6B LLM and Vietnamese TTS on the RK3568's four A55 cores under Android 14, recorded 17 times
Face detection on four 2016 Cortex-A9 cores, no NPU, no Linux
FastestDet and YuNet hand-lowered to C + NEON inside the FreeRTOS webcam firmware, then made fast enough to follow a face
A hang at 186 s, and a 512 KB L2 cache nobody had switched on
A watchdog black box that pointed at one bad MJPEG frame, then the PL310 L2 that hung the board until I read the vendor's sources
A face detector on a 2012 Pi: 2.37 s to 43.5 ms on the 12 QPUs
YuNet from my NanoPi project on the ARM1176, then every convolution moved onto the VideoCore's shader cores
Local AI on a 2013 phone chip, and an L2 cache stuck at 576 MHz
No NPU, no GPU compute: LLM, speech and vision on four Krait cores, then a new driver so the L2 follows the CPU
How the duck learns to walk: no reference motion, 16 rewards
I read the training code to see where the gait comes from, and found two of my own notes were wrong
Running the official policies with no window
Their play script wants a viewer and a keyboard; three swapped names and a fake clock made it run headless on a CPU
The board that names the music it plays, now on Linux
The YAMNet genre demo moved from Android 14 to Debian 11: a PipeWire monitor tap, one C program and the same INT8 model on the RK3568 NPU
The RK3568 NPU: what Radxa's docs say, and what it did on my boards
Radxa's RKNN guide for the ROCK 3A read side by side with my own runs: converting with rknn-toolkit2, calling librknnrt from C, NPU against CPU and GPU, and the traps the docs don't mention
The RISC-V MCU keeps watch: webcam to NPU with all four A55s off
The RK3568's own RV32 core drives the USB webcam, RGA2 and the NPU by itself, keeps DRAM in self-refresh between frames and powers an A55 back on only when it finds a face
Robotics
§3 · one hub per robot, each milestone as Situation / Task / Action / ResultDino robot
My own biped dinosaur on the servos I already own: drawn in CadQuery, loads checked on the model, walking in MuJoCo
Microduck
Pollen Robotics' small open biped that learns to walk in simulation; I run their pipeline before building one
Humanoid
My thesis robot, brought back as a model: my own C++ kinematics library, MuJoCo physics, an online walker with IMU feedback
DYNAMIXEL servos
Smart servos on one half-duplex bus, and what their Python SDK really puts on the wire
Hokuyo URG-04LX lidar
An old USB laser scanner: talking SCIP 2.0 by hand, then fixing the demos that ran on it
Embedded notes
§4 · single posts, older projects and reading notesBluetooth Keyboard, Mouse & Media Emulator on Raspberry Pi
My Raspberry Pi pretends to be a Bluetooth keyboard, mouse and media remote; started 2017, still patched in 2026
Pytest
Ghi chép học pytest của mình: test file, fixtures, marks, config, plugin
Linux Overlay File System
Ghi chép của mình về overlayfs: lower/upper, whiteout, và factory reset bằng cách xoá upper
Pytest-Embedded
Mình thử plugin pytest-embedded của Espressif: cài đặt, các service, chạy test hello world trên ESP32-C3
Boot sequence on Wireless MCU ESP8266
What runs between power-on and my app on the ESP8266: ROM (BL0), the first-stage bootloader, the partition table
ESP8266 Flash Map & Partition Table
Where the ESP8266 keeps what on its external SPI flash: bootloader, partition table, NVS, OTA slots
Tiny210 Information for development
My reading notes from the S5PV210 manual: address map, iROM/BL1/BL2 boot, boot block layout
Tiva ™ TM4C123GH6ZRB Microcontroller [part 1]
My reading notes from TI's datasheet: memory map, SRAM, flash, ROM, the ROM bootloader, EEPROM
Tiva ™ TM4C123GH6ZRB Microcontroller [part 2]
My reading notes on the Cortex-M4F core: modes, stacks, registers, memory model, exceptions
My control library (ctl): PID to MPC, in simulation
A header-only C++ control library I wrote for small MCUs, and the demos that check every law against a plant instead of a promise
DC motor drive on a simulated bench
A brushed-motor drive stack (identify, tune, home, protect, fall back) run against a simulated H-bridge and encoder, six scenarios that assert their own numbers
Plant models and fourteen small products
My act library of plants with the ugly parts switchable (backlash, stiction, delay, heat), and product-sized demos that drive them
ESP32-S3 demo apps
Small ESP-IDF apps on my ESP32-S3 devkits: a fake USB webcam that plays video files, and every TinyUSB device demo checked from the PC side
Linux networking
§5 · where a packet actually goesLinux Packet Filtering
Where a packet goes inside the kernel: the five chains, the tables in each, conntrack, iptables and nftables
Linux Network Management
ifupdown, NetworkManager, systemd-networkd, Netplan and OpenWrt's netifd: who configures the interface after the driver
Virtual Interfaces in Linux
Bridge, VLAN, macvlan, ipvlan, veth, TUN/TAP, tunnels, VXLAN, WireGuard, dummy, bond: what each is and the ip commands
Lịch sử của Linux Wi-Fi Driver
Từ Wireless Extensions đến nl80211/cfg80211/mac80211: Wi-Fi driver trên Linux được thiết kế ra sao
Linux MacVLAN
Sub-interfaces with their own MAC: the four modes, and why the host can't reach them
Docker Networking
What each Docker network driver builds out of bridges, veth, macvlan and iptables
Linux general
§6 · tools and snippets I keep coming back toDisk Partition Tables: MBR & GPT
MBR byte by byte on a test image, then GPT, the tools, and the layouts I use on boards
Linux Tips & Tricks
My scratchpad of shell one-liners: fstab, cleanup, time, git, sed, awk, find
Tmux Quick Reference
The tmux commands I actually use: sessions, panes, send-keys scripting, my tmux.conf
Udev Quick Reference
Ghi chép udev của mình: rule nằm đâu, thứ tự, ví dụ tắt touchpad khi cắm chuột, udevadm test
Docker Snippet
Các lệnh Docker thường dùng
Programming Language snippets
Các snippet code hay dùng