Skip to main content.

08/Sep/2001

Today, I bought a SparcStation 4 via ebay for $30.95: "My Sun Sparc 4 comes with a 110Mhz CPU, all the usually build in stuff, like ethernet, sound, serial, frame buffer, etc. It comes with a 2.15GB Seagate ST32155WC SCSI 80-pin SCA hard drive, floppy drive. It doesn't include a cd-rom drive, mouse/keyboard, or memory." The seller was in my own city, so I picked it up.

It doesn't have a keyboard and I don't have a monitor, so I connected to it via the serial port (on my NetBSD box: "cu -l /dev/tty01"). It continuously spewed:

        ERROR  : Sync Trap, PSR= 04100fc7, PC= 000333d4, TBR= 70000290
        ERROR  : Sync Fault Status Reg = 700075d0
        ERROR  : Sync Fault Address Reg = 70001fbð

Well, looking again I see it doesn't have any memory as the ebay listing said. Now to find some ...

10/Sep/2001

Looking at http://docs.sun.com/. Here is the page about memory. The Part Number List (Table 16) says the 32-Mbyte DSIMM Module is part 501-2471.

11/Sep/2001

I bought two 32MB sticks from the guy who sold me the box for $40. (My wife says it is a scam, because I bought it without memory and then I had to go back and buy the memory.) So it booted fine:
rainier:~/writing$ cu -l /dev/tty01
Connected.
Resolutionr1280x1024x67 not found.

SPARCstation 4, No Keyboard
ROM Rev. 2.24, 64 MB memory installed, Serial #8010782.
Ethernet address 8:0:20:7a:3c:1e, Host ID: 807a3c1e.



Boot device: /iommu/sbus/espdma@4,8400000/esp@4,8800000/sd@3,0  File and args: 
SunOS Release 5.5.1 Version Generic_103640-08 [UNIX(R) System V Release 4.0]
Copyright (c) 1983-1996, Sun Microsystems, Inc.
WARNING: clock gained 34 days -- CHECK AND RESET THE DATE!
configuring network interfaces: le0.
Hostname: oldss1
The / file system (/dev/rdsk/c0t3d0s0) is being checked.
configuring network interfaces: le0.
/dev/rdsk/c0t3d0s0: 26314 files, 310290 used, 893124 free 
/dev/rdsk/c0t3d0s0: (4092 frags, 111129 blocks,  0.3% fragmentation)
The system is coming up.  Please wait.
Flushing routing table:
add net default: gateway 137.134.52.1
NIS domainname is seattle
starting rpc services: rpcbind keyserv ypbind kerbd done.
le0: No carrier - cable disconnected or hub link test disabled?
Setting default interface for multicast: add net 224.0.0.0: gateway oldss1
syslog service starting.
le0: No carrier - cable disconnected or hub link test disabled?
le0: No carrier - cable disconnected or hub link test disabled?
le0: No carrier - cable disconnected or hub link test disabled?
le0: No carrier - cable disconnected or hub link test disabled?
le0: No carrier - cable disconnected or hub link test disabled?
le0: No carrier - cable disconnected or hub link test disabled?
le0: No carrier - cable disconnected or hub link test disabled?
Print services started.
le0: No carrier - cable disconnected or hub link test disabled?
(I plugged in an ethernet cable to fix the above problem.)

So I sent BREAK signal ("~#" in cu):

~[rainier]#Type  'go' to resume
Type  help  for more information
ok help

Enter 'help command-name' or 'help category-name' for more help
(Use ONLY the first word of a category description) 
Examples:  help select   -or-   help line
    Main categories are: 
File download and boot
Resume execution
Diag (diagnostic routines)
Power on reset
>-prompt
Floppy eject
Select I/O devices
Ethernet
System and boot configuration parameters
Line editor
Tools (memory,numbers,new commands,loops)
Assembly debugging (breakpoints,registers,disassembly,symbolic)
Sync (synchronize disk data)
Nvramrc (making new commands permanent)
ok

Then, I typed "boot -s". It said "Resetting ..." Then later said "Rebooting with command: -s". And then:

INIT: SINGLE USER MODE

Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance): 
Login incorrect
I tried a few times and a few variations; the password was wrong!

12/Sep/2001

To get to it by network, M. Bouyer suggested: "ifconfig ne0 137.134.1.1 netmask 0xffff0000 alias". This didn't work until I just set it for a smaller network: "ifconfig ne0 137.134.52.1 netmask 0xffffff00 alias".

Then "nmap -P0 -sS -v 137.134.52.26" showed the following interesting ports:

