Subject: IP12 (Indigo R3000) boots multiuser
To: None <port-sgimips@netbsd.org>
From: Steve Rumble <steve@paintballresource.org>
List: port-sgimips
Date: 04/27/2003 02:39:43
As the subject says, a heavy butchered version of NetBSD-current boots multiuser
on the IP12 (R3000-based Indigo) as of about thirty minutes ago. My clock looks a bit funky,
but at this point only nvram code is needed (to grab the seeq's mac address) before kernel
support will be about on par with IP20/22/24. Of course, the code is terribly ugly and will
require a fair bit of cleanup still.
I believe that the current bootloader uses ARCS routines to read from the disk. I'll
have to see if I can write some IP12 prom-specific code to do the same thing. I'll disassemble
the irix5.3 bootloader and kernel to see what I can dig up there.
Unlike the other systems this is strictly console-only. Any keyboard/monitor i/o will
likely require a true keyboard driver and/or utilization of some prom i/o routines I've yet to
explore.
Anyhow, just a quick status update. If anybody wants to play with what I have so far, a
tarball of the arch/mips and arch/sgimips directories (synced with -current as of 12:00pm EST
today) can be had at http://www.cataclysmic.org/sgimips/mips_sgimips-20030427-IP12.tar.gz
dmesg follows below..
Cheers,
-Steve
>> boot -f bootp():/netbsd.ip12
Setting $netaddr to 192.168.183.162 (from server 192.168.183.1)
Obtaining /netbsd.ip12 from server 192.168.183.1
1530768+0+154540 entry: 0x80002000
zs channel 0 had address 0xbfb80d10
argv[0]: bootp():/netbsd.ip12
[ Kernel symbol table missing! ]
machine HP1 (Hollywood), board rev 1
Mem block 0: base 0x0, size: 0x1000000
Mem block 0 contains kernel
Loading chunk after kernel: 0x19e / 0x1000
Mem block 1: base 0x1000000, size: 0x800000
Loading cluster 1: 0x1000 / 0x1800
Mem block 2: base 0x1800000, size: 0x800000
Loading cluster 2: 0x1800 / 0x2000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
The NetBSD Foundation, Inc. All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the iversity of California. All rights reserved.
NetBSD 1.6R (IP12) #0: Sun Apr 27 00:37:30 EST 2003
rumble@T23:/home/rumble/src/sys/arch/sgimips/compile/IP12
32768 KB memory, 28412 KB free, 1740 KB in 435 buffers
mainbus0 (root)
cpu0 at mainbus0: MIPS R3000A CPU (0x230) Rev. 3.0 with MIPS R3010 FPC Rev. 4.0
cpu0: 32KB/4B direct-mapped Instruction cache, 64 TLB entries
cpu0: 32KB/4B direct-mapped write-through Data cache
pic0 at mainbus0 addr 0x1fa00000
pic0: Revision C: dblk (0x2), iblk (0x8)
pic0: cache disabled, store partial, bus drive
gio0 at pic0
hpcone0 at gio0 addr 0x1fb80000: SGI HPC1.5
zsc0 at hpcone0 offset 0xd10
zstty0 at zsc0 channel 1 (console i/o)
zstty1 at zsc0 channel 0
sq0 at hpcone0 offset 0x100: cannot obtain MAC address on IP12!
wdsc0 at hpcone0 offset 0x11f: WD33C93A SCSI, rev=0, target 7
scsibus0 at wdsc0: 8 targets, 8 luns per target
dpclock0 at hpcone0 offset 0xe00
lpt0 at hpcone0 offset 0x132: major number 16
biomask 0b netmask 0b ttymask 1b clockmask 7f
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 1 lun 0: <IBM OEM, 0663E15, eSfS> disk fixed
sd0: 1150 MB, 2463 cyl, 15 head, 63 sec, 512 bytes/sect x 2356180 sectors
sd0: sync (200.00ns offs2), 8-bit (5.000MB/s) transfers, tagged queueing
boot device: <unknown>
root device: sd0
dump device (default sd0b):
file system (default generic): ffs
root on sd0a dumps on sd0b
WARNING: preposterous time in file systemreadclock: 1970/4/24/4/41/47
time.tv_sec = 9780107, time.tv_usec = 920000
-- CHECK AND RESET THE DATE!
init path (default /sbin/init):
init: copying out flags `-s' 3
init: copying out path `/sbin/init' 11
Enter pathname of shell or RETURN for /bin/sh:
# exit
Fri Apr 24 04:42:06 UTC 1970
swapctl: adding /dev/sd0b as swap device at priority 0
Starting file system checks:
/dev/rsd0a: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: indigo
Configuring network interfaces:.
Building databases...
kvm_mkdb: machdep.booted_kernel: sysctl() failed with No such file or directory: No such file or directory
Starting syslogd.
Checking for core dump...
savecore: /netbsd: kvm_openfiles: /netbsd: No such file or directory
Apr 24 04:42:33 indigo savecore: /netbsd: kvm_openfiles: /netbsd: No such file or directory
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Starting virecover.
Starting local daemons:.
Updating motd.
Starting inetd.
Starting cron.
Fri Apr 24 04:43:03 UTC 1970
NetBSD/sgimips (indigo) (console)
login: root
Last login: Fri Apr 24 04:35:11 1970 on console
Apr 24 04:43:13 indigo login: ROOT LOGIN (root) ON console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002
The NetBSD Foundation, Inc. All rights reserved.
Apr 24 04:43:13 indigo login: ROOT LOGIN (root) ON console
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
NetBSD 1.6R (IP12) #0: Sun Apr 27 00:37:30 EST 2003
Welcome to NetBSD!
Terminal type is vt100.
We recommend creating a non-root account and using su(1) for root access.
indigo# w
4:43AM up 2 mins, 1 user, load averages: 1.51, 0.53, 0.20
USER TTY FROM LOGIN@ IDLE WHAT
root co - 4:43AM 0 w
indigo# ps ax
PID TT STAT TIME COMMAND
0 ?? DKs 0:00.00 [swapper]
1 ?? Ss 0:07.80 init -s
2 ?? DK 0:00.00 [scsibus0]
3 ?? DK 0:00.00 [pagedaemon]
4 ?? DK 0:00.66 [reaper]
5 ?? DK 0:00.08 [ioflush]
6 ?? DK 0:00.02 [aiodoned]
88 ?? Ss 0:00.78 /usr/sbin/syslogd -s
209 ?? Ss 0:00.21 /usr/sbin/inetd -l
220 ?? Ss 0:00.18 /usr/sbin/cron
234 Z0 Ss 0:01.35 -csh
238 Z0 R+ 0:00.16 ps ax
indigo# halt
Apr 24 04:43:26 indigo halt: halted by root
Apr 24 04:43:26 indigo halt: halted by root
Apr 24 04:43:27 indigo syslogd: Exiting on signal 15
Apr 24 04:43:27 indigo syslogd: Exiting on signal 15
syncing disks... 2 2 1 done
unmounting / (/dev/sd0a)...
setclock: 1970/4/24/4/43/34
halting...
sc0,1,0: cmd=0x12 timeout after 2 sec. Resetting SCSI bus
Error-- gfx(0) keyboard not responding
Error-- cannot open console "gfx(0)"
Okay to power off the system now.
Press any key to restart.