From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 29 18:58:49 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23FCE16A4BF for ; Fri, 29 Aug 2003 18:58:49 -0700 (PDT) Received: from newtrinity.zeist.de (newtrinity.zeist.de [217.24.217.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 023F443FE3 for ; Fri, 29 Aug 2003 18:58:48 -0700 (PDT) (envelope-from marius@newtrinity.zeist.de) Received: from newtrinity.zeist.de (localhost [127.0.0.1]) h7U1wilc087951; Sat, 30 Aug 2003 03:58:44 +0200 (CEST) (envelope-from marius@newtrinity.zeist.de) Received: (from marius@localhost) by newtrinity.zeist.de (8.12.9/8.12.9/Submit) id h7U1wcdS087950; Sat, 30 Aug 2003 03:58:38 +0200 (CEST) (envelope-from marius) Date: Sat, 30 Aug 2003 03:58:38 +0200 From: Marius Strobl To: Pete Bentley Message-ID: <20030830035838.A87651@newtrinity.zeist.de> References: <20030822013101.A24406@newtrinity.zeist.de> <352D3384-DA81-11D7-8C90-000A959F6E56@sorted.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <352D3384-DA81-11D7-8C90-000A959F6E56@sorted.org>; from pete@sorted.org on Sat, Aug 30, 2003 at 01:30:50AM +0100 cc: freebsd-sparc64@freebsd.org Subject: Re: Netra X1 - Status query and stupid question X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2003 01:58:49 -0000 On Sat, Aug 30, 2003 at 01:30:50AM +0100, Pete Bentley wrote: > On Friday, August 22, 2003, at 12:31 AM, Marius Strobl wrote: > > Just curious, could you please try the attached patch and check if the > > MAC addresses get set and then set local-mac-address in the > > OpenFirmware > > and check again if the dc interfaces get different MAC addresses? > > Sorry for being a bit slow here, had other issues to deal with. > > I've just tried this patch - applies fine, builds fine (prevents the > dc module from building, but I simply disabled that as a workaround). Adding the following to sys/modules/dc/Makefile should fix this: .if ${MACHINE_ARCH} == sparc64 SRCS+= opt_ofw_pci.h .endif > > Tried it with and without local-mac-address set and with versions 1.0.1 > and 1.0.18 of the Netra boot PROM and it works the same in all 4 > instances... > > Works the same as Solaris 9, that is dc0 gets the hosts's MAC address > and dc1 > gets that address 'plus 1' (see output below). > > So in effect, local-mac-address is ignored but in a way that isn't > likely > to matter. > This is strange, it rather looks like local-mac-address is always true for these interfaces, or at least for the second one. You could add a printf() to check if the call to OF_getprop() fails and the node address then gets read via OF_getetheraddr(). Thanks for testing!