Hello,

  I have tested all versions of OpenBSD/sparc64 since 6.2 on qemu-system-sparc64 (qemu 8.5 and 9.0.2 used for this) with the following syntax:

qemu-system-sparc64 -machine sun4u,usb=off  -smp 1,sockets=1,cores=1,threads=1  -rtc base=utc  -m 1024 -drive file=fs.qcow2,if=none,id=drive-ide0-0-1,format=qcow2,cache=none -cdrom ./iso/install76.iso -device ide-hd,bus=ide.0,unit=0,drive=drive-ide0-0-1,id=ide0-0-1 -msg timestamp=on  -serial pty -net nic,model=ne2k_pci -net user -boot c -nographic

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.

Here is the result when booting the installed snapshot:


$ cu -l /dev/pts/16 -s 9600
Connected.
+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


and with 7.2:


$ cu -l /dev/pts/16 -s 9600
Connected.
..>> 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
real mem = 1073741824 (1024MB)
avail mem = 1036795904 (988MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root: OpenBiosTeam,OpenBIOS
cpu0 at mainbus0: SUNW,UltraSPARC-IIi (rev 9.1) @ 100 MHz
cpu0: physical 256K instruction (64 b/l), 16K data (32 b/l), 256K external (64 b/l)
psycho0 at mainbus0: SUNW,sabre, impl 0, version 0, ign 7c0
psycho0: bus range 0-2, PCI bus 0
psycho0: dvma map c0000000-dfffffff
pci0 at psycho0
ppb0 at pci0 dev 1 function 1 "Sun Simba" rev 0x11
pci1 at ppb0 bus 1
ebus0 at pci1 dev 1 function 0 "Sun PCIO EBus2" rev 0x01
clock1 at ebus0 addr 2000-3fff: mk48t59
power0 at ebus0 addr 7240-7243 ivec 0x1
"fdthree" at ebus0 addr 0-ffffffff not configured
com0 at ebus0 addr 3f8-3ff ivec 0x2b: ns16550a, 16 byte fifo
com0: console
pckbc0 at ebus0 addr 60-67 ivec 0x29
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0 mux 1
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
"Bochs VGA" rev 0x02 at pci1 dev 2 function 0 not configured
pciide0 at pci1 dev 3 function 0 "CMD Technology PCI0646" rev 0x07: DMA, channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x7e0 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <QEMU HARDDISK>
wd0: 16-sector PIO, LBA48, 5120MB, 10485760 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <QEMU, QEMU DVD-ROM, 2.5+> removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
ppb1 at pci0 dev 1 function 0 "Sun Simba" rev 0x11
pci2 at ppb1 bus 2
ne0 at pci2 dev 0 function 0 "Realtek 8029" rev 0x00: ivec 0x7d0, address 52:54:00:12:34:56
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
bootpath: /pci@1fe,0/pci@1,1/ide@3,0/ide@0,0/disk@0,0
root device: wd0
swap device (default wd0b):
root on wd0a swap on wd0b dump on wd0b
Automatic boot in progress: starting file system checks.
/dev/wd0a (1508843ab0431e4a.a): file system is clean; not checking
/dev/wd0e (1508843ab0431e4a.e): file system is clean; not checking
/dev/wd0d (1508843ab0431e4a.d): file system is clean; not checking
pf enabled
starting network
reordering libraries: done.
starting early daemons: syslogd pflogd ntpd.
starting RPC daemons:.
savecore: no core dump
checking quotas: done.
clearing /tmp
kern.securelevel: 0 -> 1
creating runtime link editor directory cache.
preserving editor files.
starting network daemons: smtpd sndiod.
rdate: casper: no address associated with name
starting local daemons: cron.
Thu Oct 24 04:28:55 CEST 2024

Please CC me, I'm not subscribed to the bugs@ list. Hope this helps in some way,

Cheers,

Noth

Reply via email to