git clone https://github.com/chenty2333/os1k.git && cd os1k
mkdir -p disk && echo "Hello from host" > disk/hello.txt
./docker-run.shTo get an interactive shell inside the container:
./docker-run.sh bashclang llvm lld qemu-system-misc curl
Ubuntu:
sudo apt update && sudo apt install -y clang llvm lld qemu-system-misc curl
curl -LO https://github.com/qemu/qemu/raw/v8.0.4/pc-bios/opensbi-riscv32-generic-fw_dynamic.bin
mkdir -p disk && echo "Hello from host" > disk/hello.txt
./run.sh> readfile
Hello from host
> writefile
wrote 2560 bytes to disk
> readfile
Hello from shell!
> hello
Hello world from shell!