Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2017 15:07:49 +0200
From:      Sylvain Garrigues <sylgar@gmail.com>
To:        Ralf Wenk <iz-rpi03@hs-karlsruhe.de>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: rpi3 - changing MAC address of ue0 between GENERIC and GENERIC-NODEBUG kernels
Message-ID:  <C6AF9BA2-22DD-4D51-83E9-E5380E3E29B1@gmail.com>

next in thread | raw e-mail | index | archive | help
Hello,

> Le 24 oct. 2017 =C3=A0 09:33, Ralf Wenk <iz-rpi03@hs-karlsruhe.de> a =C3=A9=
crit :
>=20
> the MAC address of the ue0 interface on my
> rpi 3 is changing=20

In the RPI case, the MAC address as seen by FreeBSD is read by the if_smc ke=
rnel driver from the mac-address or the local-mac-address property of the bo=
ot dtb (see code in sys/dev/usb/net/if_smc.c). Otherwise it is indeed set to=
 a random value during boot.=20

Obviously the stock DTB (either upstream ones or FreeBSD ones) don=E2=80=99t=
 know the MAC address, so the actual and real HW MAC address is initialized b=
y the rpi firmware in the node pointed to by the =E2=80=9Cethernet=E2=80=9D a=
lias in the dtb.=20

There were changes a few months ago both in upstream DTBs and firmware relat=
ed about this: see for instance https://github.com/raspberrypi/firmware/issu=
es/846 and https://github.com/raspberrypi/firmware/commit/23047785b7414111cb=
7cb80aa9d0042c99fae437

You may want to try to download / compile more recent versions of firmware /=
 DTB / u-boot than the 2017.01 from ports and check if they solved this issu=
e.

Sylvain=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C6AF9BA2-22DD-4D51-83E9-E5380E3E29B1>