https://github.com/chaoyangnz/rvz
xv6 port on RISC-V VisionFive2 / Nezha in Zig
https://github.com/chaoyangnz/rvz
d1-h jh7110 risc-v xv6 zig
Last synced: 11 months ago
JSON representation
xv6 port on RISC-V VisionFive2 / Nezha in Zig
- Host: GitHub
- URL: https://github.com/chaoyangnz/rvz
- Owner: chaoyangnz
- Created: 2022-08-30T03:49:22.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-10-07T12:21:05.000Z (over 2 years ago)
- Last Synced: 2025-07-10T17:19:46.674Z (12 months ago)
- Topics: d1-h, jh7110, risc-v, xv6, zig
- Language: Zig
- Homepage:
- Size: 30.9 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RVZ
A xv6 port on JH7110 / D1-H using Zig.
> Currently I run on VisionFive2. In [rvx](https://github.com/chaoyangnz/rvx), I managed to port on Nezha D1 in C.
# Development (Ubuntu)
## Prerequisite
- [VisionFive2](https://rvspace.org)
- [Nezha](https://d1.docs.aw-ol.com/en/d1_dev/)
Unbuntu:
- USB-UART driver: `sudo apt install libusb-1.0-0-dev`
- packages:
- Zig: `snap install zig --classic --edge`
- toolchain: `npm i xpm & xpm i`
- (optional): `sudo apt-get install -y gcc-riscv64-linux-gnu`
## Validation
- `lsusb`
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 Serial (UART) IC
`sudo adduser dialout`
## Tools
These tools may be needed during build, so better to put them in `$PATH`.
- [vf2flash](./tools/vf2flash/vf2flash)
A utility to help load your kernel into DRAM and run and also flash your kernel into SPI Flash sector. It also can act as a Serial terminal.
- [vf2-uboot-fit-imager](./tools/vf2-uboot-fit-imager/vf2-uboot-fit-imager)
- [xfel](https://github.com/xboot/xfel/tree/master/docs#linux-platform-1)
A CLI tool to build U-boot FIT image with visionfive ITS.
## Build (test bare metal)
```
./dev
```
The above will load the binary to DRAM 0x40000000 and run.
You should be able to see UART output at the end.