按照教程
- $ cd ~
- $ git clone https://github.com/bouffalolab/bouffalo_sdk.git #
复制代码
github拉不下来
提示
remote: Enumerating objects: 31151, done.
remote: Counting objects: 100% (3299/3299), done.
remote: Compressing objects: 100% (2096/2096), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): Error decoding the received TLS packet.
error: 5406 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
使用了魔法都拉不下来
newbing简易修改git 缓存,无效
- git config --global http.postBuffer 1048576000
- git config --global https.postBuffer 1048576000
复制代码
stackoverflow建议git卸载重新装 无效
https://stackoverflow.com/questi ... redirect=1&lq=1
最终改成拉gitee的库
- git clone https://gitee.com/bouffalolab/bouffalo_sdk.git
复制代码
下载工具链
- $ git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_linux.git
复制代码
复制到bin目录下
- sudo cp -rf toolchain_gcc_t-head_linux/ /usr/bin
复制代码
如果已切换到root,就不用sudo
输入密码
切换到root
- echo "export PATH="$PATH:/usr/bin/toolchain_gcc_t-head_linux/bin"" >> ~/.bashrc
复制代码
>> 表示在 ~/.bashrc 文末添加这一行内容
用于在当前 shell 会话中重新加载 ~/.bashrc 文件
安装make
- $ cd ~
- $ sudo apt install make -y
复制代码
安装ninja
- $ cd ~
- $ sudo apt install ninja-build -y
复制代码
查看有没有安装成功
查看是否有make的版本信息
查看编译链是否安装成功,是否有版本信息
- $ riscv64-unknown-elf-gcc -v
复制代码
如果提示没有这跟命令,确认一下环境变量有没有装好
进入helloword目录make
- $ cd examples/helloworld
- $ make CHIP=chip_name BOARD=board_name
复制代码
提示成功
版权声明:
参考链接
1、https://bl-mcu-sdk.readthedocs.i ... _started.html#linux
2、https://stackoverflow.com/questi ... redirect=1&lq=1
|