[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
posted @ 2021-11-13 12:32  herrhu  阅读(45)  评论(0编辑  收藏  举报