Skip to contentSkip to conversation

OpenBSD/macppc and sparc64 failing to boot with similar error.

Qemu-devel Brad 2 participants 3 messages Aug 1, 2011 – Aug 3, 2011

lore
Share & tools
lore

Brad

author
#0 lore raw

I know sparc64 had little chance of actually working but I thought I'd take it for a spin with 0.15.0-rc1 and see how it fared in addition to macppc which has a good chance of working nowdays with modern QEMU. Lets see what QEMU and related bugs are left..

I noticed the bootblocks for each respective arch are failing in a very similar manner. I would guess that this is most likely a bug with the OpenBIOS Open Firmware implementation?

Any assistance with this? Blue?

$ qemu-system-ppc -nographic -cdrom cd50.iso -boot d      
Quoted 7 lines
Quoted 7 lines

=============================================================
OpenBIOS 1.0 [Jun 16 2011 08:02] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,750

Welcome to OpenBIOS v1.0 built on Jun 16 2011 08:02 Trying cd:,\\:tbxi...

Quoted 1 line
Quoted 1 line

OpenBSD/macppc BOOT 1.1

open(cd:/etc/boot.conf): Unknown error: code 24 boot> ?

$ qemu-system-sparc64 -nographic -cdrom cd50.iso -boot d
OpenBIOS for Sparc64
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.0 built on Jul 20 2011 21:17
  Type 'help' for detailed information
Trying cdrom:f...
Not a bootable ELF image
Not a bootable a.out image

Loading FCode image...
Loaded 4829 bytes
entry point is 0x4000
OpenBSD IEEE 1275 Bootblock 1.3
..
Jumping to entry point 0000000000100000 for type 0000000000000001... switching to new context: entry point 0x100000 stack 0x00000000ffe86b49

Quoted 1 line
Quoted 1 line

OpenBSD BOOT 1.4

Trying bsd...
open ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????: Unknown error: code 24

Boot:

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#1 lore raw
Quoted 49 lines · Brad

I know sparc64 had little chance of actually working but I thought I'd take it for a spin with 0.15.0-rc1 and see how it fared in addition to macppc which has a good chance of working nowdays with modern QEMU. Lets see what QEMU and related bugs are left..

I noticed the bootblocks for each respective arch are failing in a very similar manner. I would guess that this is most likely a bug with the OpenBIOS Open Firmware implementation?

Any assistance with this? Blue?

$ qemu-system-ppc -nographic -cdrom cd50.iso -boot d
Quoted 7 lines
Quoted 7 lines

=============================================================
OpenBIOS 1.0 [Jun 16 2011 08:02] Configuration device id QEMU version 1 machine id 2
CPUs: 1
Memory: 128M
UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,750

Welcome to OpenBIOS v1.0 built on Jun 16 2011 08:02 Trying cd:,\\:tbxi...

Quoted 1 line
Quoted 1 line

OpenBSD/macppc BOOT 1.1

open(cd:/etc/boot.conf): Unknown error: code 24
boot> ?

$ qemu-system-sparc64 -nographic -cdrom cd50.iso -boot d
OpenBIOS for Sparc64
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.0 built on Jul 20 2011 21:17
 Type 'help' for detailed information
Trying cdrom:f...
Not a bootable ELF image
Not a bootable a.out image

Loading FCode image...
Loaded 4829 bytes
entry point is 0x4000
OpenBSD IEEE 1275 Bootblock 1.3
..
Jumping to entry point 0000000000100000 for type 0000000000000001... switching to new context: entry point 0x100000 stack 0x00000000ffe86b49

Quoted 5 lines
Quoted 1 line
Quoted 1 line

OpenBSD BOOT 1.4

Trying bsd...
open ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????: Unknown error: code 24

Boot:

I get this with OpenBSD 4.3:
OpenBIOS for Sparc64
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.0 built on Jul 20 2011 21:17
Type 'help' for detailed information
Trying cdrom:f...
Not a bootable ELF image
Not a bootable a.out image

Loading FCode image...
Loaded 4893 bytes
entry point is 0x4000
OpenBSD IEEE 1275 Bootblock 1.1
..
Jumping to entry point 0000000000800000 for type 0000000000000001... switching to new context: entry point 0x800000 stack 0x00000000ffe86b49

Quoted 1 line
Quoted 1 line

OpenBSD BOOT 1.2

Trying bsd...
Booting cdrom:f/bsd 2590536@0x1000000+3236576@0x1800000+957728@0x1b162e0 symbols @ 0xffcda1c0 36 start=0x1000000
CHAINprom_get_msgbuf: test failed
prom_get_msgbuf: allocated new buf at 00000000
prom_get_msgbuf: claiming new buf at 00000000

author
#2 lore raw
Quoted 7 lines · Blue Swirl
Quoted 6 lines · Brad

I know sparc64 had little chance of actually working but I thought I'd take it for a spin with 0.15.0-rc1 and see how it fared in addition to macppc which has a good chance of working nowdays with modern QEMU. Lets see what QEMU and related bugs are left..

Quoted 6 lines
Quoted 6 lines

I noticed the bootblocks for each respective arch are failing in a very similar manner. I would guess that this is most likely a bug with the OpenBIOS Open Firmware implementation?

Any assistance with this? Blue?

After a little playing around I have found this is definitely a bug in QEMU. Turning on the OpenBSD malloc S flag which is what I run on all of my systems triggered this behavior in QEMU and trying to narrow it down further since S is a combination of other flags I found it was the J flag specifically that is triggering this behavior.

From malloc(3)..

J ``Junk''. Fill some junk into the area allocated.
Currently junk is bytes of 0xd0 when allocating; this is pronounced ``Duh''. :-) Freed chunks are filled with 0xdf.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.