Jonathan,
thanks a lot for your advice with Qemu. I've used EDK2 way and was able
to install openbsd 6.2-current right from the distributed miniroot62.fs
It all looked very promising, but once I booted to the installed OBSD
I've seen several crashes. Mainly perl related. Perl crashes also
affects pkg_* tools.
Anyway my main aim was to test speed using nbench2 benchmark which I'm
using since it gives me a good idea about
how machine will be fast in compilation. The problem was that clang c
compiler got into infinite loop while compiling one file (nbech1.c).
When I lowered opt level from -O3 to -O2 I've been able to get nbench
binary, but this sometime segfaults and sometimes runs few benchmarks
and then ends in infinite loop too. Since I don't have any actual arm64
hardware here capable of running the same OBSD I can't claim if the issues
are caused by Qemu or by OBSD imaturity on the platform.
So it looks like hardware way is probably better here but I'm very glad
to gain this experience doing experiments myself. Thanks for your
support on this.
Karel
# install command
qemu-system-aarch64 -M virt -serial stdio -cpu cortex-a57 -m 2G -bios
QEMU_EFI.fd -device virtio-rng-device -device
virtio-blk-device,drive=image -drive
if=none,id=image,file=miniroot62.fs,format=raw -device
virtio-blk-device,drive=root -drive
if=none,id=root,file=root.qcow2,format=qcow2 -device
virtio-net-device,netdev=user0 -netdev user,id=user0 -redir tcp:2222::22
# run installed OS command
qemu-system-aarch64 -M virt -serial stdio -cpu cortex-a57 -m 2G -bios
QEMU_EFI.fd -device virtio-rng-device -device
virtio-blk-device,drive=root -drive
if=none,id=root,file=root.qcow2,format=qcow2 -device
virtio-net-device,netdev=user0 -netdev user,id=user0 -redir tcp:2222::22
On 01/13/18 07:26, Jonathan Gray wrote:
# qemu_arm64_edk2.sh
doas sh -c "qemu-system-aarch64 -runas $USER \
-m 2048 \
-M virt -serial stdio \
-cpu cortex-a57 \
-bios QEMU_EFI.fd \
-device virtio-rng-device \
-netdev tap,id=net0 -device virtio-net-device,netdev=net0 \
-drive file=root.qcow2,if=none,id=drive0,format=qcow2 \
-device virtio-blk-device,drive=drive0"