An operating system based on OS in 1,000 Lines and branched off from there.
-
Make sure you have:
- Clang and LLVM tools: Install through visual studio
- tar to build the filesystem
- QEMU, make sure you select riscv32 as one of the targets to install: https://qemu.weilnetz.de/w64/qemu-w64-setup-20241220.exe
-
Configure the paths in run.bat to point to where qemu and clang are located on your system.
-
Exectute run.bat
Note: If you want to use qemu monitor for debugging stuff, then using cmd.exe as a shell is a problem because it doesn't support the terminal escape sequences qemu is using so the escape sequences all get printed to the console. I switch over to Cmder when I want to use qemu moniter.
OS in 1,000 Lines
virtio spec
RISC-V spec
tar file format
xv6 source code
full boot process
Operating Systems: Three Easy Pieces