#!/bin/sh
TEST_IMAGE=fedora-disk-minimal-sda.raw

sudo qemu-system-riscv64 \
-smp 8 -m 2G  -machine virt -nographic \
-bios fw_dynamic.bin \
-kernel u-boot.bin \
-device virtio-blk-device,drive=hd0 \
-drive file=${TEST_IMAGE},format=raw,id=hd0 \
-object rng-random,filename=/dev/urandom,id=rng0 \
-device virtio-rng-device,rng=rng0 \
-device virtio-net-device,netdev=usernet \
-netdev tap,id=usernet,ifname=tap0,script=no,downscript=no \
-serial telnet:localhost:7000,server
