From owner-freebsd-current@FreeBSD.ORG Tue Mar 13 07:10:39 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DBDA316A401 for ; Tue, 13 Mar 2007 07:10:39 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id A029413C44B for ; Tue, 13 Mar 2007 07:10:39 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1HR19a-000BDp-BN; Tue, 13 Mar 2007 09:10:38 +0200 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-current@freebsd.org In-reply-to: Your message of Thu, 08 Mar 2007 16:29:28 +0200 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 13 Mar 2007 09:10:38 +0200 From: Danny Braniss Message-ID: Cc: Pyun YongHyeon Subject: Re: nfe/PXE problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Mar 2007 07:10:39 -0000 > 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: 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