riscv-emulator-docker-image
No description available.
File Explorer
Download Latest Version (.zip)- .gitattributes
- Dockerfile
- LICENSE
- README.md
- ssh-riscv-cpu.png
# Installation Guide
1. Get the code
git clone https://github.com/DavidBurela/riscv-emulator-docker-image
Downloads the entire project code from GitHub to your computer.
cd riscv-emulator-docker-image
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker pull davidburela/riscv-emulator
Type this command into your terminal and run it.
docker build -t davidburela/riscv-emulator .
Builds a runnable image based on the Dockerfile.
docker run -d --publish 127.0.0.1:2222:2222/tcp davidburela/riscv-emulator
Runs the built image as an actual container.
docker run -d --publish 127.0.0.1:2222:2222/tcp davidburela/riscv-emulator qemu-system-riscv64 -smp AAAA -m BBBB -cpu rv64 -nographic -machine virt -kernel /usr/lib/u-boot/qemu-riscv64_smode/uboot.elf -device virtio-blk-device,drive=hd -drive file=dqib_riscv64-virt/image.qcow2,if=none,id=hd -device virtio-net-device,netdev=net -netdev user,id=net,hostfwd=tcp::2222-:22 -object rng-random,filename=/dev/urandom,id=rng -device virtio-rng-device,rng=rng -append "root=LABEL=rootfs console=ttyS0"
Runs the built image as an actual container.
registries = [ 'docker.io', 'quay.io' ]
Type this command into your terminal and run it.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
