From owner-freebsd-arm@FreeBSD.ORG Thu Nov 15 10:28:49 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 B760B73B for ; Thu, 15 Nov 2012 10:28:49 +0000 (UTC) (envelope-from johan@netsense.nl) Received: from mail.netsense.nl (pretsense.xs4all.nl [82.161.36.79]) by mx1.freebsd.org (Postfix) with ESMTP id E0B088FC12 for ; Thu, 15 Nov 2012 10:28:48 +0000 (UTC) Received: (qmail 27015 invoked from network); 15 Nov 2012 11:28:44 +0100 Received: from unknown (HELO ?172.16.79.105?) (johan@172.16.79.105) by mail.netsense.nl with AES128-SHA encrypted SMTP; 15 Nov 2012 11:28:44 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: dreamplug: setting ethernet address by hand, getting pkgng to work, wireless? From: Johan Henselmans In-Reply-To: <1352906461.1217.141.camel@revolution.hippie.lan> Date: Thu, 15 Nov 2012 11:28:46 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <5BA85CA3-1C3E-4C9E-8851-024BE12236CD@netsense.nl> References: <1352906461.1217.141.camel@revolution.hippie.lan> To: "freebsd-arm@freebsd.org" X-Mailer: Apple Mail (2.1499) 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: Thu, 15 Nov 2012 10:28:49 -0000 On 14 nov. 2012, at 16:21, Ian Lepore = wrote: > 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: >>=20 >> dramplug-bsd:~ # cat /etc/start_if.mge0 >> ifconfig mge0 ether f0:ad:4e:01:44:46=20 >=20 > 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. >=20 > 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. >=20 > -- Ian >=20 >=20 Found the culprit: replacing the uboot firmware with the latest version = caused the uboot environment variables for the ethernet hardware to = disappear,=20 by setting ethaddr and eth1addr in the uboot environment, that got = solved.=20 Example: Marvell>> setenv ethaddr f0:ad:4e:01:xx:xx Marvell>> setenv eth1addr f0:ad:4e:01:xx:xx Marvell>> saveenv Marvell>> reset Johan Henselmans johan@netsense.nl