皋陶 发表于 2020-8-23 11:23:11

RISC-V编译ISA自测试用例

本帖最后由 皋陶 于 2020-8-26 10:40 编辑

1.安装库
sudo apt-get install autoconf automake autotools-dev curl device-tree-compiler libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev



2.将 e200_opensource 项目下载到本机 Linux 环境中,使用如下命令
git clone https://github.com/SI-RISCV/e200_opensource.git

3.下载gnu-mcu-eclipse-riscv-none-gcc-7.2.0-2-20180111-2230-centos64.tgz并放在~/目录下
4.解压gnu-mcu-eclipse-riscv-none-gcc-7.2.0-2-20180111-2230-centos64.tgz
cd ~/
tar -xzvf gnu-mcu-eclipse-riscv-none-gcc-7.2.0-2-20180111-2230-centos64.tgz
cd ~/e200_opensource
mkdir -p ./riscv-tools/prebulit_tools/prefix/bin
cd ./riscv-tools/prebulit_tools/prefix/bin
ln -s ~/gnu-mcu-eclipse/riscv-none-gcc/7.2.0-2-20180111-2230/bin/* .
cd ~/e200_opensource/riscv-tools
./bulid-e200-spike-rvtests.sh
本篇完,感谢关注:RISC-V单片机中文网

页: [1]
查看完整版本: RISC-V编译ISA自测试用例