Filter by tag.
Pick one tag, or several to narrow it down (a post must have all of them). Board, robot and Linux posts are all in here.
| Posts with tags | 114 |
| Tags | 43 |
| Showing | 114 |
Banana Pi M3 (A83T): eight cores, poked over USB
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
A bare-metal command line for every peripheral on the board
29 KiB of my own code in DRAM, loaded over FEL: one command per block, from the PMIC to the IR receiver
DRAM init over FEL, and the probe that froze the boot ROM
xfel ddr doesn't know the A83T, so I ported U-Boot's LPDDR3 init into a 4 KiB SRAM program
First contact: what the vendor image says about eight cores and 2 GHz
Plugged in a serial adapter, read the old vendor kernel instead of waiting for mainline, then checked FEL
Blinking an LED that lives on the PMIC, from 1148 bytes in SRAM
Bare metal over FEL: the user LEDs hang off the AXP813, so a blink means bringing up the RSB bus by hand
Banana Pi R2 (MT7623N): a router board I've only read so far
Five Ethernet jacks on two MACs, a quad Cortex-A7, and nothing measured on the board yet
Allwinner D1-H Nezha (RISC-V C906)
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
First contact: what the stock Nezha really runs, and which vector it really has
Checking the vendor docs against the board over UART and OTG: RVV 0.7.1 not 1.0, ADB as root, FEL with no button
FreeRTOS on the C906: a 27x cache surprise, and an RTOS that never slept
The generic RISC-V port in M-mode, loaded over FEL; two things only the measurements caught
A USB webcam on HDMI with no Linux: 1080p MJPEG at 29.4 fps on one RISC-V core
HDMI bring-up from FreeRTOS, my own EHCI isochronous driver, and the D1's Video Engine decoding the JPEGs
My own boot0 in NAND block 0: an LED from SRAM, then an app in DRAM
Replacing Tina's first stage with an eGON image I build with zig, then a 24 KiB SPL that trains the DDR3 itself
XR829 Wi-Fi on mainline Linux 6.8: from 2 to 22 Mbit/s, and the culprit was the console
A community port of the vendor driver, booted through my own FEL chain, five bugs before a ping, then one printk
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
Android 15 on a board that shipped with Android 4.3
Building AOSP 15 + kernel 6.6 for the APQ8074, booting it from RAM first, and the long list of things between it and a home screen
DragonBoard 8074 (Snapdragon 800): Android 15 on a 2013 dev kit
Intrinsyc's APQ8074 board, from its stock Android 4.3 to Android 15 on kernel 6.6, then HDMI, sound, USB and local AI
Re-partitioning the eMMC without the command that would have erased it
Android said storage was full. /data was 864 MiB. The fix needed a new GPT, and fastboot was the wrong tool
HDMI from an unmerged patch, then a GPU hang that wasn't the GPU
Porting the MSM8974 HDMI PLL to kernel 6.6, and chasing 'gpu lockup' down to the memory shrinker
From 264 s to 64 s: touch, a real GPU, and the Krait cores at 2.15 GHz
The board ran very slowly. A GPU driver, ported CPU tables and one interrupt firing 59 000 times a second
Timing the Edison boot ROM from the outside, 0.1 s at a time
The ROM prints nothing for 13 s. Polling lsusb during one reboot showed what it does in that time
Intel Edison: an x86 module the size of a stamp
Two Atom cores at 500 MHz on a Mini Breakout: its boot measured from the USB side, then Zephyr run from RAM
Zephyr on the Edison: a 15 KB image over YMODEM and one wrong reg-shift
An out-of-tree Zephyr board for an x86 module, loaded into RAM by the old U-Boot, nothing written to eMMC
NanoPC-T3 (S5P6818): eight A53 cores, read from the SD card image
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 (Amlogic S905): ten demos waiting for a board
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
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
FreeRTOS on four Cortex-A9 cores: AMP, SMP and one CPSIE too many
A FreeRTOS shell, then one kernel per core, then one kernel on all four, and the lock leak in between
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
NanoPi 2 Fire (S5P4418): bare metal to face detection
An old quad Cortex-A9 board from FriendlyELEC, taken from the boot ROM up to a FreeRTOS webcam that finds faces
USB boot ROM, a UART running 9 % slow, and 1 GiB of DDR3
From an empty SD slot to my own code in SRAM, then the DRAM controller brought up by hand
USB webcam to HDMI on FreeRTOS, from 66 % CPU to 1.5 %
EHCI isochronous by hand, then the copy moved to DMA and the decode to the JPEG unit; the card boots straight into it
A WS2812 ring from Android 7 over spidev, and why it flickered
FriendlyELEC's Android on a card, a 16-LED ring on the 40-pin header, a root daemon and a 33 KB app built without Android Studio
Raspberry Pi Zero W (BCM2835)
Bare metal with no SD card, a FreeRTOS shell on the boot cable, and the 12 QPUs driven from my own code
Twelve QPUs from bare metal, no Linux
Queueing my own programs on the VideoCore IV shader cores from FreeRTOS, and checking every lane against the ARM
A FreeRTOS shell on the boot cable, and the USB device that left after 170 ms
FreeRTOS + TinyUSB CDC on the Zero W with no UART cable; three bugs found one bit at a time
Booting a Pi Zero W with no SD card
My 1381-byte kernel over USB with rpiboot, a firmware regression, and a lsusb that breaks the next boot
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
Asking the VideoCore to decode my JPEGs, from bare metal
VCHIQ and MMAL rewritten from Linux's staging driver so a FreeRTOS app can use the GPU firmware's MJPEG decoder
Raspberry Pi 1 Model B (BCM2835)
A 2012 Pi with no Linux: FreeRTOS, MJPEG decoded by the VideoCore, a face detector on the 12 QPUs, a WS2812 ring
Same kernel, older board, and no more SD card swaps
The Zero W's FreeRTOS image on a Pi 1 B, pins per revision, then a loader inside the firmware at 1.5 Mbaud
The webcam that kept dropping, and the LED ring that went dark
A DWC2 isochronous bug I first blamed on the faces, and a WS2812 bit that was 160 ns too short
Lending core 3 of a running Linux to FreeRTOS (QEMU so far)
A kernel module that unplugs one A76, starts FreeRTOS on it with PSCI, and gives it back, with no reboot
A GPIO write on the Pi 5 is a PCIe transaction
Surveying my Pi 5 read-only over ssh: where the header lives now, how it boots, what it draws at idle
Raspberry Pi 5 (BCM2712 + RP1)
A read-only survey of my Pi 5, and FreeRTOS borrowing one of its cores from a running Linux (QEMU so far)
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
My own Debian 13 on the eMMC, next to FreeRTOS on core 3
Mainline Linux 7.2.11 and a self-built Debian 13 on cores 0-2, booted by U-Boot from the NOR chain that already gave core 3 to FreeRTOS, and Rockchip's NPU driver ported to it
FreeRTOS on all four Cortex-A55 cores, with my own shell
rtos_cli from Maskrom: GICv3 at Secure EL1, cpufreq up to 1992 MHz, CoreMark, then an AArch64 SMP port
Bare metal from the BootROM, no hands on the board
sram_hello and dram_hello loaded over Maskrom, and a reset that drops the chip straight back into Maskrom
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
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
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
Radxa ROCK 3A (RK3568)
Bare metal, FreeRTOS on four A55s, a 154 ms boot, NPU without Linux, Android 14, a hidden RISC-V MCU
FreeRTOS on core 3 at 154 ms, Linux on the other three
Boot from SPI NOR, a 1 kHz loop through DDR training, a patched BL31 handover, and cutting the image the BootROM reads
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
FreeRTOS on RISC-V MCU, Linux on full 4 Cortex-A55 cores
FreeRTOS on the SoC's own RV32 core under Android 14, SPI3 as the LED wire, and four faults between me and a lit ring
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
MPC on two tanks: closer to the overflow than a PI dares
A 7 kB constrained MPC against two tuned PIs on a two-tank rig where the pump can't run backwards and the tank overflows for real
Five controllers on one pendulum, and the LQR that parks 0.36 rad off
Old adaptive law, PID, bounded adaptive PID, LQR and LQI against a constant torque the model doesn't know about
PID: 108 s of windup, and gains from a relay
Seven configurations of one PID on one clamped plant, then a relay experiment that measures Tu and Ku instead of guessing
RLS: finding the inertia the datasheet doesn't know
Recursive least squares on a servo axis (physics) and on an unstable cart-pole in closed loop (state-space), and the two ways it lies
Commissioning from a datasheet that's 50 % wrong
Enable, identify R, L, Kt, J, b and friction on the drive itself, re-tune from that, home on a hard stop, then move 30 rad
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
A load step, a disturbance observer, and a current sensor that can't tell direction
What a disturbance observer buys (and costs) under a 0.02 N·m step, and running the inner loop on a magnitude-only current signal
When it goes wrong: chip fault, a hot winding, a dead encoder
Three failure scenarios on the simulated drive: fault and reset through CiA 402, I²t derating on a pump, back-EMF fallback when the encoder line dies
CNC axis: 264 mm to 1.5 µm with the same gains
A ballscrew axis with a 220 Hz resonance: profile, prewarped notch, feedforward, and a gain margin that was negative all along
Cruise control on a hill, and an ABS that can't be a PID
Where the speed loss on a 4 % grade actually goes, and a brake plant whose gain flips sign at the friction peak
Cart-pole swing-up: energy pump, then a hand-over to LQR
Why one controller isn't enough, and the catch condition people forget (the rate, not the angle)
Piezo stage: learning control vs an inverse model, and the answer I didn't expect
13 % hysteresis on a sub-nanometre actuator; iterative learning with no model against a closed-form Prandtl-Ishlinskii inverse
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
Power loops: a charger with no state machine, MPPT, and a sine an integrator can't follow
CC-CV as the minimum of two loops, perturb-and-observe on a panel that heats up, and resonant vs repetitive control on a grid-tie inverter
3D printer hotend: one step test, SIMC gains, and the thermistor that falls out
Fit gain, time constant and dead time from one step, compute a PI from them, and catch thermal runaway by watching response, not temperature
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
Bluetooth 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
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
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
Every TinyUSB device demo on the S3, checked from the PC side
Seven ESP-IDF device examples plus the serial/JTAG echo, judged by what Linux enumerated, and the board that locked itself out of its own flashing port
An ESP32-S3 that pretends to be a USB webcam
UVC + MJPEG from a video file in flash: four sizes, the frame budget full speed allows, and the stutter I had to chase out
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
Pytest
Ghi chép học pytest của mình: test file, fixtures, marks, config, plugin
Add Yocto support for Rock-3A Single Board Computer
My Rock-3A machine for meta-radxa, from the Radxa BSP to two booting Yocto images and a pull request
Tiny210 Information for development
My reading notes from the S5PV210 manual: address map, iROM/BL1/BL2 boot, boot block layout
Tiva ™ TM4C123GH6ZRB Microcontroller [part 2]
My reading notes on the Cortex-M4F core: modes, stacks, registers, memory model, exceptions
Tiva ™ TM4C123GH6ZRB Microcontroller [part 1]
My reading notes from TI's datasheet: memory map, SRAM, flash, ROM, the ROM bootloader, EEPROM
An ankle roll servo made it worse
I had three spare AX-12A and a robot that rocks 10° per step; in MuJoCo the extra joint lost to a smarter turn
Dino robot (13 DYNAMIXEL): a two-legged dinosaur, so far in CAD and MuJoCo
My own biped dinosaur on the servos I already own: drawn in CadQuery, loads checked on the model, walking in MuJoCo
A head that turns and nods at the same time
At 20° of yaw the skull hit the neck after 2.8° of nod; a trim and two notches fixed it
Seven MX-28 and where they go
I own fewer strong servos than I thought, so the CAD model decided which joints get them
It walked in MuJoCo, then I made the sim honest
A model built from the CAD walked 1.2 m and roared on the first try; with real friction and torque limits it fell 8 times in 10
DYNAMIXEL servos (MX-28, AX-12A)
Smart servos on one half-duplex bus, and what their Python SDK really puts on the wire
Two bugs in the DynamixelSDK Python package, found with no servo plugged in
A fake serial port under the real SDK: every e-manual example matches, byte stuffing silently doesn't happen, and Bulk Read on Protocol 1.0 crashes
A safety zone that was always CLEAR, and an intrusion alarm that never stopped
Running my eight urg_cpp demos on the sensor for the first time: a step-versus-index bug and mixed pixels
Hokuyo URG-04LX lidar (2D, 240°)
An old USB laser scanner: talking SCIP 2.0 by hand, then fixing the demos that ran on it
Talking SCIP 2.0 to the URG-04LX by hand
A raw client in Python and C++: 6-bit text encoding, a checksum that skips the semicolon, and two stream bugs of my own
Arms, a dance and a 2 mm jump
Two 3-joint AX-12A arms, five whole-body motions on the same balance, and servo speed limits that keep the jump honest
Humanoid (17-servo biped)
My thesis robot, brought back as a model: my own C++ kinematics library, MuJoCo physics, an online walker with IMU feedback
Leg IK that misses by 166 mm, and the two sign errors behind it
Swapping the old NumPy solver for my C++ kinematics library, then finding the bug wasn't in the IK at all
Humanoid Robot: my thesis project
A small humanoid on SG90 servos: SolidWorks model, DH table, inverse kinematics, then the real thing
Walking in MuJoCo: two feet in one place, and the one feedback that paid
An online LIPM walker at 50 Hz, a simulation bug that faked every torque number, and capture steps that made things worse
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
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
Microduck (14 × XL330): rebuilding an open RL-trained duck
Pollen Robotics' small open biped that learns to walk in simulation; I run their pipeline before building one
What the repos give you, and the three holes I'd fill myself
Before buying parts I read their hardware, runtime and OS repos; the software path is complete, the hardware path isn't
Docker Networking
What each Docker network driver builds out of bridges, veth, macvlan and iptables
Linux MacVLAN
Sub-interfaces with their own MAC: the four modes, and why the host can't reach them
Linux Packet Filtering
Where a packet goes inside the kernel: the five chains, the tables in each, conntrack, iptables and nftables
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 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
Docker Snippet
Các lệnh Docker thường dùng
Linux Tips & Tricks
My scratchpad of shell one-liners: fstab, cleanup, time, git, sed, awk, find
Disk Partition Tables: MBR & GPT
MBR byte by byte on a test image, then GPT, the tools, and the layouts I use on boards
Programming Language snippets
Các snippet code hay dùng
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