Trying to run freebsd on qemu

ashish ashish ashishashish7440 at gmail.com
Thu Mar 14 15:18:56 UTC 2024


I am trying to run freebsd aarch64 12.x on qemu to know whether freebsd
supports usb or not. following
https://gist.github.com/ctsrc/a1f57933a2cde9abc0f07be12889f97f and getting
error when running with qemu
command i am using to build is

qemu-system-aarch64 \
                                    -M virt \
                                    -smp 4 \
                                    -m 4096 \
                                    -drive
file=pflash0.img,format=raw,if=pflash,readonly=on \
                                    -drive
file=pflash1.img,format=raw,if=pflash \
                                    -device virtio-gpu-pci \
                                    -display default,show-cursor=on \
                                    -device qemu-xhci \
                                    -device usb-kbd \
                                    -device usb-tablet \
                                    -device intel-hda \
                                    -device hda-duplex \
                                    -drive
file=FreeBSD-12.1-RELEASE-arm64-aarch64.raw,format=raw,if=virtio,cache=writethrough
\
                                    -nographic \
                                    -serial mon:stdio

and Error i am getting is this
```qemu-system-aarch64: device requires 67108864 bytes, block backend
provides 2097152 bytes```

does anyone tried running freebsd aarch 12 or freebsd arm 12 on qemu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20240314/f1ca32db/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ksnip_20240314-204759.png
Type: image/png
Size: 101390 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/devel/attachments/20240314/f1ca32db/attachment-0001.png>


More information about the devel mailing list