Skip to content
AdvanceOS

AdvanceOS

EMULATOR DATABASE

AdvanceOS

AdvanceOS is a small, bare‑metal operating system that runs Game Boy Advance binaries by providing a GBA-like environment on Raspberry Pi hardware.

6.0 / 10

game boy advance

Download Tutorials & guides

Sign in to download. Files are hosted by the emulator project.

Game Boy Advance
SYSTEM SPOTLIGHTGame Boy AdvanceArtwork from the Retro Replay system database

About AdvanceOS

AdvanceOS leverages the ARM instruction-set compatibility between the GBA's ARM7TDMI and the Raspberry Pi's ARM11 to run GBA binaries with minimal instruction translation. It aims to provide a lightweight, bare‑metal environment that recreates GBA memory layout and peripherals so GBA programs can run on Raspberry Pi hardware.

Useful for developers, hobbyists, and experimenters who want to run or debug GBA homebrew on Raspberry Pi hardware (bare‑metal) or experiment with low-level GBA emulation without a full desktop emulator frontend.

The people behind AdvanceOS / history

AdvanceOS is maintained in a public GitHub repository. The code implements a GBA memory map, basic peripherals (LCD with backgrounds and sprites without rotation/scaling, keypad polling, timers, DMA, IRQ management) and uses the Raspberry Pi MMU to recreate the GBA memory environment. The README documents branches for experimental work (instructiondecoding, fulldma) and a deprecated qemu-compatible build. Activity and exact maintenance cadence should be checked on the repository for the latest commits and release activity.

Screenshots

Game screenshot from a game boy advance title
Game screenshot from the game boy advance library. Image from Retro Replay media.
Metroid Fusion gameplay on Game Boy Advance
Gameplay from Metroid Fusion on Game Boy Advance.

Tutorials & guides

AdvanceOS setup guide (click to expand)

Setup note: This profile describes verified, repository-driven steps to build and run AdvanceOS as a bare‑metal kernel image on a Raspberry Pi (or to run the qemu-compatible variant where explicitly supported). It assumes familiarity with building from Git, cross-compilation basics for ARM, and writing an SD card for Raspberry Pi boot.

  1. 1) Fetch the source: Clone the official repository: git clone https://github.com/gberthou/AdvanceOS and change to the project directory.
  2. 2) Build the kernel for Raspberry Pi: Use the repository's Makefile. The README states you can run make or make build (the repo contains a top-level makefile). The build produces a kernel image (kernel.img) suitable for Raspberry Pi's boot partition.
  3. 3) Prepare your SD card (bare‑metal Raspberry Pi): Create a single FAT32 boot partition. Copy the official Raspberry Pi firmware's boot folder contents (the README instructs to clone the official Raspberry Pi firmware and copy the boot files) onto the SD card's FAT partition. Remove any existing kernel*.img files from the card, then copy the generated kernel.img from AdvanceOS into the boot partition. Adjust config.txt as needed; the repo includes example config files in the configs/ directory—use those as a starting point for display and hardware configuration.
  4. 4) Run on hardware: Insert the SD card into the Raspberry Pi and power it on. AdvanceOS runs as a bare‑metal kernel and provides a framebuffer-based LCD emulation of GBA graphics and basic input via keypad polling. Expect the environment to be oriented toward development/debugging rather than polished consumer features.
  5. 5) Debugging with QEMU (deprecated branch): The README documents a qemu-compatible kernel build that disables USB; that branch is explicitly flagged as deprecated because upstream qemu lacks full BCM2835 USB support. If you need emulation/debugging under QEMU, follow the repo's qemu/ run-emu.sh and run-gdb.sh scripts and build with the provided qemu-compatible target (the README shows make qemu-compatible DEFINES=-DNO_USB). Note: functionality and USB features will be limited.
  6. 6) ROMs, examples and devkitARM: The repository contains example GBA resources compiled from devkitARM samples; it references devkitARM as the standard toolchain for GBA development. AdvanceOS does not include commercial GBA games, BIOS, or firmware — you must supply your own legally obtained GBA binaries for testing.
  7. 7) Practical notes & expectations: AdvanceOS implements many GBA peripheral basics (LCD backgrounds/sprites without rotation/scaling, timers, DMA, IRQs and keypad polling) but is not a full-featured, cycle-accurate GBA emulator. Some GBA features or games that rely on exact hardware timing, advanced PPU effects, or missing peripherals may not run correctly. Use the repo branches and issue tracker for status on experimental improvements.
  8. 8) Building requirements: Follow the repository README for build requirements. The project uses standard tools available on typical Linux development setups (make, gcc/arm toolchain where applicable). For cross-compiling or building devkitARM samples, install devkitARM/devkitPro if you intend to compile GBA binaries or examples.

