nfe/PXE problem

Danny Braniss danny at cs.huji.ac.il
Tue Mar 13 07:10:39 UTC 2007


> well, I can PXE boot this box if I use an fxp NIC, with the nfe I tracked the 
> problem
> to sys/nfsclient/nfs_diskless, where in nfs_setup_diskless(void)
> it does not find the nfe interface, ie, something does not match, but the 
> interface
> was detected!.
> i'll try and do some more debugging.
> 
ok, I found the problem, in nfs_diskless.c nfs_setup_diskless(),
there is a loop to search for the interface that was used to boot from,
and no match is found because the hadrware ethernet address
in the nfe is in the wrong byte order! and so the bcmp(...) fails.
Interestingly, if booting NOT via PXE the Ethernet address is OK!

nfe0: <NVIDIA nForce 430 MCP13 Networking Adapter> port 0xdc00-0xdc07 mem 
0xfe02c000-0xfe02cfff irq 22 at device 20.0 on pci0
	nfe0: Ethernet address: 00:18:f3:a9:6c:57
and via PXE:
	nfe0: Ethernet address: 57:6c:a9:f3:18:00

can someone with the right knowledge fix this?

thanks,
	danny




More information about the freebsd-current mailing list