From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 03:23:50 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 2AC1C16A4C0 for ; Fri, 22 Aug 2003 03:23:50 -0700 (PDT) Received: from radix.sorted.org (radix.sorted.org [194.70.217.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D9D843FAF for ; Fri, 22 Aug 2003 03:23:48 -0700 (PDT) (envelope-from pete@sorted.org) Received: from sorted.org (bubble.sorted.org [194.70.217.145]) by radix.sorted.org (Postfix) with ESMTP id 772662B830 for ; Fri, 22 Aug 2003 11:23:47 +0100 (BST) Date: Fri, 22 Aug 2003 11:23:54 +0100 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: Pete Bentley To: freebsd-sparc64@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20030822013101.A24406@newtrinity.zeist.de> Message-Id: X-Mailer: Apple Mail (2.552) Subject: Re: Netra X1 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: Fri, 22 Aug 2003 10:23:50 -0000 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? > The patch should work (I'm just not sure about the different MAC > addresses > part), I'll have a play with it - it looks helpful but not quite right. For example if dc_read_eeprom() ever gets a non-zero mac address it'll skip over the OF code. Also if local-mac-address? is true it looks like it'll leave a zeroed MAC address on the interface, but for local-mac-address? being false, it'll program the interface with the hosts's MAC address. That last case is handy for me and possibly others running X1's... > however Maxime doesn't want to have this in the device driver but > at a higher level. I'd agree with that - otherwise doesn't every ethernet driver on sparc64 need extra code to decide whether to respect the local-mac-address setting? Pete.