
# Change these according to your paths and environment 

base_dir=/home/user/KVM/SOLARIS-aarch64
qemu_cmd=/usr/local/bin/qemu-system-aarch64
disk_img=${base_dir}/disk.img
flash_bin=${base_dir}/flash.bin
inetboot_bin=${base_dir}/inetboot.bin 

${qemu_cmd} -nographic -machine virt,secure=on -m 3G -smp 2\
	-cpu cortex-a53 \
	-bios ${flash_bin} \
	-device loader,file=${inetboot_bin},addr=0x40100000 \
	-append "-D /virtio_mmio@a003c00" \
	-netdev bridge,id=net0,br=br0 \
	-device virtio-net-device,netdev=net0,mac=52:54:00:70:0a:e4 \
	-device virtio-blk-device,drive=hd0 \
	-drive file=${disk_img},format=raw,id=hd0,if=none \
	-semihosting-config enable,target=native 
