不想搭建编译环境的懒人,不用虚拟机部署Risc-V 开发环境

github: GitHub - hongwenjun/qucheng: 渠成开源社区以解决开源实际问题为宗旨,打造以开源软件为核心的开源生态系统

这个方便不想搭建编译环境的懒人,编译后也能在开发板上点灯

视频 学习RISCV汇编不用虚拟机也不用开发板也可以学

11

渠成开源社 Demo中心-code-server

快速部署命令

git clone https://github.com/hongwenjun/qucheng.git
source ./qucheng/install.sh

code-server

使用 渠成开源社区 Demo中心code-server 学习 Risc-V GCC 交叉编译

1. 下载 wget 和 make 工具,和添加环境变量


git clone https://github.com/hongwenjun/qucheng.git

  • 添加环境变量

chmod +x ~/workspace/qucheng/busybox

chmod +x ~/workspace/qucheng/make

export PATH="$PATH:~/workspace/qucheng"

alias wget="busybox wget"

2. 下载 Milk-V Duo Examples 和 部署 GCC 交叉编译工具链

  • 本工程提供了在Linux环境下使用C/C++开发应用的一些例子,可以在Milk-V Duo设备上运行
git clone https://github.com/milkv-duo/duo-examples.git
  • 加载编译环境
cd duo-examples
source envsetup.sh
  • 添加环境变量
export PATH="$PATH:/config/workspace/duo-examples/duo-sdk/riscv64-linux-musl-x86_64/bin"
alias gcc=riscv64-unknown-linux-musl-gcc
alias objdump=riscv64-unknown-linux-musl-objdump