Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2007 09:10:38 +0200
From:      Danny Braniss <danny@cs.huji.ac.il>
To:        freebsd-current@freebsd.org
Cc:        Pyun YongHyeon <pyunyh@gmail.com>
Subject:   Re: nfe/PXE problem
Message-ID:  <E1HR19a-000BDp-BN@cs1.cs.huji.ac.il>
In-Reply-To: Your message of Thu, 08 Mar 2007 16:29:28 %2B0200 .

next in thread | raw e-mail | index | archive | help

> 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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E1HR19a-000BDp-BN>