wfly1998 / opensbi-fuxi

RISC-V Open Source Supervisor Binary Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenSBI for Fuxi SoC

This is a fork of OpenSBI for Fuxi SoC

Usage

Add prefix for cross compiler:

$ export CROSS_COMPILE=riscv32-unknown-linux-gnu-

Then you cam compile opensbi with following command:

make PLATFORM=fpga/fuxi

After compiling, opensbi will be at ./build/platform/fpga/fuxi/firmware/fw_jump.bin

For using it for Fuxi SoC, you should use bin2coe.py in GeeOS:

$ python3 PATH_TO_GEEOS/utiks/bin2coe.py PATH_TO_OPENSBI/build/fpga/fuxi/firmware/fw_jump.bin

Then copy the fw_jump.bin.coe to Fuxi SoC at Fuxi/soc/soc.srcs/sources_1/new/ocm.coe, and you can generate Fuxi SoC with opensbi for FPGA.

About

RISC-V Open Source Supervisor Binary Interface

License:Other


Languages

Language:C 88.0%Language:Assembly 5.3%Language:Makefile 5.2%Language:Shell 1.0%Language:C++ 0.3%Language:Objective-C 0.2%