Saturday, September 8, 2007

PXE Booting Soekris Net4826

I managed to wedge my soekris box by not running lilo after replacing the kernel, this is the process of getting it back up again. I already had a dhcp server running, and I already had a kernel floating around.

Installed: tftpd-hpa, syslinux.

Copy:

cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot
cp /path/to/kernel /var/lib/tftpboot


Setup Config:

mkdir /var/lib/tftpboot/pxelinux.cfg

Edit /var/lib/tftpboot/pxelinux.cfg/default

prompt 1
default soekris
timeout 100

label soekris
kernel vmlinuz-2.4.31-sysnet-wireless-2
append console=ttyS0,19200

Add an appropriate entry in dhcpd.conf:

host soekris {
hardware ethernet ma:ca:dd:rh:er:e!;
fixed-address address/hostname;
filename "pxelinux.0";
server-name "tftpserver here";
}

Make sure you turn on the tftpd server in /etc/default/tftpd-hpa.

Attach a serial cable to the soekris box, and connect to it (set serial because the serial port was stubborn):

setserial /dev/ttyS0 baud_base 19200
cu -l /dev/ttyS0 -s 19200


Boot the soekris box, with luck, you get some output (I got garbage until the setserial). Press ctrl-p to get to the manager menu, and use boot F0 to initiate a netboot. With luck, the console appears, and you can rectify whatever you messed up (in my case, I ran lilo).

0 comments: