[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interface media selection in NFS boot
Hi,
I'm trying to boot a machine, with root filesystem on NFS. Therefore I
created a special boot floppy with all the necessary drivers etc.
The kernel on the floppy boots, detects the NIC and correctly sets the
nfs_boot network interface (in this case 'ne3'), but then I get a kernel
panic:
panic: revarp failed, error=51
The error number 51 actually means ENETUNREACH, and indeed there are no
packets going out the interface. The 'traffic' light on the NIC flickers
though, so it is trying to send the RARP packets. Since this is a combo
card, i.e. it has 10base2 and 10baseT ports, I think it is just trying to
send it over the 10base2 port, which I am NOT using.
I'm now trying to edit sys/nfs/nfs_boot.c to hard-code the media interface
to 10baseT, but as I'm not exactly fluent in kernel programming land, I
really don't know how to do it. Looking into sbin/ifconfig/ifconfig.c and
if_media.c hasn't helped much either.
Does anyone know how to do this, or is there a better solution?
TIA!
Wouter Clarie