On Fri, 11 Jan 2019, Jonathan Gray wrote:
> Assuming a qcow2 image created by something along the lines of
> 'qemu-img create -f qcow2 root.qcow2 2g' miniroot64.fs from an arm64
> snapshot and u-boot for qemu_arm64 from the u-boot-aarch64 package:
> 
> doas sh -c "qemu-system-aarch64 -runas $USER \
>       -M virt -serial stdio -m 1024 -cpu cortex-a57 \
>       -bios /usr/local/share/u-boot/qemu_arm64/u-boot.bin \
>       -device virtio-rng-device -netdev tap,id=net0 \
>       -device virtio-net-device,netdev=net0 \
>       -drive file=miniroot64.fs,if=none,id=drive0,format=raw \
>       -drive file=root.qcow2,if=none,id=drive1,format=qcow2 \
>       -device ich9-ahci,id=ahci \
>       -device ide-drive,drive=drive0,bus=ahci.0 \
>       -device ide-drive,drive=drive1,bus=ahci.1"

Thanks, that works. I had tried with some efi firmware before and not with 
u-boot.

Cheers,
Stefan

Reply via email to