Monday, August 31, 2026

Re: emulators/qemu: update to 11.1.1 and backports bit to run OpenBSD/macppc

On Sun, 30 Aug 2026 21:02:59 +0200, yaydn@protonmail.com wrote: > > På lørdag 29. august 2026 kl. 22:42, skrev Kirill A. Korinsky > <kirill@korins.ky>: > > > Bard, ports@, > > > > I'd like to update qemu to 11.1.1 and backport a patch which allows me to > > run OpenBSD/macppc in mac99 machine. > > > > To boot from FAT volume it needs a few patches to OpenBIOS as well: > > > > https://github.com/catap/openbios/commit/e61a69213260e7eae8bef4a8ef0ce5c0b0f6be8a.patch > > https://github.com/catap/openbios/commit/d14f3c85b567048f0c756b7b030427245416e23d.patch > > https://github.com/catap/openbios/commit/c05a3d608e452276045e7ec8804a235f8e710e5f.patch > > https://github.com/catap/openbios/commit/06bd9d43e0755027cad82ba165cb3d2fdd3137a9.patch > > https://github.com/catap/openbios/commit/d8d459af79ae177dd167be3909ef6f0fab91a563.patch > > https://github.com/catap/openbios/commit/ba2f9b93d4a157f6d29df606ec4abf6f605e7187.patch > > > > which was sent to upstream and can be downloaded as prebuilt elf here: > > https://github.com/catap/obsd.sh/raw/faed05a1364c0b0b96d97afa51846ac78ac4150f/openbios-ppc-obsd-ba2f9b9.elf > > > > The machine and update was tested by building gcc for days, quite stable. > > The patch includes tests to match everything that was send to upstream. > > > > Ok? > > > > Here is what I got from tests and checks no current/amd64 with privsep. > > Summary of Failures: > > 927/1098 block - qemu:io-qcow2-040 TIMEOUT 300.04s killed by signal 15 SIGTERM > 928/1098 block - qemu:io-qcow2-041 TIMEOUT 300.04s killed by signal 15 SIGTERM > > Ok: 876 > Fail: 0 > Skipped: 220 > Timeout: 2 > > Full log written to /usr/ports/pobj/qemu-11.1.1/build-amd64/meson-logs/testlog.txt > gmake: *** [Makefile.mtest:26: do-meson-check] Error 1 > *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3114 '/usr/ports/pobj/qemu-11.1.1/build-amd64/.test_done': @cd /usr/ports/pobj/qe...) > *** Error 2 in /usr/ports/emulators/qemu (/usr/ports/infrastructure/mk/bsd.port.mk:2722 'test': @lock=qemu-11.1.1; export _LOCKS_HELD=" qem...) > > qemu-ga-11.1.1(emulators/qemu,-ga): > Missing: pixman-1.46 (/usr/local/bin/qemu-ga) (system lib) > WANTLIB-ga += pixman-1 > *** Error 1 in target 'port-lib-depends-check' (ignored) > -- > > Is this expected for tests or WANTLIB? Apologies if this is superfluous. > > Otherwise updates nicely on current/amd64? Maybe someone with > aarch64 and sparc64 devices can attest for those architectures before > a bulk build? > > Tested with: > // Boot in EFI with install media > > qemu-system-x86_64 -cpu core2duo -smp 2 -m 1024 -vga virtio -display sdl -drive file=install80.iso,index=0 -drive if=pflash,format=raw,unit=0,readonly=on,file=/usr/local/share/qemu/edk2-x86_64-code.fd > > // Boot in EFI with install media and passthrough drive sd9 > > qemu-system-x86_64 -cpu core2duo -smp 2 -m 1024 -vga virtio -display sdl -drive file=install80.iso,index=0 -drive file=/dev/rsd9c,index=1,format=raw -drive if=pflash,format=raw,unit=0,readonly=on,file=/usr/local/share/qemu/edk2-x86_64-code.fd > > It worked, giving me sdl2 gui. > > Hope this helps and may you have a good one. Happy hacking! Thanks for testing it. I had build it by arm64 as well. Regarding pixman-1, yes, it looks like indeed missed WANTLIB thanks to catch it, and make tests... I can't reproduce it, but timeout means what you may run it on slower or overload machine. -- wbr, Kirill

No comments:

Post a Comment