Skip to content

Overview ​

The NavX SDK builds programs for the BMW MK4 navigation computer: an OS-9000 system on a MIPS R3000-class CPU, with a 400 × 234 screen and the BMBT knob. The programs run with the NavX firmware, which is our own and adds an Apps launcher, car functions and the I-Bus to the stock unit.

PartWhat it is
Toolchainnavx-cc: C (clang) into one OS-9000 program module, plus the runtime: navx/os9.h system calls, a small libc, and soft float
App interfacesthe headers and data module layouts an app uses with the firmware
NavX UIfonts, theme, drawing and widgets, and the protocol for running inside the NavX shell
UI guidelineshow every screen looks and behaves
Build and testthe emulated unit, discs, screenshots

A program in a minute ​

sh
pnpm install && pnpm build
node dist/cli.js examples/hello.c -o hello     # an OS-9000 program module "hello"
c
#include <navx/os9.h>

int main(int argc, char **argv) {
  os9_puts(STDOUT, "hello from navx\n");
  return 0;
}

The module goes to the unit:

  • from an apps disc: APPS/APPS.TXT lists it, and the launcher shows it;
  • or over the t1 serial port: navx serial … load, with --flash to keep it.

Each built module is re-parsed (parity, CRC) and is a multiple of 4 bytes. A broken module can take the kernel down, so the tools never write one they can't read back.

Rules that matter on this CPU ​

  • No runtime multiply or divide in drawing code (the MIPS I hi/lo hazard). Use shifts, adds and tables. The build checks for them.
  • No ternary that picks between strings or globals. clang's MIPS backend crashes on it. Index an array instead.
  • Stock unit, no extra hardware, unless an app says what it needs.

The NavX UI ​

the shell's home

Apps draw with our UI library and run inside the NavX shell: the shell owns the status bar, the knob and the overlays, and the app gets an area of the screen. The same program also runs on its own from the launcher. Start with the UI guidelines, then the UI SDK.

The NavX SDK is private for now; these docs are public.