Saturday, September 09, 2006

Cobalt RAQ2 Netboot config

Netbooting a Cobalt RAQ2 (this should become a tech note)
This covers up through 1.6.2. Later versions may work, but a custom, very stripped down kernel must be used due to hardware limitations.

This setup was done on a Soekris running 3.1_RC2. The Raq2 was connected to the 3rd ethernet (sip2).

Most of this information is scattered amongst half a dozen man pages.

Containing directory where .tgz's were unpacked. Make sure that .../netbsd.gz is the compressed version of .../netbsd. You can do as much setup as you'd like. IP address information will get configured automatically.
/net/cobalt/root

MAC Address of Raq2:
00:10:e0:00:70:88

NFS configuration
/etc/exports:
/net/cobalt/root -maproot=0 -network 192.168.251.0/24

rarp configuration
/etc/ethers
00:10:e0:00:70:88 192.168.251.10

/etc/hosts
192.168.251.10 raq2

DHCPD configuration
ddns-update-style none;
subnet 192.168.251.0 netmask 255.255.255.0 {
}

host raq {

hardware ethernet 00:10:e0:00:70:88; # raq MAC
fixed-address 192.168.251.10; # raq address
filename "/netbsd.gz"; # kernel name in root-path
option root-path "/net/cobalt/root"; # absolute dir on nfs server

server-name="192.168.251.2"; # IP of nfs server
}


Addition to /etc/rc.conf:
ifconfig_sip2="192.168.251.2/24"
nfs_server=YES
rpcbind=YES

mountd=YES
rarpd=YES
rarpd_flags="sip2"
dhcpd=YES
dhcpd_flags="sip2"


Boot command on the raq2, to be entered at the prom prompt (space during hardware inventory drops to prom, gotta be fast!):
bfd /netbsd.gz root=/dev/nfs nfsroot=/net/cobalt/root


TODO: get rid of the "ask" after the kernel autoconfs, before it continues startup.

No comments: