From owner-freebsd-arm@freebsd.org Wed Oct 25 21:03:56 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EB547E543F0 for ; Wed, 25 Oct 2017 21:03:56 +0000 (UTC) (envelope-from iz-rpi03@hs-karlsruhe.de) Received: from smtp.hs-karlsruhe.de (smtp.HS-Karlsruhe.DE [193.196.64.25]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B5E8382253 for ; Wed, 25 Oct 2017 21:03:56 +0000 (UTC) (envelope-from iz-rpi03@hs-karlsruhe.de) Received: from iz-wera01.hs-karlsruhe.de ([193.196.65.46]) by smtp.hs-karlsruhe.de with esmtp (Exim 4.80.1) (envelope-from ) id 1e7Sq4-00158a-Hs; Wed, 25 Oct 2017 22:03:48 +0100 X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.6 From: Ralf Wenk To: Sylvain Garrigues cc: freebsd-arm@freebsd.org Subject: Re: rpi3 - changing MAC address of ue0 between GENERIC and GENERIC-NODEBUG kernels In-reply-to: References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Wed, 25 Oct 2017 23:03:48 +0200 Message-Id: X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2017 21:03:57 -0000 Hello, Sylvain Garrigues wrote: > Hello, >=20 > > Le 24 oct. 2017 =E0 09:33, Ralf Wenk a = =E9crit : > >=20 > > the MAC address of the ue0 interface on my > > rpi 3 is changing=20 >=20 > In the RPI case, the MAC address as seen by FreeBSD is read by the > if_smc kernel driver from the mac-address or the local-mac-address > property of the boot dtb (see code in sys/dev/usb/net/if_smc.c). > Otherwise it is indeed set to a random value during boot.=20 >=20 > Obviously the stock DTB (either upstream ones or FreeBSD ones) don’t > know the MAC address, so the actual and real HW MAC address is > initialized by the rpi firmware in the node pointed to by the > “ethernet” alias in the dtb.=20 oh. I had the expectation =22when it works as expected for an RPI B and a B+ it will/should also work for an RPI 3=22. > There were changes a few months ago both in upstream DTBs and firmware > related about this: see for instance > https://github.com/raspberrypi/firmware/issues/846 and > https://github.com/raspberrypi/firmware/commit/23047785b7414111cb7cb80a= a9d0042c99fae437 >=20 > 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 issue. >=20 > Sylvain OK, so I will try the current raspbian first to get the hopefully constant MAC address for my board from there. After that I will try the newer versions step by step. Thank you. Ralf