shithub: n900

ref: f8b2ecf997343478ceed7892ef91ca84d307460a
dir: /README.md/

View raw version
# n900

a [plan 9 front][1] port to the [nokia n900][2].

[1]: http://9front.org
[2]: https://en.wikipedia.org/wiki/Nokia_N900

## status

**working**: keyboard, screen, rtc, mmc  
**broken**: audio, touch, battery, usb, networking, camera

## build

clone this repository to a 9front system and bind the directories.

    cd n900
    bind -ac sys/src/9 /sys/src/9
    bind -ac sys/src/boot /sys/src/boot
    bind -ac sys/lib/dist /sys/lib/dist

compile the system for the arm architecture.

    cd /sys/src
    objtype=arm mk install
    objtype=arm mk clean

compile the kernel

    cd /sys/src/9/n900
    mk install
    mk clean

build the boot scripts

    cd /sys/src/boot/n900
    mk

build a bootable image suitable for writing to an sd card.

    bind /root /n/src9
    bind -ac /dist/plan9front /n/src9
    bind -ac /sys/src/9 /n/src9/sys/src/9
    bind -ac /sys/src/boot /n/src9/sys/src/boot
    bind -a /sys/lib/dist /n/src9/sys/lib/dist

    cd /sys/lib/dist
    mk 9front.n900.img