[OS]6.S081-Lab-Tools
作者:互联网
Tools
My Environment
❯ uname -a
Linux VM-4-11-ubuntu 5.4.0-77-generic #86-Ubuntu SMP Thu Jun 17 02:35:03 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Installing via APT (Debian/Ubuntu)
Install
sudo apt-get install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu
sudo apt-get remove qemu-system-misc
sudo apt-get install qemu-system-misc=1:4.2-3ubuntu6
sudo apt-get install gcc-riscv64-unknown-elf
Test
riscv64-unknown-elf-gcc --version
qemu-system-riscv64 --version
Compile and run xv6
git clone git://github.com/mit-pdos/xv6-riscv.git
cd ./xv6-riscv
make qemu
标签:riscv64,git,S081,sudo,system,apt,qemu,OS,Tools 来源: https://www.cnblogs.com/herrhu/p/15547811.html