Port       State       Service
7/tcp      open        echo                    
9/tcp      open        discard                 
13/tcp     open        daytime                 
19/tcp     open        chargen                 
21/tcp     open        ftp                     
23/tcp     open        telnet                  
37/tcp     open        time                    
79/tcp     open        finger                  
111/tcp    open        sunrpc                  
512/tcp    open        exec                    
513/tcp    open        login                   
514/tcp    open        shell                   
540/tcp    open        uucp                    
4045/tcp   open        lockd                   
7100/tcp   open        font-service            
32771/tcp  open        sometimes-rpc5          
32772/tcp  open        sometimes-rpc7          
32773/tcp  open        sometimes-rpc9          
32774/tcp  open        sometimes-rpc11         
32775/tcp  open        sometimes-rpc13         
32776/tcp  open        sometimes-rpc15         
32777/tcp  open        sometimes-rpc17
I was able to get the time:
rainier:~$ telnet -N 137.134.52.26 daytime
Trying 137.134.52.26...
Connected to 137.134.52.26.
Escape character is '^]'.
Wed Sep 12 07:59:18 2001
Connection closed by foreign host.
And I was able to communicate with it via "telnet 137.134.52.26 echo".

I grabbed the two boot floppy images from ftp site.

gunzip disk1.gz                                                     
dd if=disk1 of=/dev/rfd0a bs=36k                                    
dd if=disk2 of=/dev/rfd0a bs=36k conv=sync 
Then from the Sun OpenBOOT PROM, I did "boot floppy". It reported:
Boot device: /obio/SUNW,fdtwo  File and args: 
>> NetBSD/sparc Secondary Boot, Revision 1.9
>> (toor@proxima, Tue Aug 21 23:18:13 CST 2001)
Booting netbsd
1311410+773468+152836=0x2326d0
OBP version 3, revision 2.24 (plugin rev 2)
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993           
    The Regents of the University of California.  All rights reserved.
                                                                      
NetBSD 1.5.2 (INSTALL) #0: Wed Aug 22 05:51:09 CST 2001
    toor@proxima:/usr/src/sys/arch/sparc/compile/INSTALL
total memory = 65184 KB                                 
avail memory = 57704 KB
using 840 buffers containing 3360 KB of memory
bootpath: /obio0/SUNW,fdtwo@0,400000          
mainbus0 (root): SUNW,SPARCstation-4
cpu0 at mainbus0: MB86904 @ 110 MHz, on-chip FPU
cpu0: 16K instruction (32 b/l), 8K data (16 b/l): cache enabled
obio0 at mainbus0                                              
clock0 at obio0 slot 0 offset 0x200000: mk48t08 (eeprom)
timer0 at obio0 slot 0 offset 0xd00000 delay constant 52
zs0 at obio0 slot 0 offset 0x100000 level 12 softpri 6  
zstty0 at zs0 channel 0 (console i/o)                 
zstty1 at zs0 channel 1              
zs1 at obio0 slot 0 offset 0x0 level 12 softpri 6
kbd0 at zs1 channel 0
ms0 at zs1 channel 1 
slavioconfig at obio0 slot 0 offset 0x800000 not configured
auxreg0 at obio0 slot 0 offset 0x900000                    
power0 at obio0 slot 0 offset 0x910000 level 2
fdc0 at obio0 slot 0 offset 0x400000 level 11 softpri 4: chip 82077
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec                 
iommu0 at mainbus0 addr 0x10000000: version 0x4/0x0, page-size 4096, range 64MB
sbus0 at iommu0: clock = 22 MHz                                                
dma0 at sbus0 slot 4 offset 0x8400000: rev 2
esp0 at dma0 slot 4 offset 0x8800000 level 4: ESP200, 40MHz, SCSI ID 7
scsibus0 at esp0: 8 targets, 8 luns per target                        
SUNW,bpp at sbus0 slot 4 offset 0xc800000 level 2 (ipl 3) not configured
ledma0 at sbus0 slot 4 offset 0x8400010: rev 2                          
le0 at ledma0 slot 4 offset 0x8c00000 level 6: address 08:00:20:7a:3c:1e
le0: 8 receive buffers, 2 transmit buffers                              
tcx0 at sbus0 slot 2 offset 0x800000 level 5 (ipl 9): SUNW,tcx, 1152 x 900, id 0, rev 2, sense 0
tcx0: attached to /dev/fb
power-management at sbus0 slot 3 offset 0xa000000 not configured
scsibus0: waiting 2 seconds for devices to settle...            
probe(esp0:3:0): max sync rate 10.00MB/s            
sd0 at scsibus0 target 3 lun 0:  SCSI2 0/direct fixed
sd0: 2049 MB, 4177 cyl, 8 head, 125 sec, 512 bytes/sect x 4197405 sectors
md0: fixed, 1360 blocksroot on md0a dumps on md0b                        
WARNING: clock gained 20 days -- CHECK AND RESET THE DATE!
root file system type: ffs                                
Welcome to the NetBSD/sparc microroot setup utility.

