Skip to contentSkip to conversation

qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

Qemu-devel Jan Holzhueter 7 participants 12 messages Feb 14, 2008 – Feb 19, 2008

lore
Share & tools
lore
#0 lore raw

Hi everyone,
we are planing to get rid of some old sparc hardware.
The problem is that there are applications on it that require sun4m and Solaris 1.1.2 / SunOS 4.1.4.
As known qemu-system-sparc is not able to boot the Solaris Kernel at the moment.

I get as far as:
[sparc] Booting file 'cdrom' with parameters ''
Not a bootable ELF image
Not a Linux kernel image
Not a bootable a.out image
Not a bootable ELF image
Not a Linux kernel image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
Jumping to entry point...
checksum 60746d10 != 86693bac, trying to boot anyway Unhandled Exception 0x00000007
PC = 0x002002bc NPC = 0x002002c0
Stopping execution

My question is how far away are you form getting it to work and in what time frame could it be done?

This is a bigger project for us. So it might even be possible ( nothing confirmed yet I have to check back with some people ) to donate some money to get it to work.
It doesn't need to work for all Solaris. We just need Solaris 1.1.2. If someone needs some installation Medium or feedback let me know.

Greetings
Jan Holzhüter

Signature · 4 lines
Jan Holzhüter                       Baltic Online Computer GmbH
Firmensitz:                         Alter Markt 1-2, 24103 Kiel
http://www.baltic-online.de            Tel.: +49 (0)431 54003-0
Geschäftsführer:    Erik Cickovskis, Amtsgericht Kiel, HRB 3756
#1 lore raw
Quoted 23 lines · Jan Holzhueter

Hi everyone,
we are planing to get rid of some old sparc hardware.
The problem is that there are applications on it that require sun4m and Solaris 1.1.2 / SunOS 4.1.4.
As known qemu-system-sparc is not able to boot the Solaris Kernel at the moment.

I get as far as:
[sparc] Booting file 'cdrom' with parameters ''
Not a bootable ELF image
Not a Linux kernel image
Not a bootable a.out image
Not a bootable ELF image
Not a Linux kernel image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
Jumping to entry point...
checksum 60746d10 != 86693bac, trying to boot anyway Unhandled Exception 0x00000007
PC = 0x002002bc NPC = 0x002002c0
Stopping execution

Quoted 2 lines

My question is how far away are you form getting it to work and in what time frame could it be done?

The problem is twofold: Qemu emulates the CPU and hardware devices, OpenBIOS presents an Open Firmware interface to the kernel. The HW part is somewhat complete, though every new kernel may expose new bugs. For the OpenBIOS situation is a bit different as Solaris seems to have some kind of undocumented assumptions of the interface.

