Skip to content

Yingzi2021/riscv-operating-system

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Step by step, learn to develop an operating system on RISC-V

Operating environment

Environment:

Linux boying-BOHL-WXX9 6.8.0-45-generic #45~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 11 15:25:05 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Install necessary toolchain:

$ sudo apt update
$ sudo apt install build-essential gcc make perl dkms git gcc-riscv64-unknown-elf gdb-multiarch qemu-system-misc

Building and usage

  • make:Compile and build
  • make run:Start qemu and run
  • make debug:Start debugging
  • make code:Disassemble to view binary code
  • make clean:cleanup

For specific use, please refer to the Makefile under the specific sub-project.

References

The design of this course refers to the following network resources, thank you :)

About

《从头写一个RISC-V OS》课程学习笔记

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 72.8%
  • Assembly 24.8%
  • Makefile 2.4%