We've just completed the first stage of a two-stage procedure to load a
fully functional NetBSD installation environment on your machine.  In the
second stage which is to follow now, a set of additional installation
utilities must be load from your NetBSD/sparc installation medium.

This procedure supports one of the following media:

1) cdrom
2) tape
3) floppy

Installation medium to load the additional utilities from: 
So I chose "3", the disk ejected and I placed in the second one and pressed RETURN. (I read that I may have to go into the PROM and run "eject" and then "go".)

Ejecting floppy disk
fd0c: hard error reading fsbn 0
fd0: controller status: state 17 (st0 70 cyl 0)
Remove the boot disk from the floppy station and insert the second disk of 
the floppy installation set into the disk drive.

The question below allows you to specify the device name of the floppy
drive.  Usually, the default device will do just fine.
Floppy device to load the installation utilities from [/dev/rfd0a]:
Extracting installation utilities...
Ejecting floppy disk
fd0c: hard error reading fsbn 0
fd0: controller status: state 17 (st0 70 cyl 0)
erase ^H, werase ^W, kill ^U, intr ^C                                      
Terminal type? [sun]
Erase is backspace.

This distribution contains the experimental `sysinst' installation tool.
If you feel like trying it out, choose option (X) below.

(I)nstall, (U)pgrade, (H)alt or (S)hell or (X)? S
# ls
.profile     dist         install.sub  mnt2         upgrade
bin          etc          instbin      sbin         usr
boot         install      kern         sysinst      var
dev          install.md   mnt          tmp
# ls /mnt
# mount /dev/sd0a /mnt
/dev/sd0a: file system not clean (fs_flags=0); please fsck(8)
# ls /mnt
.cshrc     cm         export     mnt        platform   tmp
.rhosts    ddts       gtena1     net        proc       usr
apps       dev        home       nmcc2      sbin       var
awk        devices    kernel     opt        share      vol
bin        docs       lib        oracle     sybase     wa
cdrom      etc        lost+found oradb      tcs        xfn

First, I used "ed" for shadow. Then later I saw it had vi; so I used vi for resolv.conf. Due to some terminal problems, it flashed the text and then blanked it out; when I pressed CTRL-L it flashed it up again. Then used ed to edit /mnt/etc/hosts. Then edited /mnt/etc/defaultrouter defaultdomain nodename nsswitch.conf netmasks Then rebooted. I received a login prompt and I logged in.

Was getting messages (on console and in /var/adm/messages) like:

Sep 12 18:01:36 oldss1 sendmail[281]: NOQUEUE: SYSERR(root): NIS map passwd.byname specified, but NIS not running
Sep 12 18:01:37 oldss1 : Not enough space
Sep 12 18:01:36 oldss1 sendmail[281]: NOQUEUE: SYSERR(root): NIS map mail.aliases specified, but NIS not running
Sep 12 19:01:37 oldss1 sendmail[301]: NOQUEUE: SYSERR(root): NIS map passwd.byname specified, but NIS not running
Sep 12 19:01:37 oldss1 : Not enough space
Sep 12 19:01:37 oldss1 sendmail[301]: NOQUEUE: SYSERR(root): NIS map mail.aliases specified, but NIS not running
The /etc/nsswitch.conf file used nis first; I replaced it with example /etc/nsswitch.files and added dns for hosts. syslog wasn't working correctly. It needed a loghost host defined; I added it to the local IP in /etc/hosts. And then /var/log/syslog showed mail logs.

No mail could be sent, the mail hub was set (in /etc/mail/sendmail.cf) like "DRwa-ms".

Differences


# egrep -2 wa.ms mail/*
egrep: illegal option -- 2

no "top"

no "less"

/bin is symlink to /usr/bin

# echo $PATH
/usr/sbin:/usr/bin

# ls -li /sbin/init /usr/sbin/init
301894 -r-xr-xr-x   1 root     sys       255316 May  2  1996 /sbin/init
467154 -r-xr-xr-x   1 root     sys        30716 May  2  1996 /usr/sbin/init

# ls -li /sbin/mount /usr/sbin/mount
301896 -r-xr-xr-x   1 bin      bin       168160 May  2  1996 /sbin/mount
467171 -r-xr-xr-x   1 bin      bin        26416 May  2  1996 /usr/sbin/mount

# ldd /sbin/mount
ldd: /sbin/mount: file is not a dynamic executable or shared object
# ldd /usr/sbin/mount
        libintl.so.1 =>  /usr/lib/libintl.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libw.so.1 =>     /usr/lib/libw.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1

shutdown