发帖
6 2 0

第二篇-小安派s1博流开发环境搭建

Ject
金牌会员

13

主题

119

回帖

1385

积分

金牌会员

积分
1385
按照教程
  1. $ cd ~
  2. $ 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 缓存,无效
  1. git config --global http.postBuffer 1048576000
  2. git config --global https.postBuffer 1048576000
复制代码


stackoverflow建议git卸载重新装 无效
https://stackoverflow.com/questi ... redirect=1&lq=1


最终改成拉gitee的库
  1. git clone https://gitee.com/bouffalolab/bouffalo_sdk.git
复制代码


下载工具链

  1. $ git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_linux.git
复制代码


复制到bin目录下
  1. sudo cp -rf toolchain_gcc_t-head_linux/ /usr/bin
复制代码

如果已切换到root,就不用sudo

  1. su root
复制代码

输入密码
切换到root

  1. echo "export PATH="$PATH:/usr/bin/toolchain_gcc_t-head_linux/bin""  >> ~/.bashrc
复制代码


>> 表示在 ~/.bashrc 文末添加这一行内容

  1. source ~/.bashrc
复制代码


用于在当前 shell 会话中重新加载 ~/.bashrc 文件

安装make
  1. $ cd ~
  2. $ sudo apt install make -y
复制代码


安装ninja
  1. $ cd ~
  2. $ sudo apt install ninja-build -y
复制代码



查看有没有安装成功
  1. make -v
复制代码


查看是否有make的版本信息

查看编译链是否安装成功,是否有版本信息
  1. $ riscv64-unknown-elf-gcc -v
复制代码


如果提示没有这跟命令,确认一下环境变量有没有装好

进入helloword目录make
  1. $ cd examples/helloworld
  2. $ 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

──── 2人觉得很赞 ────

使用道具 举报

2023-9-1 09:43:55
优秀啊杰哥!
2023-9-12 21:02:17
本帖最后由 Ject 于 2023-9-12 21:03 编辑

wsl2 一次成功


微信图片_20230912211622.png
2023-9-26 22:07:23
github好像有时能用有时不行
2023-9-28 15:05:47
lsrly 发表于 2023-9-26 22:07
github好像有时能用有时不行

如果网不好,就只能gitee
2023-9-30 19:41:54
杰神优秀啊
您需要登录后才可以回帖 立即登录
高级模式
返回
统计信息
  • 会员数: 28811 个
  • 话题数: 41168 篇