Last active
April 9, 2023 16:49
-
-
Save tufei/b8168414fc131d41978991926899f1fc to your computer and use it in GitHub Desktop.
QEMU riscv64 Fedora command line
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
qemu-system-riscv64 -nographic -machine virt \ | |
-cpu rv64,v=on,vlen=256,elen=64,vext_spec=v1.0 -smp 8 -m 8G \ | |
-kernel ~/Sandbox/Fedora-Developer-Rawhide-20200108.n.0-fw_payload-uboot-qemu-virt-smode.elf \ | |
-object rng-random,filename=/dev/urandom,id=rng0 -device virtio-rng-device,rng=rng0 \ | |
-device virtio-blk-device,drive=hd0 \ | |
-drive file=~/Sandbox/Fedora-Developer-Rawhide-20200108.n.0-20G.raw,format=raw,id=hd0 \ | |
-device virtio-net-device,netdev=usernet \ | |
-netdev user,id=usernet,hostfwd=tcp::10000-:22 -bios none |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment