If you want to get started writing your own kernel for 32-bit RISC-V from scratch, here's how seiya.me did it in 1,000 lines of cleanly written C. There's documentation to go with it. Pretty cool IMHO! github.com/nuta/operati...
Post
It has: * Basic process multi-tasking * Paging * An exception and system call handler * A virtio-blk device driver to read and write a disk * Simple command-line shell An MIT-licensed starting point for folks. For more info, see: seiya.me/blog/operati...
To build and run on Linux: 1. Make sure you've installed: * clang * lld * Qemu with the 32-bit RISC-V system emulator 2. Clone the repo from GitHub and edit its run-dot-sh file so: CC=clang OBJCOPY=llvm-objcopy 3. Run in a terminal: ./run.sh
0 reposts0 likes
No replies yet.