Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-19 Thread Robert Reif

Andrew Warkentin wrote:



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.





Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-19 Thread Blue Swirl
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 0x0007
 :  :  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.

 : 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?


Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-19 Thread Blue Swirl
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 0x0007
 :  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.

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.


Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-19 Thread 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 0x0007
:  :  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




Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-19 Thread 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]
:  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 0x0007
:  :  :  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




Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-18 Thread Robert Reif

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 0x0007
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.





Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-18 Thread Andrew Warkentin

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 0x0007
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).





Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-18 Thread 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 0x0007
:  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





Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-18 Thread Paul Brook
 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).

While linux is certainly the most most widely tested, I'm fairly sure both 
vxWorks and SymbianOS have been run inside qemu ARM emulation.

Paul




Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-18 Thread andrzej zaborowski
On 19/02/2008, Andrew Warkentin [EMAIL PROTECTED] wrote:
 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.
-- 
Please do not print this email unless absolutely necessary. Spread
environmental awareness.




Re: [Qemu-devel] qemu-system-sparc and Solaris 1.1.2 / SunOS 4.1.4

2008-02-14 Thread Blue Swirl
On 2/14/08, Jan Holzhueter [EMAIL PROTECTED] 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 0x0007
  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?

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.

  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.