Skip to contentSkip to conversation

Booting Solaris 9 install CD under qemu-system-sparc

Qemu-devel Paul Sheer 4 participants 5 messages Jan 4, 2007 – Jan 5, 2007

lore
Share & tools
lore

Paul Sheer

author
#0 lore raw

Hi. i need to perform software builds on solaris-sparc and i'm trying to avoid buying a real sparc for this. So qemu would be really helpful.

Be happy to buy something cool for whoever get's this working!

When booting the solaris 9 install CD -

qemu-0.8.2# uname -a
Linux sheerp-laptop 2.6.18 #2 PREEMPT Sat Nov 11 15:35:16 SAST 2006 i686 GNU/Linux
qemu-0.8.2# qemu-system-sparc -hda qemu-Solaris-sparc.img -m 128 -boot d -cdrom /opt/sol-9-905hw-install-ga-sparc.iso -nographic

- i get the following:

Nvram id QEMU_BIOS, version 1
CPUs: 1
nvram error detected, zapping pram
Welcome to OpenBIOS v1.0RC1 built on Jun 8 2006 15:14
Type 'help' for detailed information

[sparc] Booting file 'cdrom' without 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...
device auxio size -1

hangs here with 100% CPU

thanks for any help with this

-paul

#1 lore raw
Quoted 35 lines · Paul Sheer

Hi. i need to perform software builds on solaris-sparc and i'm trying to avoid buying a real sparc for this. So qemu would be really helpful.

Be happy to buy something cool for whoever get's this working!

When booting the solaris 9 install CD -

qemu-0.8.2# uname -a
Linux sheerp-laptop 2.6.18 #2 PREEMPT Sat Nov 11 15:35:16 SAST 2006 i686 GNU/Linux
qemu-0.8.2# qemu-system-sparc -hda qemu-Solaris-sparc.img -m 128 -boot d -cdrom /opt/sol-9-905hw-install-ga-sparc.iso -nographic

- i get the following:

Nvram id QEMU_BIOS, version 1
CPUs: 1
nvram error detected, zapping pram
Welcome to OpenBIOS v1.0RC1 built on Jun 8 2006 15:14
Type 'help' for detailed information

[sparc] Booting file 'cdrom' without 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...
device auxio size -1

Quoted 8 lines

hangs here with 100% CPU

thanks for any help with this

-paul

Booting Solaris_sparc inside qemu??
--->> Unfortunately not (speaking of SunOS4.x/Solaris1.x and Solaris2.x 32 bit kernel): Good news is, that it successfully starts booting (a physical CD, a CD.iso or physical hdd) now.
That is, it can read the vtoc now and starts executing bootblk. This quantum leap improvement is due to the fact, that qemu-system-sparc has moved to using openbios last summer.

Bad news: openbios is a pretty good and standards conform implementation of ieee1275-94 OpenFirmware.
But unfortunately is SUNW's proprietary OBP implementation not so standards conform, but instead implements certain behaviour differently (through explicit ifdefs in its sources).
So openbios sets up the qemu-system-sparc machine in a state that is not expected by the Solaris_32bit guest. And it then dies before any output would have been sent to the console (i.e. SunOS 5.8 32 bit ...). Though it actually is quite a lot what it already does do now. Blue Swirl is working on that front.

There is an opensource version of SUNW's OBP of implementation available for download on opensparc.org for 3 months now. Licensed under either BSD or GPL.
It is a version optimized for use with sun4v (not sun4u). Maybe this can accellerate things.
You should ask Blue Swirl for everything that has to do with sparc-emulation, please. My field is the HOST sparc support.

If you need it cheap and slow, just get a U5/U10 starting at $10 (final auction price) from ebay. Or a Blade 100 - sometimes someone offers many at once in a multi_auction. Chances are then, you snipe one for below $30,-

-Martin
p.s. Why not just completely switching to Solaris sparc ?! :-)
A Blade1000/2000 (via ebay.yourCountry) offers _the_ best price/performance ratio of all sparc workstation models.

author
#2 lore raw
Quoted 28 lines

Booting Solaris_sparc inside qemu??
--->> Unfortunately not (speaking of SunOS4.x/Solaris1.x and Solaris2.x 32 bit kernel): Good news is, that it successfully starts booting (a physical CD, a CD.iso or physical hdd) now.
That is, it can read the vtoc now and starts executing bootblk. This quantum leap improvement is due to the fact, that qemu-system-sparc has moved to using openbios last summer.

Bad news: openbios is a pretty good and standards conform implementation of ieee1275-94 OpenFirmware.
But unfortunately is SUNW's proprietary OBP implementation not so standards conform, but instead implements certain behaviour differently (through explicit ifdefs in its sources).
So openbios sets up the qemu-system-sparc machine in a state that is not expected by the Solaris_32bit guest. And it then dies before any output would have been sent to the console (i.e. SunOS 5.8 32 bit ...). Though it actually is quite a lot what it already does do now. Blue Swirl is working on that front.

There is an opensource version of SUNW's OBP of implementation available for download on opensparc.org for 3 months now. Licensed under either BSD or GPL.
It is a version optimized for use with sun4v (not sun4u). Maybe this can accellerate things.
You should ask Blue Swirl for everything that has to do with sparc-emulation, please. My field is the HOST sparc support.

Quoted 4 lines

If you need it cheap and slow, just get a U5/U10 starting at $10 (final auction price) from ebay. Or a Blade 100 - sometimes someone offers many at once in a multi_auction. Chances are then, you snipe one for below $30,-

actually there is a company ccny.com that builds these things to spec - they quoted me US$175 for a Sun 5

shipping to cape town, south africa is gonna be pricy - probably double that!!

but money's not the issue - i don't want to have to deal with the thing when it breaks :-)

qemu can already boot all the x86 unix platforms imaginable

	win98/nt/xp,linux-x86,XXXbsd,solaris-x86

plus all the linux platforms:

	linux-*

right?

if it can boot solaris-sparc, i am well on my way to building for every unix out there! - without having to get any hardware!!

at the moment i have hp-ux machines available to me. so outstanding is:

1. solaris-sparc
2. AIX-RS6000

should i offer a reward to get these working? :-)

what is Blue Swirl's email?

Thanks very much for all the info btw

-paul

#3 lore raw

Paul Sheer wrote:
[snip]

Quoted 9 lines

qemu can already boot all the x86 unix platforms imaginable

	win98/nt/xp,linux-x86,XXXbsd,solaris-x86

plus all the linux platforms:

	linux-*

right?

No. Linux runs on about 25 different architectures, qemu runs only a subset of them.

Thiemo

#4 lore raw
In reply to Paul Sheer
Quoted 2 lines

Hi. i need to perform software builds on solaris-sparc and i'm trying to avoid buying a real sparc for this. So qemu would be really helpful.

You could also try setting up a cross compiler.

Quoted 4 lines

Jumping to entry point...
device auxio size -1

hangs here with 100% CPU

Thanks for the report. Maybe Solaris expects an 'address' property for 'auxio' node, that is, the device is mapped. This is handled in OpenBIOS in drivers/obio.c. ;-)

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/