On 24/10/2024 21:02, Miod Vallat wrote:
6.2-6.9 install and boot fine. 7.0 will neither boot bsd.rd nor bsd. 7.1 had
trouble installing but booted, 7.2 installs and boots fine. From 7.3 upwards
bsd.rd boots and you can install but bsd will not boot and the emulator
crashes. People on #openbsd over on Libera have confirmed 7.6 boots just
fine so this is just an emulator problem and it is being reported to the
folks at qemu. I know this isn't a target of the sparc64 support. I did try
a snapshot and had the same result.
I am extremely surprised by your results, because the failure message
you are showing shows that the Open Firmware implementation provided by
qemu is incomplete, and as such is not able to fulfill the requirements
of the OpenBSD kernel (except for installation media), and the failure
ought to be the same regardless of the OpenBSD version being tested.
So the root cause might be different, with something the OpenBSD kernel
causing Open Firmware to clobber some of its own memory. Who knows.
Since OpenBSD runs on real hardware, that's something for the qemu
people to fix, there isn't much which can be done on the OpenBSD side of
things.
I just noticed I hadn't included the full machine initialization, here
it is:
7.2:
Connected.
Configuration device id QEMU version 1 machine id 0
kernel cmdline
CPUs: 1 x SUNW,UltraSPARC-IIi
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Sep 10 2024 17:35
Type 'help' for detailed information
Trying disk:a...
Not a bootable ELF image
Not a bootable a.out image
Loading FCode image...
Loaded 6888 bytes
entry point is 0x4000
Evaluating FCode...
OpenBSD IEEE 1275 Bootblock 2.1
..>> OpenBSD BOOT 1.24
Trying bsd...
Booting /pci@1fe,0/pci@1,1/ide@3/ide@0/disk@0:a/bsd
10090520@0x1000000+2024@0x199f818+147316@0x1c00000+4046988@0x1c23f74
symbols @ 0xfedce400 484237+165+657648+454939 start=0x1000000
[ using 1598024 bytes of bsd ELF symbol table ]
Unimplemented service set-symbol-lookup ([2] -- [0])
console is /pci@1fe,0/pci@1,1/ebus@1/su
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2022 OpenBSD. All rights reserved.
https://www.OpenBSD.org
OpenBSD 7.2 (GENERIC) #1425: Tue Sep 27 15:20:59 MDT 2022
dera...@sparc64.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC
And 7.6-current:
Connected.
Configuration device id QEMU version 1 machine id 0
kernel cmdline
CPUs: 1 x SUNW,UltraSPARC-IIi
UUID: 00000000-0000-0000-0000-000000000000
Welcome to OpenBIOS v1.1 built on Sep 10 2024 17:35
Type 'help' for detailed information
Trying disk:a...
Not a bootable ELF image
Not a bootable a.out image
Loading FCode image...
Loaded 6888 bytes
entry point is 0x4000
Evaluating FCode...
OpenBSD IEEE 1275 Bootblock 2.1
..>> OpenBSD BOOT 1.28
Trying bsd...
Booting /pci@1fe,0/pci@1,1/ide@3/ide@0/disk@0:a/bsd
10141152@0x1000000+544@0x19abde0+148092@0x1c00000+4046212@0x1c2427c
symbols @ 0xfedc4400 501766+165+672024+468463 start=0x1000000
[ using 1643448 bytes of bsd ELF symbol table ]
Unimplemented service set-symbol-lookup ([2] -- [0])
Unhandled Exception 0x0000000000000030
PC = 0x00000000016231dc NPC =
0x00000000016231e0
Stopping execution
Yes I guess it's up to Qemu people to fix this. It is quite surprising.
Cheers,
Noth