BreadboardOS firmware for the Raspberry Pi RP2040 features a Linux-like terminal

Cavin McKinley’s BreadboardOS is an open-source firmware platform for the Raspberry Pi RP2040 MCU (for now) built around FreeRTOS and with a feature-packed CLI that reminds me of the Linux terminal.

The terminal implementation is based on a fork of the microshell project with some additional customization. It is organized into POSIX-style folders/files providing a familiar user interface for interacting with the hardware on the MCU.

BreadboardOS Raspberry Pi Pico
BreadboardOS running on Raspberry Pi Pico board

BreadboardOS highlights:

  • FreeRTOS-based
  • Tools for checking system resources such as ps, top, free, and df commands
  • Interaction with chip I/O and serial buses from the terminal using commands such as cat and echo, for example, you can print the list of GPIOs with:
  • Onboard flash filesystem with wear-leveling (relying on the LittleFS project)
  • Peripheral hardware initialization routines
  • Watchdog service for system failsafe recovery
  • RTOS task manager for dynamically controlling system services at runtime
Raspberry Pi RP2040 terminal GPIO control
Examples of commands to list devices and control GPIO pins (from the video below)

The “rootfs” features similar directories (mnt, etc, bin, proc, dev, and lib) as in a minimal Linux distribution. You’ll find the source code released under an MIT license and instructions to build BreadboardOS on GitHub. There’s no documentation about the available commands that I could find, and the best way to check those out is to watch the video below or install Breadboard OS on a Raspberry Pi Pico or Pico W.

Right now BreaboardOS, or BBOS for shorts, is implemented on the Raspberry Pi RP2040 only, however, Cavin explains the platform was built with porting in mind and the project has been structured such that all hardware-specific code resides in a single directory (hardware_pico) with a header file (hardware_config.h) providing HAL functionality.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

Radxa Orion O6 Armv9 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
5 Comments
oldest
newest
Boardcon CM3588 Rockchip RK3588 System-on-Module designed for AI and IoT applications