From owner-freebsd-arm@freebsd.org Tue Oct 24 13:07:53 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 8D421E4C72A for ; Tue, 24 Oct 2017 13:07:53 +0000 (UTC) (envelope-from sylgar@gmail.com) Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 14F3C82BA9 for ; Tue, 24 Oct 2017 13:07:53 +0000 (UTC) (envelope-from sylgar@gmail.com) Received: by mail-wm0-x22b.google.com with SMTP id t69so15615965wmt.2 for ; Tue, 24 Oct 2017 06:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :cc:to; bh=WhkSGmTpN+BqfXmBrWMaSciH2BQtwUEEITuhHqXzXd0=; b=F6T0soH23fbKzQmDxiWV+ezG7Bf0sbyYqyGelSETXi8UwPkbvmymys6jy7RTZkvt1K mVYFCKR5us630ze+nDTM9v4Zf8InAvxlGMCqHOBfLCWp7jBst7i2gnv6zIYFUEOKGxlD Du0mdzN//b7bfa4xRECvKpgufQH7P25cnOQ9i/Ssf4Tb0K5khfJ3EkfD1wodFqnXnzPK RvYCW10Bg5edKs5UCj3ptlBdmYrGsvu8YmfduF3cFfaX/MIqUCIblG4uBmJ5MDgtVGaD PB34YIeD5CFUvY0H6pKv4uteXEujaUEzhN3P3ed4967E806ODSJgbjVcrtbDcDtB+iHe VRFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:cc:to; bh=WhkSGmTpN+BqfXmBrWMaSciH2BQtwUEEITuhHqXzXd0=; b=L3E124k4Bkr/+VYAn3uIHDBzu8CfSMB0lw4Dt4vF2U8VroSJ6+p1nB0GkPLRP2K7DQ 1RlpwFjZWFO3+Y2Us7fjTegrczxjtUEnJwoGQZv3Q/WLlfDdGtNe8ZN357wLcadhwW0l 8lauLrfCYocCvjBJTTOmHQiP0ral6jzzIJyAplih7Usw/BSUAn6kLKNj2IPeN7w539SN Wxekt2GcKx0dEwdtgzsUNCYUjZpewQR50od6vmkpPBimSxn6ZezJqY+3TwYKN/f1TO13 UaY2GJoDqd0/1VtP4pbPbBWxqMyl1ABM4qE+JnVIF85Ts1fh4/tC0DDIR1dQ1hpSBjIY BGmg== X-Gm-Message-State: AMCzsaWHfQEAMXofkdS106BKK1MEgQWi3tRZIbV00gWzMMOypq1t+zw5 O/a33ExpcxGVZqjuvnxFlNkWS2Uf X-Google-Smtp-Source: ABhQp+RwXHBp0n5Y0oa589UO5f2bl4I5ZJSyLopTJJpZgY1fk7aFNuIjJ59NUcAQOIGNjXV5utfFZg== X-Received: by 10.28.54.154 with SMTP id y26mr8947094wmh.15.1508850471368; Tue, 24 Oct 2017 06:07:51 -0700 (PDT) Received: from [192.168.1.79] (lns-bzn-40-82-251-149-119.adsl.proxad.net. [82.251.149.119]) by smtp.gmail.com with ESMTPSA id n138sm332538wmd.3.2017.10.24.06.07.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Oct 2017 06:07:50 -0700 (PDT) From: Sylvain Garrigues Mime-Version: 1.0 (1.0) Date: Tue, 24 Oct 2017 15:07:49 +0200 Subject: Re: rpi3 - changing MAC address of ue0 between GENERIC and GENERIC-NODEBUG kernels Message-Id: Cc: freebsd-arm@freebsd.org To: Ralf Wenk X-Mailer: iPhone Mail (15A432) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Tue, 24 Oct 2017 13:07:53 -0000 Hello, > Le 24 oct. 2017 =C3=A0 09:33, Ralf Wenk 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=