Skip to content

chenty2333/os1k

Repository files navigation

Build

Quick Start (Docker)

git clone https://github.com/chenty2333/os1k.git && cd os1k
mkdir -p disk && echo "Hello from host" > disk/hello.txt
./docker-run.sh

To get an interactive shell inside the container:

./docker-run.sh bash

Local Development

Environment

clang llvm lld qemu-system-misc curl

Ubuntu:

sudo apt update && sudo apt install -y clang llvm lld qemu-system-misc curl

Build & Run

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

Test

> readfile
Hello from host

> writefile
wrote 2560 bytes to disk

> readfile
Hello from shell!

> hello
Hello world from shell!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors