Building FRANK OS from Source

Prerequisites

  • Raspberry Pi Pico SDK (version 2.0+)
  • ARM GCC toolchain (arm-none-eabi-gcc)
  • CMake 3.13+
  • Python 3 (for icon tools)
  • picotool (for flashing)

Set the SDK path: export PICO_SDK_PATH=/path/to/pico-sdk

Required Libraries

Two external libraries managed as git submodules:

OptionDescription
FreeRTOS-KernelRTOS kernel (Raspberry Pi fork with RP2350 port) in lib/FreeRTOS-Kernel
DispHSTXDVI/VGA scanline renderer for RP2350 HSTX in lib/DispHSTX

Fetched automatically with git clone --recursive. Bundled libs (helix, hxcmod, opl) don't need submodule init.

Build Steps

git clone --recursive https://github.com/rh1tech/frank-os.git
cd frank-os
export PICO_SDK_PATH=/path/to/pico-sdk
./build.sh

Output: build/frankos.elf (debug) and build/frankos.uf2 (flashable).

CMake Options

OptionDescription
PSRAM_SPEEDPSRAM max frequency in MHz (default: 166)
FLASH_SPEEDFlash chip max frequency in MHz (default: 66)
CPU_CLOCK_MHZCPU clock (default: 252)

Building Applications

cd apps
./build_apps.sh

Each app in apps/source/*/ is built independently. Compiled output goes to sdcard/fos/.

Flashing

./flash.sh                        # flash most recent build
./flash.sh path/to/firmware.elf   # flash specific file

Uses picotool. Hold BOOTSEL if picotool can't connect.

Creating a Release

./release.sh — prompts for version number, updates version.txt, builds, copies UF2 to release/.