this is obsolete doc -- see instead

NetBSD/sparc network boot 



Installation server here is a NetBSD/i386 6.1 system with two network interfaces: 

- fxp0 which is connected to the local network, 

- rtk0 which serves the installation service for many hardware plateforms. I use a cross-over network cable against each machine I need to bootstrap. 


Say you've got a Sparcstation 5 with ethernet address cc:cc:cc:cc:cc:cc, and you want to assign the IP address to it during the installation. 


Using GNU screen is a good option to consider: 

- one windows for rarp daemon debug output, 

- one windows for system logs, 

- one window for other configurations. 


Setting up the RARP daemon 

Configure RARP daemon on the install server (use a separate window to let it live), 

cd /etc/
echo "cc:cc:cc:cc:cc:cc" > ethers

  rarpd -d rtk0 

Note. -a to listen on all interfaces. 

Note. -d for debug mode, let you see what MAC addresses are asking for answers. 


Setting up the TFTP service 

Make sure tftp is configured to serve '/tftpboot' specificly (-s /tftpboot), 

grep ^tftp /etc/inetd.conf

and make sure it is running, 

ps aux | grep inetd


Calculate the HEX code for that target IP address you want to assign the the host system, 


==> 0A010109 (don't forget to add a zero if you only got one alphanumeric char for the hex bit) 


Fetch the boot code from your NetBSD FTP mirror, 

cd /tftpboot/
ftp -a
ln -s 0A010109.SUN4M


Setting up the DHCP daemon 

Make sure you've got those in your dhcpd.conf, 

host sparcstation5 {
        hardware ethernet cc:cc:cc:cc:cc:cc;
        option root-path "/var/data/sparc";

note. Change the MAC address accordingly. 

and make sure it is running, 

ps aux | grep dhcpd


Setting up the NFS daemons 

Proceed e.g., 

cd /etc/
cat >> rc.conf <<EOF9
cat >> exports <<EOF9
/var/data               -ro -mapall=nobody -alldirs


Preparing the kernel and installation root file system 

Proceed e.g., 

cd /var/data/
mkdir -p sparc/
cd sparc/
ftp -a
ftp -a
tar xzpf rootfs.tgz
ln -s netbsd-GENERIC.gz netbsd.gz

Note. don't forget the 'p' option with tar! 


Last checks 

Check again that all the needed network services are up and running, 

/etc/rc.d/inetd restart
/etc/rc.d/dhcpd restart
ps aux | grep rarpd
ps aux | grep inetd
ps aux | grep dhcpd

and in another window, 

pkill rarpd
rarpd -d rtk0


Ready to go 

On the ok prompt, 

setenv auto-boot? false

back to the ok prompt, 

boot net

Note. don't forget to read the logs on the install server at the same time. 



If nothing happens on the install server in the RARPD windows, aswell as on the sparc client, nothing but an RARP reply, don't forget to read the logs to check if the file name has the right HEX naming. 


If you get, 

Can't open NFS network connection on ...
Cannot load netbsd: error=13

check that root-path option in dhcpd.conf points to the prepared root file system folder on the NFS share (alldirs if it's a subdir). 





Installing NetBSD by using a netboot setup 


Introduction (sparc- and sun3-specific), Diskless NetBSD HOW-TO 


How to netboot and install NetBSD/sparc 


Installazione di NetBSD su una Sun SparcStation 1 via rete 


Installing NetBSD via netboot on a Sparcstation 5