Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Nov 2012 08:21:01 -0700
From:      Ian Lepore <freebsd@damnhippie.dyndns.org>
To:        Johan Henselmans <johan@netsense.nl>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: dreamplug: setting ethernet address by hand, getting pkgng to work, wireless?
Message-ID:  <1352906461.1217.141.camel@revolution.hippie.lan>
In-Reply-To: <F137417B-EB90-4E32-8BB2-E23C9BDBE28A@netsense.nl>
References:  <F137417B-EB90-4E32-8BB2-E23C9BDBE28A@netsense.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
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





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1352906461.1217.141.camel>