# Orange Pi PC

This is a work in progress. For now, this produces a Dusk OS prompt on UART0,
mounting its FAT from the SD card. It drives:

* UART
* Timer

## Usage

Running "make" produces dusk.img, all you need to do is to copy
(dd) this raw image to a SD card. It should boot with a Dusk OS
prompt on UART0 with 115200 bauds.

And running "make emul" will boot the disk via QEMU with an emulated
Orange Pi PC.

## Rebuilding sunxi-spl.bin

U-boot is hardwired to Linux. You need Linux to build this.

You need the arm toolchain. For example, arm-linux-gnueabihf-gcc needs to
exist on your machine.

    $ git clone https://github.com/u-boot/u-boot.git
    $ cd u-boot
    $ git checkout v2026.01
    $ export CROSS_COMPILE=arm-linux-gnueabihf-
    $ make orangepi_pc_defconfig
    $ make spl/sunxi-spl.bin

## Rebuilding toaarch32.bin

You need the arm toolchain.

    $ arm-linux-gnueabihf-as -o toaarch32.o toaarch32.S
    $ arm-linux-gnueabihf-objcopy -O binary -j .text toaarch32.o toaarch32.bin
