chipyard 的RISCV環境的集大成者
平臺: ubuntu 16.04
資源: 代理 (源裏有的庫託管到了google)
步驟:
1. git clone https://github.com/ucb-bar/chipyard.git
2. 運行scripts/ubuntu-req.sh 保證依賴庫完整
這裏如果python3.6 無法安裝,可以跳過,直接用python3.5也是可以的。
3. 設置git 的代理
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
127.0.0.1:1080 是代理的地址和端口
取消的話可以用下面的語句
git config --global --unset http.proxy
git config --global --unset https.proxy
4. 解決git 無法pull 某些庫的問題。
一般錯誤提示爲:gnutls_handshake() failed: Error in the pull function
安裝如下包可以解決相應問題
apt-get -y install build-essential nghttp2 libnghttp2-dev libssl-dev
5. 後面安裝正常流程就可以了
cd chipyard ./scripts/init-submodules-no-riscv-tools.sh ./scripts/build-toolchains.sh riscv-tools # for a normal risc-v toolchain source ./env.sh