From owner-freebsd-arm@FreeBSD.ORG Wed Nov 14 15:21:18 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EA09F2A5 for ; Wed, 14 Nov 2012 15:21:18 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from duck.symmetricom.us (duck.symmetricom.us [206.168.13.214]) by mx1.freebsd.org (Postfix) with ESMTP id 9DA078FC14 for ; Wed, 14 Nov 2012 15:21:11 +0000 (UTC) Received: from damnhippie.dyndns.org (daffy.symmetricom.us [206.168.13.218]) by duck.symmetricom.us (8.14.5/8.14.5) with ESMTP id qAEFL5I3093778 for ; Wed, 14 Nov 2012 08:21:05 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id qAEFL2vg023732; Wed, 14 Nov 2012 08:21:02 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) Subject: Re: dreamplug: setting ethernet address by hand, getting pkgng to work, wireless? From: Ian Lepore To: Johan Henselmans In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Wed, 14 Nov 2012 08:21:01 -0700 Message-ID: <1352906461.1217.141.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Nov 2012 15:21:19 -0000 On Wed, 2012-11-14 at 11:56 +0100, Johan Henselmans wrote: > I still do not get the hardware ethernet addresses from the machine > (it still reports 00:00:00:00:00:00), so I decided to set them > manually in /etc/start_if.mge0: > > dramplug-bsd:~ # cat /etc/start_if.mge0 > ifconfig mge0 ether f0:ad:4e:01:44:46 I didn't have any trouble with this, both my interfaces got good addresses automatically. Looking at the mge driver code, it wants to use the local-mac-address property from the .dts file as long as it's not all zeroes. If it is all zeroes, it uses the value already programmed into the hardware. In my case, I would always let uBoot set up both interfaces and then boot the unit via TFTP, so maybe I was getting good mac addresses because uBoot set them up and the mge driver just used those values. -- Ian