Software reminder: AdvanceOS is source-distributed; do not expect bundled commercial games, BIOSes, or proprietary firmware. Consult the repository README and issues for up-to-date build flags and compatibility notes before use.

Additional information

What AdvanceOS supports

  • Raspberry Pi (bare‑metal kernel image)
  • QEMU (limited / deprecated compatibility branch noted in repo)
  • GBA binaries (.gba) compiled for the original ARM7TDMI
  • No commercial BIOS or firmware included

READMEs & documentation

AdvanceOS official project README
# AdvanceOS
A tiny Operating System that emulates GBA on Raspberry Pi.

## Principle
GBA has an ARM7TDMI processor and the processor of Raspberry Pi is ARM1176JZF-S. The ARM7 instruction sets (ARM and thumb) are compatible with the ARM11 ones. Hence no instruction decoding is required to simulate the instructions sets. Special registers such as CPSR have the same bit fields so pre-editing the binaries to execute can be avoided.

## Preview
![Console demo](https://github.com/gberthou/AdvanceOS/blob/master/images/ansi_console.png "ansi_console demo")

![Snake homebrew](https://github.com/gberthou/AdvanceOS/blob/master/images/snake.png "snake homebrew")

## How to install and run
### Installation
1. Clone this repo
2. run `make build`

### Compiling the kernel

#### Command to build a kernel that runs on Raspberry Pi
Simply run `make`

#### Command to build a kernel that is compatible with qemu [deprecated]
The aforementionned version of qemu does not support USB features of BCM2835 so it is mandatory to disable USB.
In order to compile that kernel version, run `make qemu-compatible DEFINES=-DNO_USB`

### Running the kernel on Raspberry Pi hardware
#### Prepare the SD card
If your SD card already contains a valid Raspberry Pi system, you can ignore this step.

First, erase its partitions and create a one that supports vfat, for instance using `fdisk`.
Then format it as vfat using `mkfs.vfat`.
Clone the [officiel Raspberry Pi firmware](https://github.com/raspberrypi/firmware) somewhere into your *computer*, not on the SD card, and copy *only* the contents of the `boot` folder onto your partition.
Finally, remove all `kernel*.img` from your SD card, and don't forget to create a `config.txt` adapted to your display.
There is an example of `config.txt` file in the `configs` subdirectory of this repo.

#### Copy the kernel image
Put the generated kernel.img into your SD card.
If your SD card has several partitions, choose the boot partition alongside Raspberry Pi's firmware files.

### Debugging the kernel on the computer (requires qemu)
1. Change directory to ./qemu
2. Run ./run-emu.sh in a terminal
3. Run ./run-gdb.sh in another terminal

Currently, qemu and gdb communicate through port 2222. If you have another application that uses this port, you can edit run-emu.sh and .gdbinit to change the remote port.

## Features
1. Use of MMU
  * Memory map to recreate the GBA memory environment
  * Traps on attempts to write to GBA peripherals memory
2. GBA Peripherals
  * LCD (backgrounds and sprites, no rotation/scaling)
  * Keypad (user polling only)
  * Timers
  * DMA
  * IRQ management

## Branch overview
This repo contains several branches. Everything on master branch belongs to the current version of the project. Other branches show alternative experimental potential improvements:

1. instructiondecoding: replaces the two-stage data fault handler with a lighter one-stage handler. It relies on assumptions about the faulting instructions (only STRx instructions should be used). System performance is better using this solution, but as it is not fully tested (user code might use hacks with stack pointer and STMx instructions that are not yet supported for example) it is not yet merged into master.
2. fulldma: uses Raspberry Pi DMA to perform memory copies and fills to increase system performance, mainly in framebuffer operations.

## Additional informations
GBA files that are located in the resource folder are compiled from the devkitARM [GBA examples](http://sourceforge.net/projects/devkitpro/files/examples/gba/). If you are interested in GBA development, there is more information about [how to setup devkitARM environment](http://devkitpro.org/wiki/Getting_Started/devkitARM).
Download original README

Original project README source

Release log

Selected releases and changes, with coverage from our weekly emulation roundup.

    Sources & further reading

    FROM THE COMMUNITY

    Player reviews

    0 reviews
    6.0/ 10

    Overall rating

    Provisional site rating and approved member scores, each counted once.

    Starting site scores are provisional editorial scores. Established mainstream projects receive a higher starting score; other imported entries begin at a neutral 6/10 pending individual review. Member scores change the average after approval.

    Your take on AdvanceOS

    Spam has been overwhelming. To help us approve your review, sign up and introduce yourself in the Introductions forum so we know you’re not a bot.

    Sign in with your Retro Replay account to rate this project and share your experience.

    Sign in to review