Skip to main content

Embedded Systems Weekly #138

Updated 5 min readMarkdown

An electronics repair workbench An electronics repair workbench. Photo: Trent Von Holten

Welcome to issue 138 of our newsletter on embedded systems! Yes, the newsletter is back, and it’s still hand-picked: the best embedded software and hardware links of the last ten days.

This week, an FPGA inference chip built by someone who had never written Verilog, the history behind every x86 quirk, and a U-Boot setup that verifies one rootfs while Linux mounts another.

Thanks to Brian Fundakowski Feldman (green@FreeBSD.org) for the extra context on the history of FreeBSD’s KASSERT, the subject of my X article.

As always, hit reply and tell me what you think.

Happy reading!

Sponsor Embedsys Weekly and reach 1750+

Articles

Vibecoding an inference chip $10,000 of tokens, roughly 3 million lines written across hundreds of experiments, and an FPGA running a ternary LLM at 213 tokens/s. The author had never written Verilog before. A fascinating, and slightly unsettling, look at where AI-assisted hardware design is heading.

The History Behind the x86 CPU: From 4004 to 486 Why is x86 little-endian? Because a 1970 terminal did its arithmetic one bit at a time. Gustavo Pezzi traces the quirks every assembly beginner calls arbitrary (AX, BX, CX, DX, segments) back to the decisions that created them.

Boot Partition Confusion in U-Boot and Linux U-Boot verifies the right rootfs, Linux mounts a different one, and every integrity check still passes. Andrea Braschi (Anvil Secure) shows that PARTUUID and PARTLABEL are assumed to be unique, but nothing enforces it. Worth a look if you ship verified boot.

A spinlock on 32-bit ARM The spinlock is the most basic lock an OS has, yet John Regehr finds a lot going on in the Linux version for 32-bit ARM: ticket numbers in two 16-bit halves, an ldrex/strex retry loop, a prefetch for write, and waiting cores parked with wfe until a sev wakes them.

Real-Time Video on Embedded Linux Cameras with WebRTC On a Raspberry Pi 3 camera, 1.25 s of the 1.55 s time-to-first-frame was spent before the WebRTC offer even existed: not ICE, not DTLS, but pipeline and encoder startup. A good reminder to measure before you optimize.

Splitting USB-C: USB 3 and USB 2 on One Port A USB-C port carries two separate buses. Frank Chiarulli used that to drop the USB 3 hub from his Mac recovery dongle: it now runs at 10 Gbps instead of 5, and the parts cost 72% less.

Building a wireless network adapter for the Super Nintendo The SNES never had a network port, so this one goes through controller port 2. A bit-banged serial link of about 30 KB/s is enough for an RP2350A and an ESP32-C3 to sync saves to WebDAV and feed LLM-written dialogue into A Link to the Past.

Teaching Home Assistant to Talk to My Litter Box Four bytes, 08 01 10 01, tell this litter box to start cleaning. Getting them there took MD5-signed HTTP requests, MQTT credentials fetched at login and a stack of protobuf wrappers. A lovely reverse engineering write-up.

Named arguments in C Named, defaultable arguments in plain C, with natural function-call syntax. No compiler extension: just designated initializers, a compound literal and a variadic macro, a trick first seen in Ben Klemens’ book 21st Century C.

Mutex poisoning is not for everyone In Rust, the standard library’s Mutex is poisoned when a thread panics while holding it, and every later lock() has to deal with that. This post argues about who actually needs that behaviour.

µ-Wire – USB on an ATtiny 10 988 of 1,024 bytes of flash and 30 of 32 bytes of RAM: that’s what it took to make a 6-pin ATtiny10 talk USB. This 2014 write-up by cpldcpu just resurfaced, and it’s still one of the best lessons in squeezing a microcontroller.

Tools / Libraries

FPGA finder – The Gate Array Comparing FPGAs across vendors is painful, partly because “logic cells” mean something different at every vendor. This finder lists 693 FPGAs and SoC FPGAs from 10 vendors, searchable and comparable by specs.

The Linux Kernel Module Programming Guide A free book first written for Linux 2.2 and still maintained. Its latest revision covers GPIO, interrupts, DMA, device tree and secure boot signing.

News / Business

FPGAs: The Hardware Heroes Behind the Scenes MCU revenue grew about 144% since 2019, FPGA revenue about 38%. Yet Cabe Atwell bets FPGAs will see the bigger jump next, as programmable logic spreads from retro console replicas to cloud servers. An opinion piece, but a well-argued one.

Misc

FOSS Comics #8: The Origins of Unix and the C Language How two Bell Labs engineers grew B into C to rewrite Unix for the PDP-11, told as a comic. Fifty years on, most microcontroller firmware is still written in C.

Making a dumb TV just smart enough Instead of buying the connected version with everything that comes with it, add only the features you need to the device you already have.


Originally published at embedsysweekly.com. Embedsys Weekly is a free, hand-picked newsletter on embedded systems, every Friday: subscribe here.

About the author

  • Weekly selection of embedded software and hardware articles. Hand-made, on Friday. Subscribe here http://embedsysweekly.com.

No comments yet. Be the first to comment.