From nobody Wed Sep 20 20:02:55 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RrTwq6RpMz4v6NH for ; Wed, 20 Sep 2023 20:03:07 +0000 (UTC) (envelope-from pmh@hausen.com) Received: from mail2.pluspunkthosting.de (mail2.pluspunkthosting.de [217.29.33.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrTwp6rGgz4DxS for ; Wed, 20 Sep 2023 20:03:06 +0000 (UTC) (envelope-from pmh@hausen.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of pmh@hausen.com designates 217.29.33.228 as permitted sender) smtp.mailfrom=pmh@hausen.com; dmarc=none Received: from smtpclient.apple (87.138.185.145) by mail2.pluspunkthosting.de (Axigen) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA id 1EE90B; Wed, 20 Sep 2023 22:03:05 +0200 Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Getting a stable MAC address for a RPI CM3+ with ue0 interface From: "Patrick M. Hausen" In-Reply-To: Date: Wed, 20 Sep 2023 22:02:55 +0200 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <9D4027A9-1D1A-44EC-BAA7-8E439CD72E8B@hausen.com> References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> To: Mark Millard X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.79 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.986]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:mail2.pluspunkthosting.de]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; FREEMAIL_TO(0.00)[yahoo.com]; R_DKIM_NA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[hausen.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4RrTwp6rGgz4DxS And some more answers ... On the Raspberry Pi forums, I found a link to this document: = https://pip.raspberrypi.com/categories/685/documents/RP-003474-WP/RP-00347= 4-WP-1.pdf Important part: > On devices prior to the Raspberry Pi 4x the MAC address is generated = from the Raspberry Pi serial number. > For example, if your Raspberry Pi serial number is 58d2ec5c, the MAC = address will be generated from the > bottom six nibbles, combined with the Raspberry Pi Foundation = Organizationally Unique Identifier (OUI), > which is b8:27:eb, so the final MAC address would be = b8:27:eb:d2:ec:5c. >=20 > This address is generated on startup by the firmware, and passed on to = the Linux kernel for use by the Ethernet driver. So it seems like it would be on the FreeBSD kernel to read this = information and pass it down to whatever driver is managing the actual device. I am suprised I am the first to notice this? Am I? Kind regards, Patrick=