提交 17c1aeda 编写于 作者: G Guokai Chen

README: append OpenSBI guide

上级 28de64b1
......@@ -31,3 +31,16 @@ The main features of NEMU include
* most of them are simplified and unprogrammable
* 2 types of I/O
* port-mapped I/O and memory-mapped I/O
## Howto
### Run OpenSBI and Linux
**All steps below use source code in RISCVERS**
1. Compile a Linux kernel, with proper SD card driver integrated if you want to run Debian or Fedora. Currently Kernel v4.18 is verified to work.
2. Convert ```vmlinux``` to binary format using ```objcopy```.
3. Compile OpenSBI using ```build\_linux.sh``` where vmlinux path may need a modification.
4. Compile NEMU using ```opensbi``` branch. You may want to change default sdcard image path in ```src/devices/sdcard.c``` to boot Debian or Fedora.
5. launch NEMU intepreter and load ```fw\_payload.bin``` generated by OpenSBI.
6. If you are using a ```vmlinux``` with initramfs, you will likely be greeted with a ```Hello```, otherwise you may see startup logs and finally a login prompt from Debian or Fedora if SD card is configured properly.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册