Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Nov 2016 18:32:35 +0100
From:      diffusae <punasipuli@t-online.de>
To:        Ian Lepore <ian@freebsd.org>, freebsd-arm@freebsd.org
Subject:   Re: How to change MAC address on RPI-B?
Message-ID:  <c6fa555d-25d8-acc3-fd7f-322abe278b2f@t-online.de>
In-Reply-To: <1480137719.1889.98.camel@freebsd.org>
References:  <001701d245ce$e64e33f0$b2ea9bd0$@Kitz@xs4all.nl> <454137dc-30f7-cd33-6c75-0cc3045090dd@t-online.de> <002801d24755$f9017420$eb045c60$@Kitz@xs4all.nl> <177ae37f-db52-c7ee-77fa-d9bc7d61b4ee@t-online.de> <1480137537.1889.97.camel@freebsd.org> <1480137719.1889.98.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ian,

I've applied it to the sysutils/u-boot-rpi port and test the package
with the RPI-B. The configured usbethaddr is set in the u-boot
environment, but it will not passed to the kernel via the FTD blob. The
FreeBSD kernel always have the BIA of the NIC.

But I think, you are right, the RPis FTD data is available before the
u-boot enviroment is set.

So unfortunately that doesn't work a the moment.

Best regards,

On 26.11.2016 06:21, Ian Lepore wrote:
>> I looked into this tonight, and there is some code missing in u-boot
>> > to
>> > handle passing a mac address set in the u-boot environment into the
>> > kernel via the fdt data.
>> > 
>> > It would be pretty simple to fix.  We need to add an ethernet0 alias
>> > pointing to the /axi/usb/hub/ethernet node to our rpi dts, and the
>> > attached patch needs to replace the current one in the u-boot-rpi
>> > port.
>> > 
>> > This lets you set usbethaddr in the u-boot environment (via uEnv.txt
>> > or
>> > saved directly using saveenv), and it will get used by both u-boot
>> > and
>> > freebsd.
>> > 
>> > Having gotten it this far, I don't really have time right now to get
>> > the patch committed to ports.  Hopefully somebody else can help with
>> > that.
>> > 
>> > -- Ian
> Looks like I forgot to attach the patch.  Try again...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c6fa555d-25d8-acc3-fd7f-322abe278b2f>