开发环境根据以下教程搭建
http://bbs.ai-thinker.com/forum.php?mod=viewthread&tid=282&extra=page%3D2&_dsign=7fea3002
第一步:克隆源码
- git clone https://gitee.com/Ai-Thinker-Open/AiPi-Open-Kits.git
复制代码
第二步:拉取M61的SDK子模块
拉取之前修改.gitmodules文件中github.com改成gitee.com
在命令行执行
- cd AiPi-Open-Kits/
- git submodule init
- git submodule update
复制代码
第三步:拉取M61SDK中的子模块
- cd aithinker_Ai-M6X_SDK/
- git submodule init
- git submodule update
复制代码
克隆适用Windows的编译工具链
- git clone https://gitee.com/bouffalolab/toolchain_gcc_t-head_windows.git
复制代码
第四步:编译工具路径设置
- aithinker_Ai-M6X_SDK\toolchain_gcc_t-head_windows\bin
- aithinker_Ai-M6X_SDK\tools\make
- aithinker_Ai-M6X_SDK\tools\ninja
复制代码 将三个路径加载到电脑的环境变量中
make放在最上层
第五步:验证
- make -v
- riscv64-unknown-elf-gcc -v
复制代码 运行中分别输入以上代码后输出以下信息:
这样环境就搭建完成了!
|