Nylon runs on the Compute Module 4
Nylon now runs on the Raspberry Pi Compute Module 4, the Pi that goes inside products. It's a Pi 4's chip on a module that plugs into a carrier board, so a company can build it into a machine it ships. Card 0.0.1 brings it, and USB gamepads and keyboards on the Zero 2 W too.
What works today
We ran a CM4 Lite on Raspberry Pi's CM4 IO board, booting from a microSD card. On it, Nylon:
- starts, takes your Wi-Fi on its setup page, and joins it again after a power cycle;
- reads a USB keyboard;
- reads a DualShock 4, with rumble and its light bar;
- drives a Build HAT on its header.
It runs the same programs and the same libraries as a Raspberry Pi 3 B+, a Zero 2 W or a Pi 4. Write for one and it runs on the others.
Try it
- Write a new card. Write Nylon Card… in IntelliJ's Nylon window always writes the newest image, so it writes 0.0.1. You can also download it from Download and write it with Raspberry Pi Imager.
- Put it in the IO board's microSD slot and power the board up. It joins your Wi-Fi and shows up in IntelliJ, as any board does.
- Unplug the IO board's micro-USB cable before you plug a pad or keyboard into its USB-A ports. While it's connected, they stay off.
That's a CM4 Lite, which boots from the card. Writing a CM4's built-in eMMC is coming soon.
USB on the Zero 2 W
The same card lets a Raspberry Pi Zero 2 W read a USB gamepad or keyboard. Plug it into the Zero's USB port, not PWR IN, through a micro-USB OTG adapter. Now the smallest board can drive a robot from a pad.
Where this goes
The Compute Module is where Raspberry Pi meets industry: it's the Pi inside kiosks, controllers and machines. Hard real time comes next: a control loop that runs to completion whenever it's due, ahead of everything else, while your programs keep every core busy. On a CM4, that's a controller you can build into what you ship.
Follow along on this blog (RSS) and in GitHub Discussions.