Thanh Le / bench notes
EMBEDDED · BOARD HUB · IN PROGRESS

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

Last change2026-11-22: hub page with four STAR write-ups

Raspberry Pi 1 Model B (BCM2835)

Pi 1 Model B block diagram

The original Pi from 2012: a BCM2835 (one ARM1176 at 700 MHz, a VideoCore IV with 12 QPUs), 512 MB of LPDDR2 stacked on the SoC, a LAN9512 that is both the USB hub (two ports) and the Ethernet, HDMI, an SD slot and the old 26-pin header. When I first looked at mine I couldn’t find “A” or “B” printed anywhere. I counted: 26 GPIO pins, an RJ45, two USB ports. So, a Model B. The firmware later said revision 0x000E, which is the B rev 2.

My Pi 1 B on the bench, HDMI to the monitor Mine, on my desk: the Pi 1 B with jumper wires on the header and HDMI into the monitor, 11 s after power-on, my FreeRTOS status panel already on screen.

Why this board at all: in October 2026 I’d just got FreeRTOS running on my Pi Zero W, same chip. The Pi 1 was sitting there plugged into the PC, so I asked the obvious question: does the Zero’s image run on it? It did. And then it turned into a bigger thing: the face detector I had on my NanoPi 2 Fire, but on a 2012 board, with no Linux under it.

What it does now: the Zero’s FreeRTOS image boots unchanged from the SD card, a loader inside the firmware takes the next build over the UART at 1.5 Mbaud (no more card swaps), the VideoCore decodes the webcam’s MJPEG for me, and the face detector runs on the 12 QPUs at 43.5 ms a picture. A WS2812 ring counts the faces.

How this board gets from power to my code, 84 s: a real clip of my bench first, then the boot ROM finding bootcode.bin (52 KB), start.elf (2.9 MB) splitting the RAM 448/64 MB, kernel.img at 0x8000. (Vietnamese on-screen text, background music, no voice-over.)

The stories

#StoryResultStatus
1 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
Unchanged image boots; next build over UART: 921 KB in 6.7 s instead of a card swap Done
2 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
352x288 JPEG to I420 in ~5 ms on the GPU; 597 webcam frames, 0 decode errors Done
3 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
One picture 2374 -> 43.5 ms; live 0.3 -> 12.3 detections/s (17.5 after the webcam fix) Done
4 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
Stream restarts ~9/min -> 0 (2117 runs in 121 s, 0 errors); ring lit again with 0xF8 Done

Still open

The auto start at power-on is on the card, but I haven’t watched it come up from a cold boot with the latest kernel yet. VCHIQ only opens once per GPU boot, so I have to reboot before every make load; annoying, not fixed. The port saves no VFP registers, so only the face task may use floats and the ring effects run in soft float. Ethernet on the LAN9512 is still unused.