Friday, April 22, 2011

Seen a usable #

Well sort of:

Loading: /platform/sun4u/ufsboot
Size: 330820+55556+67364 Bytes
SunOS Release 5.7 Version Generic_106541-08 [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1999, Sun Microsystems, Inc.
Ethernet address = 52:54:0:12:34:56
Using default device instance data
# uname -X
System = SunOS
Node =
Release = 5.7
KernelID = Generic_106541-08
Machine = sun4u
BusType = <unknown>
Serial = <unknown>
Users = <unknown>
OEM# = 0
Origin# = 1
NumCPU = 1
# ls
a           dev         kernel      opt         proto        tmp
bin         devices     lib        platform    reconfigure  usr
cdrom       etc         mnt         proc        sbin         var

So, the Solaris 2.6 and 7 kernels are functional in a minimal mode (the 2.5.1 and 8+ hang on device detection). The single user mode is not there yet though:

...
ld.so.1: internal: malloc failed
Killed
FATAL ERROR: / file system type "" is unknown
             Exiting to shell.
#

Nice is that Solaris engineers did a really good job making the OS robust. The message above comes from a branch in a script which has a following comment:

            # "this never happens" :-)

Expect the unexpected, well done!

Now, the bad news: MilaX 0.3.2, and probably other OpenSolaris distributions are eager to play with the E-Cache, which qemu doesn't emulate. If I find the way to tell MilaX that there is no cache, it probably would get it up to the command line too. The old Solaris versions had a '-n' boot parameter to switch the cache off, but MilaX says this boot parameter is invalid.

Gonna take a break now. (Happy Easter, everyone!) The next stop is a working single user mode. Stay tuned!

5 comments:

Neozeed said...

wow you've come a LONG LONG way! And let me say I do appreciate it!

Sparch said...

1) Year 1999... nice!
2) What 64-bit SPARC machine OBP are you using in your experiments?
3) Have you ever heard about TME?
http://people.csail.mit.edu/fredette/tme/
http://www.betaarchive.com/forum/viewtopic.php?t=11428
Haven't tested it and don't know whether it's asoociated with QEMU or not, but the screenshots show that it's probably the 3rd emulator beside QEMU and Simics that can actually run some versions of Solaris/SPARC.
4) By the way, do you speak Ukrainian?
Happy Easter to you, too :)

atar said...

Yeah, seen TME and wrote about it some time ago too. I only managed booting Solaris 2.5.1, the later versions crash it. Also it can boot NetBSD, but not Debian Linux 5. Didn't try any other Linux version or FreeBSD.
Can only speak Russian, can understand some east-Ukrainian.

Andy said...

Hi,
This may not be the best place..but I can't find a better way to contact you. I really would like to have a way to emulate a Sparcstation 5 (we have legacy software that will ONLY run on solaris 2.6). I'm willing to learn/code, have some exp. with emulation, but no idea where to get started. What is remaining to get this working? I can almost install and run 2.6 in qemu.

atar said...
This comment has been removed by the author.