From nobody Mon Sep 25 18:02:42 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 4RvW1r6ckBz4trr1 for ; Mon, 25 Sep 2023 18:02:56 +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 4RvW1r4HCdz3GgW for ; Mon, 25 Sep 2023 18:02:56 +0000 (UTC) (envelope-from pmh@hausen.com) Authentication-Results: mx1.freebsd.org; none Received: from smtpclient.apple (87.138.185.145) by mail2.pluspunkthosting.de (Axigen) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA id 27A0CC; Mon, 25 Sep 2023 20:02:53 +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: Mon, 25 Sep 2023 20:02:42 +0200 Cc: Ronald Klop , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <0783DA55-E91C-43DB-8D0F-C3F0FCF7FC4A@hausen.com> References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> <84C20AD4-1F37-414E-8808-60A2C9B621D9@karels.net> <4951c134-39be-43de-0aa7-430a136d8b36@FreeBSD.org> <2071C2B6-B61A-40E0-8DA2-1E23D463B2E9@hausen.com> <8305B36C-9DFE-4FF1-A836-80F2931A6A46@hausen.com> To: Mark Millard X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE] X-Rspamd-Queue-Id: 4RvW1r4HCdz3GgW Hi, > Am 25.09.2023 um 19:54 schrieb Mark Millard : >=20 > Definately not, in multiple ways. >=20 > 0) Having multiple Ethernet adapters plugged in can all be used > over the same time frame. The MAC addresses need to be distinct. >=20 > 1) RPi4B's and the like are not set up to have such MAC addresses. > Only older RPi*'s are. You are correct. Yet CM3+ is what I am using. This is as far as I understood an official RPi Foundation document on the topic: = https://pip.raspberrypi.com/categories/685-whitepapers-app-notes/documents= /RP-003474-WP/Changing-MAC-addresses.pdf > How are MAC addresses generated? >=20 > The MAC address is the set of six hexadecimal numbers of the form = aa:bb:cc:dd:ee:ff. > 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. > This address is generated on startup by the firmware, and passed on to = the Linux kernel for use by the Ethernet driver. And this is what I am referring to. My company runs a a handfull of RPi3, I have this TuringPi with seven = CM3+ which I ran under various versions of Ubuntu or Raspbian/Raspberry Pi OS - and = when run under Linux they all do this. Kind regards, Patrick=