Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChinYikMing/d804dcc94a890ba561e045ac9695b743 to your computer and use it in GitHub Desktop.
Save ChinYikMing/d804dcc94a890ba561e045ac9695b743 to your computer and use it in GitHub Desktop.
Prebuild 64-bit RISC-V toolchain and QEMU environment for xv6
FROM ubuntu:22.04
RUN apt-get update
RUN apt-get install git vim zip wget -y
RUN apt-get install autoconf automake autotools-dev curl python3 python3-pip libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev libslirp-dev -y
RUN wget https://github.com/riscv-collab/riscv-gnu-toolchain/releases/download/2024.04.12/riscv64-elf-ubuntu-20.04-gcc-nightly-2024.04.12-nightly.tar.gz && tar -xvf riscv64-elf-ubuntu-20.04-gcc-nightly-2024.04.12-nightly.tar.gz && cp riscv/bin/* /usr/bin
RUN apt-get install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment