Pip-OS is a bare-metal kernel for a wearable Pip-Boy built from a Raspberry Pi, themed on the Fallout games. It boots, shows the boot sequence, then checks and runs the ROM on the SD card. The ROM is the user environment, Deitrix. Holotapes are small programs a ROM can start.
Pip-OS is built on RobCo-Core, the shared foundation of the RobCo projects. RobCo-Core provides the start-up code, the drivers, the screen console, the FAT file system, the stage loader, input, audio and the QEMU test harness.
One image runs on the Pi Zero, Zero W, Pi 1, Pi 2 and Pi 3, in 32-bit mode.
What works now:
- Boot on all four QEMU boards:
raspi0,raspi1ap,raspi2bandraspi3b. - MMU and caches, interrupts, a 100 Hz tick and a kernel heap.
- Boot text on the HDMI framebuffer and the serial console. The boot screen counts the holotapes on the card.
- Configuration from
/PIPBOY/PIPOS.CFG: colour scheme, boot line delay, boot text speed and key click, volume and power-on beep. - The ROM check: the kernel loads
/PIPBOY/ROM1.ROMinto the ROM slot and validates it. The boot screen shows its name and version, or the reason it failed. - Running the ROM in user mode, with the MMU keeping it inside its own memory. A fault stops the ROM and shows on screen.
- Every system call of ABI 2.0 of RobCo-Core's Pip-OS ABI.
sys_inforeports0x00020000, and an image built for 1.x is refused at load. The calls cover graphics on a 320x240 back buffer, input events, one audio voice with tones, sequences and 8-bit samples at 8000 or 37500 Hz, the clock andpower, saves and read-only files on the card, and holotapes that the ROM runs from/PIPBOY/HOLO/in their own sandbox. See docs/API.md. - A ROM SDK in
sdk/: headers,crt0.S, link scripts,libpip.awith the syscall wrappers, string functions, printf and a heap, andpipos-app.mkto build and seal a ROM or a holotape. Start with docs/ROM_DEVELOPMENT.md. - The seven controls of ABI 2.0: the list knob with its push, the submenu wheel, the tuner, the volume wheel, the mode selector, the flashlight button and the power button. The four encoders and the push sit on GPIO. The mode selector and the two buttons sit on a control expander at I2C address
0x20. Every control also comes from the serial console and a script channel on the mini UART. A new position of the mode selector ends a holotape that still runs 1000 ms later. See docs/USER_MANUAL.md. - Audio through PWM, or a trace on the serial console in QEMU.
- A software clock, set from an RTC chip when one answers.
set_timewrites the chip too.
What does not work yet:
- Real hardware, apart from one run. The automated tests run in QEMU. Pip-OS
2d10c2cbooted on a Pi Zero W 1.1 and ran a ROM with serial keys as input. The screen, the controls, the control expander, sound and the RTC chip are untried. Checks still open lists what a board must still show. See Hardware results. - Battery monitoring and sensors other than the clock.
- The SPI panel on real hardware. It runs only in QEMU, where no panel answers.
git clone --recurse-submodules https://github.com/RobCo-Industries/Pip-OS.git
cd Pip-OS
make CI=1The image is build/pipos.img. docs/BUILD.md lists the tools and the build outputs.
make test
make test BOARD=raspi0make test runs the host unit tests, then boots the kernel in QEMU on all four boards. See docs/TESTING.md. The conformance ROM checks every system call in QEMU or on a real board.
make run BOARD=raspi2bThis builds build/sd.img with the kernel, a sample configuration, the SDK's hello example as the ROM and its tape example as a holotape. It boots the card with RobCo-Core's runner, with the serial console on the terminal. Press Ctrl-A, then X, to quit. make run WINDOW=1 also opens the QEMU display window.
Type the keys in the terminal: Up and Down turn the list knob to pick a holotape, Enter pushes it to run the tape, Backspace is a long push that ends the ROM. In the tape, Up and Down change its exit status and Enter goes back. See docs/BUILD.md.
make bootdir DIR=/path/to/dirCopy the files in DIR to the FAT32 boot partition of the card. They include the example ROM, and ROM=<file> picks another. See docs/BUILD.md.
| Page | Content |
|---|---|
| docs/USER_MANUAL.md | Using a Pip-OS device |
| docs/ARCHITECTURE.md | How the kernel is built inside |
| docs/BUILD.md | Tools, build, layout, SD card images |
| docs/BOOT.md | Boot flow, boot text, markers, script commands, memory map |
| docs/CONFIG.md | PIPOS.CFG keys and defaults |
| docs/TESTING.md | Host tests, QEMU tests, CI |
| docs/HARDWARE_VALIDATION.md | Checking a real Pi with the conformance ROM |
| docs/HARDWARE.md | Pins, buses and what the kernel drives |
| docs/API.md | System call reference |
| docs/ROM_DEVELOPMENT.md | Writing a ROM and a holotape with the SDK |
| docs/LORE.md | Where the boot text and names come from |
RobCo-Core documents the library and the shared specifications:
| Project | Role |
|---|---|
| RobCo-Core | Shared library and specifications |
| Deitrix | ROM and user environment for the Pip-Boy |
| RETROS-BIOS | First stage of the terminal chain |
| MFBootAgent | Second stage of the terminal chain |
| UOS | Terminal operating system |
MIT. See LICENSE.