这篇文章对应MIT_OS 6.S081官方计划的工具准备篇https://pdos.csail.mit.edu/6.828/2019/tools.html,万事开头难,记录好搭环境的每一步
下载riscv-gnu-toolchain
-
安装virtualBox和unbuntu,我安装的是virtualBox 6.0.10, unbuntu 是14.04 版本
-
下载一些安装包进行工具链的编译:
$ sudo apt-get install autoconf automake autotools-dev curl libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev -
下载riscv gun工具链
正常版本 github,但是我老下载出错,所以采用码云进行下载,下载速度更快,我主要用它,这里可以多开几个tab页一块下载,但注意都在riscv-gnu-toolchain路径下进行,如下所示:$ git clone https://gitee.com/mirrors/riscv-gnu-toolchain $ cd riscv-gnu-toolchain $ git clone --recursive https://gitee.com/mirrors/qemu.git $ git clone --recursive https://gitee.com/mirrors/riscv-newlib.git $ git clone --recursive https://gitee.com/mirrors/riscv-binutils-gdb.git $ git clone --recursive https://gitee.com/mirrors/


3963

被折叠的 条评论
为什么被折叠?



