xv6-k210/README.md

43 lines
910 B
Markdown
Raw Normal View History

2020-10-21 19:18:46 +08:00
# XV6-RISCV On K210
Run xv6-riscv on k210 board
2020-10-21 21:24:45 +08:00
![run-k210](./img/run-k210.png)
2020-10-19 00:53:22 +08:00
2020-10-21 19:18:46 +08:00
## Dependencies
+ k210 board
+ RISC-V Toolchain
2020-10-19 00:53:22 +08:00
2020-10-21 19:18:46 +08:00
## Installation
>\$ git clone https://github.com/SKTT1Ryze/xv6-k210
2020-10-19 00:53:22 +08:00
2020-10-21 19:18:46 +08:00
## Build
2020-10-22 03:54:05 +08:00
First you need to connect your k210 board to your PC.
And check the USB port:
>\$ ls /dev/ | grep USB
2020-10-23 08:00:43 +08:00
In my situation it will be `ttyUSB1`
2020-10-22 03:54:05 +08:00
2020-10-21 19:18:46 +08:00
>\$ cd xv6-k210
2020-10-22 03:54:05 +08:00
>\$ mkdir target
2020-10-21 19:18:46 +08:00
>\$ make build
2020-10-19 00:53:22 +08:00
2020-10-21 19:18:46 +08:00
## Run
2020-10-23 08:00:43 +08:00
>\$ make run-k210 k210-serialport=`Your-USB-port`(default by ttyUSB1)
Ps: Most of the k210-port in Linux is ttyUSB0, if you use Windows or Mac OS, this doc
may help you: [maixpy-doc](https://maixpy.sipeed.com/zh/get_started/env_install_driver.html#)
2020-10-19 00:53:22 +08:00
2020-10-21 19:18:46 +08:00
## What I have done
+ Multicore boot
+ Implement bare-metal printf
+ Memory alloc
+ Page Table
2020-10-23 17:28:26 +08:00
+ Timer interrupt
2020-10-27 08:09:12 +08:00
+ S mode extern interrupt
+ receive uart message
2020-10-19 00:53:22 +08:00
2020-10-21 19:18:46 +08:00
## TODO
The rest part of xv6-kernel and xv6-fs
2020-10-19 00:53:22 +08:00
2020-10-21 19:18:46 +08:00
## LICENSE
MIT License