安装risc-v的tool chain

本文档详细介绍了在Ubuntu环境下安装RISC-V Tool Chain的步骤,包括获取rocket-chip和riscv-tools源码、安装依赖、配置环境变量、解决GCC版本问题,以及测试和生成Verilog相关文件的过程。
摘要由CSDN通过智能技术生成

官方教程:

https://github.com/freechipsproject/rocket-chip

https://github.com/riscv/riscv-tools

 

1、使用ubuntu,且GCC版本>=4.8 

用了一天的centos安装,各种出错,乖乖用官方推荐的Ubuntu。

2、在/home/xj(自己决定)下面执行下列步骤:

$ git clone https://github.com/ucb-bar/rocket-chip.git $ cd rocket-chip $ git submodule update --init

3、安装相关工具:

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

4、

$ cd rocket-chip/riscv-tools $ git submodule update --init --recursive

(执行这步的时候,注意如果出现fatal、error等,删除所有文件,回到第2步重来) $ export RISCV=/home/xj/rocket-chip/riscv-tools/riscv-gnu-toolchain $ export

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值