For example in your report Solaris dies because of unaligned access (trap #07). Could be a bug in OpenBIOS that Linux does not happen to trigger.

Quoted 5 lines

This is a bigger project for us. So it might even be possible ( nothing confirmed yet I have to check back with some people ) to donate some money to get it to work.
It doesn't need to work for all Solaris. We just need Solaris 1.1.2. If someone needs some installation Medium or feedback let me know.

Feedback is always appreciated. If you'd also like to debug this problem, you could compile OpenBIOS with OF interface debugging enabled.

#2 lore raw
In reply to Jan Holzhueter
Quoted 26 lines · Jan Holzhueter

Hi everyone,
we are planing to get rid of some old sparc hardware.
The problem is that there are applications on it that require sun4m and Solaris 1.1.2 / SunOS 4.1.4.
As known qemu-system-sparc is not able to boot the Solaris Kernel at the moment.

I get as far as:
[sparc] Booting file 'cdrom' with parameters ''
Not a bootable ELF image
Not a Linux kernel image
Not a bootable a.out image
Not a bootable ELF image
Not a Linux kernel image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
Jumping to entry point...
checksum 60746d10 != 86693bac, trying to boot anyway Unhandled Exception 0x00000007
PC = 0x002002bc NPC = 0x002002c0
Stopping execution

My question is how far away are you form getting it to work and in what time frame could it be done?

Quoted 10 lines

This is a bigger project for us. So it might even be possible ( nothing confirmed yet I have to check back with some people ) to donate some money to get it to work.
It doesn't need to work for all Solaris. We just need Solaris 1.1.2. If someone needs some installation Medium or feedback let me know.

Greetings
Jan Holzhüter

This may be an openbios issue. Changing openbios boot.c cdrom oldpath to sd(0,2,0):d gets past this error but it still doesn't boot.

#3 lore raw
Quoted 34 lines · Robert Reif
Quoted 32 lines · Jan Holzhueter

Hi everyone,
we are planing to get rid of some old sparc hardware.
The problem is that there are applications on it that require sun4m and Solaris 1.1.2 / SunOS 4.1.4.
As known qemu-system-sparc is not able to boot the Solaris Kernel at the moment.

I get as far as:
[sparc] Booting file 'cdrom' with parameters ''
Not a bootable ELF image
Not a Linux kernel image
Not a bootable a.out image
Not a bootable ELF image
Not a Linux kernel image
Loading a.out image...
Loaded 7680 bytes
entry point is 0x4000
Jumping to entry point...
checksum 60746d10 != 86693bac, trying to boot anyway Unhandled Exception 0x00000007
PC = 0x002002bc NPC = 0x002002c0
Stopping execution

My question is how far away are you form getting it to work and in what time frame could it be done?

This is a bigger project for us. So it might even be possible ( nothing confirmed yet I have to check back with some people ) to donate some money to get it to work.
It doesn't need to work for all Solaris. We just need Solaris 1.1.2. If someone needs some installation Medium or feedback let me know.

Quoted 10 lines
Quoted 4 lines

Greetings
Jan Holzhüter

This may be an openbios issue. Changing openbios boot.c cdrom oldpath to sd(0,2,0):d gets past this error but it still doesn't boot.

SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I don't think anything other than Linux runs in QEMU's Sun emulation (or for that matter, any of the non-PC QEMU emulators).

#4 lore raw

In message: <[email protected]>
Andrew Warkentin <[email protected]> writes:
: Robert Reif wrote:
:
: > Jan Holzhueter wrote:
: >
: >> Hi everyone,
: >> we are planing to get rid of some old sparc hardware.
: >> The problem is that there are applications on it that require : >> sun4m and Solaris 1.1.2 / SunOS 4.1.4.
: >> As known qemu-system-sparc is not able to boot the Solaris Kernel at : >> the moment.
: >>
: >> I get as far as:
: >> [sparc] Booting file 'cdrom' with parameters ''
: >> Not a bootable ELF image
: >> Not a Linux kernel image
: >> Not a bootable a.out image
: >> Not a bootable ELF image
: >> Not a Linux kernel image
: >> Loading a.out image...
: >> Loaded 7680 bytes
: >> entry point is 0x4000
: >> Jumping to entry point...
: >> checksum 60746d10 != 86693bac, trying to boot anyway
: >> Unhandled Exception 0x00000007
: >> PC = 0x002002bc NPC = 0x002002c0
: >> Stopping execution
: >>
: >> My question is how far away are you form getting it to work : >> and in what time frame could it be done?
: >>
: >> This is a bigger project for us. So it might even be possible : >> ( nothing confirmed yet I have to check back with some people ) : >> to donate some money to get it to work.
: >> It doesn't need to work for all Solaris. We just need Solaris 1.1.2. : >> If someone needs some installation Medium or feedback let me know. : >>
: >> Greetings
: >> Jan Holzhüter
: >>
: >>
: > This may be an openbios issue. Changing openbios boot.c cdrom : > oldpath to sd(0,2,0):d gets past this error but it still doesn't boot. : >
: >
: >
: >
:
: SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I : don't think anything other than Linux runs in QEMU's Sun emulation (or : for that matter, any of the non-PC QEMU emulators).

OpenFirmware that QEMU implements is somewhat insufficient to boot anything but the hacked up version of Linux.

Warner

#9 lore raw
In reply to Andrew Warkentin
Quoted 3 lines · Andrew Warkentin

SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I don't think anything other than Linux runs in QEMU's Sun emulation (or for that matter, any of the non-PC QEMU emulators).

PalmOS, NetBSD and OpenBSD run in one and I heard Windows NT runs on another one.

Signature · 2 lines
Please do not print this email unless absolutely necessary. Spread
environmental awareness.
#11 lore raw
In reply to Andrew Warkentin
Quoted 3 lines · Andrew Warkentin

SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I don't think anything other than Linux runs in QEMU's Sun emulation (or for that matter, any of the non-PC QEMU emulators).

Unfortunately TME only emulates a SPARCstation2 (sun4c).

I have only been able to get linux running with QEMU and it seems stable. I have tried numerous versions of solaris and bsd without success.

I have been unable to get any version of an Open Boot PROM for any machine working. We are at the point now where the images actually run but fail the self tests and hang while accessing the floppy during the initialization stage. QEMU hardware emulation is just not good enough for for this yet.

I would like to see QEMU emulation good enough to be able to run Open Boot PROM images well enough to load an OS. At that point solaris and bsd will probably work and OpenBIOS can be fixed.

#5 lore raw
In reply to M. Warner Losh
Quoted 53 lines · M. Warner Losh

In message: <[email protected]>
Andrew Warkentin <[email protected]> writes:
: Robert Reif wrote:
:
: > Jan Holzhueter wrote:
: >
: >> Hi everyone,
: >> we are planing to get rid of some old sparc hardware.
: >> The problem is that there are applications on it that require : >> sun4m and Solaris 1.1.2 / SunOS 4.1.4.
: >> As known qemu-system-sparc is not able to boot the Solaris Kernel at : >> the moment.
: >>
: >> I get as far as:
: >> [sparc] Booting file 'cdrom' with parameters ''
: >> Not a bootable ELF image
: >> Not a Linux kernel image
: >> Not a bootable a.out image
: >> Not a bootable ELF image
: >> Not a Linux kernel image
: >> Loading a.out image...
: >> Loaded 7680 bytes
: >> entry point is 0x4000
: >> Jumping to entry point...
: >> checksum 60746d10 != 86693bac, trying to boot anyway
: >> Unhandled Exception 0x00000007
: >> PC = 0x002002bc NPC = 0x002002c0
: >> Stopping execution
: >>
: >> My question is how far away are you form getting it to work : >> and in what time frame could it be done?
: >>
: >> This is a bigger project for us. So it might even be possible : >> ( nothing confirmed yet I have to check back with some people ) : >> to donate some money to get it to work.
: >> It doesn't need to work for all Solaris. We just need Solaris 1.1.2. : >> If someone needs some installation Medium or feedback let me know. : >>
: >> Greetings
: >> Jan Holzhüter
: >>
: >>
: > This may be an openbios issue. Changing openbios boot.c cdrom : > oldpath to sd(0,2,0):d gets past this error but it still doesn't boot. : >
: >
: >
: >
:
: SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I : don't think anything other than Linux runs in QEMU's Sun emulation (or : for that matter, any of the non-PC QEMU emulators).

Quoted 2 lines

OpenFirmware that QEMU implements is somewhat insufficient to boot anything but the hacked up version of Linux.

Not hacked up, Qemu and the supplied OpenBIOS image can boot several unmodified Linux kernels spanning a decade.

Currently both NetBSD and OpenBSD hang outside OpenBIOS, OF activity has stopped. I don't know enough of the insides of the BSDs to debug. I'd think any BSD hacker who cared to spend a few hours for this could pinpoint the culprit very quickly.

#6 lore raw

In message: <[email protected]>
"Blue Swirl" <[email protected]> writes:
: On 2/19/08, M. Warner Losh <[email protected]> wrote:
: > In message: <[email protected]>
: > Andrew Warkentin <[email protected]> writes:
: > : Robert Reif wrote:
: > :
: > : > Jan Holzhueter wrote:
: > : >
: > : >> Hi everyone,
: > : >> we are planing to get rid of some old sparc hardware.
: > : >> The problem is that there are applications on it that require : > : >> sun4m and Solaris 1.1.2 / SunOS 4.1.4.
: > : >> As known qemu-system-sparc is not able to boot the Solaris Kernel at : > : >> the moment.
: > : >>
: > : >> I get as far as:
: > : >> [sparc] Booting file 'cdrom' with parameters ''
: > : >> Not a bootable ELF image
: > : >> Not a Linux kernel image
: > : >> Not a bootable a.out image
: > : >> Not a bootable ELF image
: > : >> Not a Linux kernel image
: > : >> Loading a.out image...
: > : >> Loaded 7680 bytes
: > : >> entry point is 0x4000
: > : >> Jumping to entry point...
: > : >> checksum 60746d10 != 86693bac, trying to boot anyway
: > : >> Unhandled Exception 0x00000007
: > : >> PC = 0x002002bc NPC = 0x002002c0
: > : >> Stopping execution
: > : >>
: > : >> My question is how far away are you form getting it to work : > : >> and in what time frame could it be done?
: > : >>
: > : >> This is a bigger project for us. So it might even be possible : > : >> ( nothing confirmed yet I have to check back with some people ) : > : >> to donate some money to get it to work.
: > : >> It doesn't need to work for all Solaris. We just need Solaris 1.1.2. : > : >> If someone needs some installation Medium or feedback let me know. : > : >>
: > : >> Greetings
: > : >> Jan Holzhüter
: > : >>
: > : >>
: > : > This may be an openbios issue. Changing openbios boot.c cdrom : > : > oldpath to sd(0,2,0):d gets past this error but it still doesn't boot. : > : >
: > : >
: > : >
: > : >
: > :
: > : SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I : > : don't think anything other than Linux runs in QEMU's Sun emulation (or : > : for that matter, any of the non-PC QEMU emulators).
: >
: > OpenFirmware that QEMU implements is somewhat insufficient to boot : > anything but the hacked up version of Linux.
:
: Not hacked up, Qemu and the supplied OpenBIOS image can boot several : unmodified Linux kernels spanning a decade.

I should have been more specific: PowerPC MAC support.

: Currently both NetBSD and OpenBSD hang outside OpenBIOS, OF activity : has stopped. I don't know enough of the insides of the BSDs to debug. : I'd think any BSD hacker who cared to spend a few hours for this could : pinpoint the culprit very quickly.

In PowerPC I've spent a lot more than a few hours on it...

Warner

#7 lore raw
Quoted 62 lines · M. Warner Losh

In message: <[email protected]>
"Blue Swirl" <[email protected]> writes:
: On 2/19/08, M. Warner Losh <[email protected]> wrote:
: > In message: <[email protected]>
: > Andrew Warkentin <[email protected]> writes:
: > : Robert Reif wrote:
: > :
: > : > Jan Holzhueter wrote:
: > : >
: > : >> Hi everyone,
: > : >> we are planing to get rid of some old sparc hardware.
: > : >> The problem is that there are applications on it that require : > : >> sun4m and Solaris 1.1.2 / SunOS 4.1.4.
: > : >> As known qemu-system-sparc is not able to boot the Solaris Kernel at : > : >> the moment.
: > : >>
: > : >> I get as far as:
: > : >> [sparc] Booting file 'cdrom' with parameters ''
: > : >> Not a bootable ELF image
: > : >> Not a Linux kernel image
: > : >> Not a bootable a.out image
: > : >> Not a bootable ELF image
: > : >> Not a Linux kernel image
: > : >> Loading a.out image...
: > : >> Loaded 7680 bytes
: > : >> entry point is 0x4000
: > : >> Jumping to entry point...
: > : >> checksum 60746d10 != 86693bac, trying to boot anyway
: > : >> Unhandled Exception 0x00000007
: > : >> PC = 0x002002bc NPC = 0x002002c0
: > : >> Stopping execution
: > : >>
: > : >> My question is how far away are you form getting it to work : > : >> and in what time frame could it be done?
: > : >>
: > : >> This is a bigger project for us. So it might even be possible : > : >> ( nothing confirmed yet I have to check back with some people ) : > : >> to donate some money to get it to work.
: > : >> It doesn't need to work for all Solaris. We just need Solaris 1.1.2. : > : >> If someone needs some installation Medium or feedback let me know. : > : >>
: > : >> Greetings
: > : >> Jan Holzhüter
: > : >>
: > : >>
: > : > This may be an openbios issue. Changing openbios boot.c cdrom : > : > oldpath to sd(0,2,0):d gets past this error but it still doesn't boot. : > : >
: > : >
: > : >
: > : >
: > :
: > : SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I : > : don't think anything other than Linux runs in QEMU's Sun emulation (or : > : for that matter, any of the non-PC QEMU emulators).
: >
: > OpenFirmware that QEMU implements is somewhat insufficient to boot : > anything but the hacked up version of Linux.
:
: Not hacked up, Qemu and the supplied OpenBIOS image can boot several : unmodified Linux kernels spanning a decade.

Quoted 1 line

I should have been more specific: PowerPC MAC support.

I see. PowerPC uses OpenHackWare, not OpenBIOS. OHW does not have a Forth interpreter, for example.

Quoted 6 lines

: Currently both NetBSD and OpenBSD hang outside OpenBIOS, OF activity : has stopped. I don't know enough of the insides of the BSDs to debug. : I'd think any BSD hacker who cared to spend a few hours for this could : pinpoint the culprit very quickly.

In PowerPC I've spent a lot more than a few hours on it...

Maybe the problem is related to Forth?

#8 lore raw

In message: <[email protected]>
"Blue Swirl" <[email protected]> writes:
: On 2/19/08, M. Warner Losh <[email protected]> wrote:
: > In message: <[email protected]>
: > "Blue Swirl" <[email protected]> writes:
: > : On 2/19/08, M. Warner Losh <[email protected]> wrote:
: > : > In message: <[email protected]>
: > : > Andrew Warkentin <[email protected]> writes:
: > : > : Robert Reif wrote:
: > : > :
: > : > : > Jan Holzhueter wrote:
: > : > : >
: > : > : >> Hi everyone,
: > : > : >> we are planing to get rid of some old sparc hardware.
: > : > : >> The problem is that there are applications on it that require : > : > : >> sun4m and Solaris 1.1.2 / SunOS 4.1.4.
: > : > : >> As known qemu-system-sparc is not able to boot the Solaris Kernel at : > : > : >> the moment.
: > : > : >>
: > : > : >> I get as far as:
: > : > : >> [sparc] Booting file 'cdrom' with parameters ''
: > : > : >> Not a bootable ELF image
: > : > : >> Not a Linux kernel image
: > : > : >> Not a bootable a.out image
: > : > : >> Not a bootable ELF image
: > : > : >> Not a Linux kernel image
: > : > : >> Loading a.out image...
: > : > : >> Loaded 7680 bytes
: > : > : >> entry point is 0x4000
: > : > : >> Jumping to entry point...
: > : > : >> checksum 60746d10 != 86693bac, trying to boot anyway
: > : > : >> Unhandled Exception 0x00000007
: > : > : >> PC = 0x002002bc NPC = 0x002002c0
: > : > : >> Stopping execution
: > : > : >>
: > : > : >> My question is how far away are you form getting it to work : > : > : >> and in what time frame could it be done?
: > : > : >>
: > : > : >> This is a bigger project for us. So it might even be possible : > : > : >> ( nothing confirmed yet I have to check back with some people ) : > : > : >> to donate some money to get it to work.
: > : > : >> It doesn't need to work for all Solaris. We just need Solaris 1.1.2. : > : > : >> If someone needs some installation Medium or feedback let me know. : > : > : >>
: > : > : >> Greetings
: > : > : >> Jan Holzhüter
: > : > : >>
: > : > : >>
: > : > : > This may be an openbios issue. Changing openbios boot.c cdrom : > : > : > oldpath to sd(0,2,0):d gets past this error but it still doesn't boot. : > : > : >
: > : > : >
: > : > : >
: > : > : >
: > : > :
: > : > : SunOS might run in TME (http://people.csail.mit.edu/fredette/tme/). I : > : > : don't think anything other than Linux runs in QEMU's Sun emulation (or : > : > : for that matter, any of the non-PC QEMU emulators).
: > : >
: > : > OpenFirmware that QEMU implements is somewhat insufficient to boot : > : > anything but the hacked up version of Linux.
: > :
: > : Not hacked up, Qemu and the supplied OpenBIOS image can boot several : > : unmodified Linux kernels spanning a decade.
: >
: > I should have been more specific: PowerPC MAC support.
:
: I see. PowerPC uses OpenHackWare, not OpenBIOS. OHW does not have a : Forth interpreter, for example.

That would make a big difference...

: > : Currently both NetBSD and OpenBSD hang outside OpenBIOS, OF activity : > : has stopped. I don't know enough of the insides of the BSDs to debug. : > : I'd think any BSD hacker who cared to spend a few hours for this could : > : pinpoint the culprit very quickly.
: >
: > In PowerPC I've spent a lot more than a few hours on it...
:
: Maybe the problem is related to Forth?

The problem isn't related to forth.

Warner