一键安装gem5环境&&下载RISCV编译器Windows中Ubuntu子系统wsl

Posted lyz_fish

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了一键安装gem5环境&&下载RISCV编译器Windows中Ubuntu子系统wsl相关的知识,希望对你有一定的参考价值。

  • environment deployment
cd /mnt/

sudo apt-get update

sudo apt install build-essential git m4 scons zlib1g zlib1g-dev libprotobuf-dev protobuf-compiler libprotoc-dev libgoogle-perftools-dev python-dev python

sudo apt install git

sudo apt install build-essential

sudo apt install scons

sudo apt install python3-dev

sudo apt install libprotobuf-dev protobuf-compiler libgoogle-perftools-dev

sudo apt install libboost-all-dev

sudo apt install python3-pip

sudo git clone https://gitee.com/lizeyujack/gem5.git

cd /mnt/gem5

sudo python3 `which scons` build/X86/gem5.opt -j3
sudo python3 `which scons` build/ARM/gem5.opt -j3
sudo python3 `which scons` build/RISCV/gem5.opt -j3
  • download RISCV in wsl (windows-ubuntu-16.0)
cd $HOME
mkdir riscv
mkdir source-code
cd source-code

sudo git clone https://gitee.com/lizeyujack/riscv-gnu-toolchain.git
cd riscv-gnu-toolchain

rm -rf riscv-*

sudo git clone https://gitee.com/mirrors/riscv-dejagnu.git
sudo git clone -b riscv-gcc-10.2.0 https://gitee.com/woshinieao/riscv-gcc.git
sudo git clone -b riscv-glibc-2.29 https://gitee.com/mirrors/riscv-glibc.git
sudo git clone https://gitee.com/mirrors/riscv-newlib.git

sudo git clone -b riscv-binutils-2.35 https://gitee.com/mirrors/riscv-binutils-gdb.git  riscv-binutils
sudo git clone -b fsf-gdb-10.1-with-sim https://gitee.com/mirrors/riscv-binutils-gdb.git riscv-gdb


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
sudo apt-get install libnewlib-dev

NSTALL_PATH='/opt/riscv'
NUM_CPU=2

export PATH=$PATH:$INSTALL_PATH/BIN
sudo ./configure --prefix=$INSTALL_PATH
sudo make -j$NUM_CPU

以上是关于一键安装gem5环境&&下载RISCV编译器Windows中Ubuntu子系统wsl的主要内容,如果未能解决你的问题,请参考以下文章

Linux下一键安装Python3&更改镜像源&虚拟环境管理技巧

LinuxLNMP环境Nginx服务器

linux LNMP一键安装

PHP一键集成环境phpStudy最新版安装包分享

搭建Aira2实现个人离线下载

rsync客户端一键安装rsync脚本(非源码)