Skip to contentSkip to conversation

Q: SPARC Solaris as guest operating system with qemu?

Qemu-devel Blue Swirl 2 participants 4 messages Sep 1, 2005 – Sep 2, 2005

lore
Share & tools
lore

Blue Swirl

author
#0 lore raw

Hi,

Short answer: does not work yet.

Long answer: based on the recent tests, I'd say the problem is more in the Openprom implementation rather than Sparc v8 CPU or hardware emulation. It's much harder to know what are the problems when working with closed source.

If you want to help, I'd suggest that trying to get Linux 2.4 series or some BSDs boot would benefit also Solaris. Proll openprom.c is less than 1000 lines long and it's no rocket science.

If bugs in V9 emulation were fixed, there could be some chances of booting recent Sparc64 kernels. Also a working prom with real OpenFirmware support is needed and that does not exist yet.

More testing is always helpful.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/

#1 lore raw

Hi,

Quoted 2 lines

If bugs in V9 emulation were fixed, there could be some chances of booting recent Sparc64 kernels. Also a working prom with real OpenFirmware support is needed and that does not exist yet.

why isn't it possible to use some Sun-provided flash PROM-Update binary for SS5 or so?

Quoted 1 line

It's much harder to know what are the problems when working with closed source.

Ok, OBP sources are closed, but isn't OpenSolaris.org of any help? (I know, no support for any old 32bit platforms anymore, however.)

author
#2 lore raw
Quoted 1 line

why isn't it possible to use some Sun-provided flash PROM-Update binary for SS5 or so?

Now that would be interesting. Running it could reveal some bugs in Qemu's HW implementation and especially where we have made some bogus shortcuts. For example, the boot sequence is not what a real Prom expects, execution starts from 0xffd00000 instead of zero (reset vector). I guess in the real HW, after reset the prom occupies all of the address space, and one of the first things it does is to enable RAM. Or prom lives near zero forever and RAM banks are higher.

Other issues: NVRAM contents are Qemu-specific. Undocumented or secret I/O registers are not implemented. Maybe speed differences, bugs, unimplemented stuff.

Quoted 2 lines

Ok, OBP sources are closed, but isn't OpenSolaris.org of any help? (I know, no support for any old 32bit platforms anymore, however.)

Probably not for exactly that reason.

_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/

#3 lore raw
Quoted 4 lines · Blue Swirl
Quoted 1 line

why isn't it possible to use some Sun-provided flash PROM-Update binary for SS5 or so?

Now that would be interesting. Running it could reveal some bugs in Qemu's HW implementation and especially where we have made some bogus shortcuts. For example, the boot sequence is not what a real Prom expects, execution starts from 0xffd00000 instead of zero (reset vector). I guess in the real HW, after reset the prom occupies all of the address space, and one of the first things it does is to enable RAM. Or prom lives near zero forever and RAM banks are higher.

To anyone who didn't already find it by himself:

http://www.sunshack.org/data/bootroms.html

(includes *SS 10* *sun-4m* *2.25* *Final* version released by Sun not EOL'd yet adds *>= 150 Mhz* Hypersparc support Contributed by [email protected] )
<mailto:[email protected]>