Note this information may apply to other models too. To get the machine boot up with a serial console, make sure the keyboard is unplugged when turning on the machine. The serial console runs on serial #1, at 9600, 8N1 by default.
It is also possible to do a "setenv console d
" in the PROM
monitor to get the console to serial #1, or a "setenv console d2
"
to get it to serial #2 (default is "g
"). Optionally, the console's
speed can be set with "setenv dbaud <bps>
". After setting
these PROM variables either do an "init
" or a reboot of the machine
is needed.
When booting up Irix on the console, logins on the serial console might be disabled. You can enable them by editing /etc/inittab and adding the following line:
st:23:respawn:/sbin/getty systty co_9600 # serial console - HF |
Don't forget to re-read the inittab then with "init q
".
The serial port pinouts are the same as SPARC systems' serial ports, so Macintosh serial cables work great for serial-console cables, as long as you are willing to do it without hardware handshaking lines. See the NetBSD Serial Port Primer for more information.
Since NetBSD 3.0 the sgimipscd.iso image is bootable. The easiest way to install NetBSD on your machine is to burn this image to a CD and boot it. Instructions how to boot from a CD can be found here: ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-2.0.2/sgimips/INSTALL.html#Install%20via%20a%20bootable%20CD-ROM. Of course this assumes your machine has a CD drive. If not, you want to try a netboot.
If you do not have a CD drive, you need to netboot the kernel using the SGI's ARCS firmware. See the Diskless NetBSD HOW-TO for more information on setting up netbooting. Some rough steps are:
sh MAKEDEV all
" in the root/dev dir. printenv eaddr
" to do so.Setup DHCP. Put something like this into /etc/dhcpd.conf
:
ddns-update-style none; subnet 10.0.0.0 netmask 255.255.255.0 { # Adjust host indy { hardware ethernet 08:00:69:09:93:78; # Adjust to your MAC address fixed-address 10.0.0.15; # Adjust #filename "/netbsd"; # XXX Do NOT set! option root-path "/home/indy/root"; server-name="10.0.0.3"; } } |
Make sure you don not set the "filename
", else you
cannot specify a different name for the kernel on the PROM's
boot
command later.
>> printenv netaddr netaddr=1.2.3.4 >> setenv netaddr 10.0.0.15 >> printenv netaddr netaddr=10.0.0.15 |
/etc/inetd.conf
, then
drop a proper kernel into /tftpboot
, e.g. netbsd.IP22
.
>> boot -f bootp():/netbsd.IP22
Setting $netaddr to 10.0.0.15 (from server 10.0.0.3)
Obtaining /netbsd-IP22 from server 10.0.0.3
... |
?
" to get a list of
choices. E.g. "sq0
" is the Indy's ethernet.nfs
".
To start bootstrapping, the following files are needed:
NetBSD 1.6 and later systems have full support for cross-compilation of the base system, even as a non-root user and even on non-NetBSD hosts. See the Cross-building NetBSD under NetBSD Documentation pages for details.
Follow the crosscompiling instructions to
cross-build an sgimips release (ie build.sh release
), then go to
the src/etc
directory and use the nbmake-sgimips wrapper
created in your tool directory to make a bootable cd:
$TOOLDIR/bin/nbmake-sgimips iso-image |
The resulting image can be burnt to CD-RW using your regular cd-writing tools.
Here's a method to set the ethernet address that works on at least the Indy, and perhaps also other machines with HPC3's.
All disclaimers apply yadda yadda.
At the PROM prompt:
dump -w -x 0xbfbe04e8 |
Sanity check the output here to see if it matches the address given in the 'ec0: bad ethernet address' error message. If not, you may not want to overwrite whatever is there instead.
fill -w -v 0xGG 0xbfbe04e8 fill -w -v 0xHH 0xbfbe04ec fill -w -v 0xII 0xbfbe04f0 fill -w -v 0xJJ 0xbfbe04f4 fill -w -v 0xKK 0xbfbe04f8 fill -w -v 0xLL 0xbfbe04fc |
Where GG:HH:II:JJ:KK:LL is the intended ethernet address. It's a very good idea to reuse the address the machine was shipped with. Check the back of the machine if you cannot remember it.
Power down, wait one full minute and then power up. All variables will have been reset as with the resetenv command, except $eaddr.
The PROM tftp client on SGI machines can fail with default NetBSD tftpd settings. The problem is that your current PROM may not support port numbers with the sign bit set. The workaround is to limit the port numbers of anonymous connections to 32767. The following tunables should fix your problem:
# sysctl -w net.inet.ip.anonportmin=20000 # sysctl -w net.inet.ip.anonportmax=32767 |
There are a few gotchas depending on your PROM version and the OS (SASH) version installed: