Saturday, May 21, 2011

Now finally something new

Loading: /platform/sun4u/boot_archiveramdisk-root ufs-file-system
Loading: /platform/sun4u/kernel/sparcv9/unix
module /platform/sun4u/kernel/sparcv9/unix: text at [0x1000000, 0x10bf34d] data at 0x1800000
module /platform/sun4u/kernel/sparcv9/genunix: text at [0x10bf350, 0x12b5c7f] data at 0x1865e00
module /platform/sun4u/kernel/misc/sparcv9/platmod: text at [0x12b5c80, 0x12b5c97] data at 0x18bac30
module /platform/sun4u/kernel/cpu/sparcv9/SUNW,UltraSPARC-II: text at [0x12b5cc0, 0x12c2a37] data at 0x18bb2c0
SunOS Release 5.11 Version MilaX_0.3.2 64-bit
Copyright 1983-2008 Sun Microsystems, Inc.  All rights reserved.
Use is subject to license terms.
os-io Ethernet address = 52:54:0:12:34:56
Using default device instance data
mem = 262144K (0x10000000)
avail mem = 154615808
Preparing live image for use
Hostname: milax
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Root password for system maintenance (control-d to bypass):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

May 20 07:26:42 su: 'su root' succeeded for root on /dev/console
-bash: /usr/sbin/quota: No such file or directory
Sun Microsystems Inc.   SunOS 5.11      MilaX_0.3.2     October 2008
-bash: /bin/mail: No such file or directory
-bash: id: command not found
-bash: id: command not found
-bash: [: !=: unary operator expected
(root@milax)# uname -X
System = SunOS
Node = milax
Release = 5.11
KernelID = MilaX_0.3.2
Machine = sun4u
BusType =
Serial =
Users =
OEM# = 0
Origin# = 1
NumCPU = 1

(root@milax)# uname -a
SunOS milax 5.11 MilaX_0.3.2 sun4u sparc sun4u

The missing files above are caused by the maintenance mode which in turn is caused by the missing network card. So the next steps are obvious:
- plug in a supported NIC
- find a customer for the sun4u emulation
- ???

PS. Btw, are there any live OpenSolaris/Illumos based live CDs newer than MilaX 0.3.2? The later MilaX versions seem to be PC-only.


jermar said...

This looks promising for HelenOS. We may want to think of supporting serial as the default input/output :-)

Btw, what machines does the OBP image come from? Anything like Ultra 5 or Ultra 60?

atar said...

Ultra-2 :) Ultra-5 has se ports which qemu doesn't emulate.

atar said...

Btw, Jakub, I might have a bug-report for you: HelenOS hangs if the host has more than 1GiB RAM. Either it's a qemu bug or HelenOS. Have you tested HelenOS on the real sun4u machines having one GiB or more?

jermar said...

HelenOS certainly ran fine on the T1000 with nearly 4G of memory at some point. Note that currently it is broken for this machine due to #324.

As for the sun4u machines, I will have to remember or ask Martin how much memory is there on his Ultra 60. In case of one Ultra 60, there was only 512M. Also the Sun Blade 1500 had more than 2G of memory, but this machine has not been tested for some time.

I will try to reproduce with OpenBIOS later today and >1G of memory.

Btw, I almost did not notice your bug report. Don't be shy to report in our trac :-)

atar said...

Didn't report because wasn't sure that it's a HelenOS bug.

Actually I've acquired a SMP Ultra-60 for the experiments, but can't use it yet because... I can't find a null modem cable. It's really a shame, I've thrown one away 4 years ago thinking that I won't need one. And here we are: German ebay doesn't have one for weeks. So Ultra has to wait till I grab an iron solder...

Anonymous said...

Hello Artyom. Did you or anyone else advance 'sparc64' emulation forward since this post? I'd like very much to get an image from an old Ultra 80 machine running Solaris 9 running in a QEMU VM so the box can be discarded. Why can just a shell-only boot be accomplished as-of the work you completed here? Is it the hardware emulation or the boot firmware? If the latter, is there any chance that the Sun boot firmware could be used?


atar said...

It's both firmware and hardware emulation. There are a few missing devices in qemu which are necessary for Solaris. There is of course an alternative approach - one can modify Solaris, so that it can live with the qemu device model.

Watson said...

Hello Atar, nice to hear this good news, did you use QEMU with real openboot to boot SunOS 5.11? If yes, how did you achieve it? Could you please share your openboot.bin of Ultra-2? Thank you.

atar said...

The Ultra-2 bios won't give you anything directly because it relies on devices which qemu doesn't have.

But you can have the sun flash proms from "My Oracle Support" (the new name for deceased )

Watson said...

Hello atar, can I boot "SunOS Release 5.11 Version MilaX_0.3.2 64-bit" with qemu-sparc-64? and how? Thanks.

atar said...

@Watson. Not yet without modifying qemu-sparc-64.

I made a Proof-of-Concept modification (the initial patch is over 100KiB of code) which allowed booting it some time ago.

Now I'm looking for funding to continue working on it.