From nobody Wed Sep 20 21:06:57 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 4RrWLq3BQMz4v9ts for ; Wed, 20 Sep 2023 21:07:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-24.consmr.mail.gq1.yahoo.com (sonic311-24.consmr.mail.gq1.yahoo.com [98.137.65.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrWLp6RzQz4Npx for ; Wed, 20 Sep 2023 21:07:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695244033; bh=H1jlu/wpIA5rSTaO3VVA1QaoGg2J1yYlixwHx2zsUh4=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=jA6p5uheto4k19+B8lYNVs/Kr90OYjJlWuoSmtHGxjUJpJoBd7AndTfqLnh1bZRhcSskmrbHhK8VuyxWjaR8IRAFb89jUt1YISEoyRCTNwxc4gdGnIJZltq9VWgWth/wig4MdFCvJJ+C1GPDFg593Wefb3cLlmhvsp7TuBfhrxfwJEK5f5+xFpWxhZ5Jep2hiUZkqdWRmZcpDaWB9mmN+0ihe87FQlC4RVlqsAdTBp/Am7fEIm0o6kLEWPzouVaLwuYSVTeUBbp3Or1goyACsGlZLga1R0BC6i9B3gK6gcqUySNw4r8VKToDZ0+s+XWj8J/uGMbaM4ghh73QZiVniQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695244033; bh=SjO38/HTTsgT7GHm+CfK2salqeAZm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mqfp1arSpV8HNQq0ROqmtB6H6sCItGQxKfzfAdZPTkau7LX_D0y9C8 PDHa43Louqn5ci.vSVgW8zbkgu7fnjXT8acvov5esnGoOdShb6h9PTckvda1ywcZ1bjcFe.zkSxp gbKuWMblbvz1uCNRzWhBWs1VPMD_qqH8No7kqlma6_VpnG67YRMTOZpzK3NgExbUkGWpXCCB7dHg oXekpqoZ9ZJPtUIYUszptx9Pp9Unr9qGBRFpK10Q8qe9GWxMD1Llx2bwfcE79oX7cRLAkxv3mpy3 1CPIunNQR9hRwq7bfpVsne4E1Cfy7V9.Bar.Did1oGrc00UM62r6S_NG7mapo_LT.g6.iLwxJD1B lIfqSQdJ3AKVP6ohKUCwR2F0m9hs74e8Q1k56XGQiOW5zgVzRjI5YFFDx4iTnOQhMVuEysYdBfM5 LAIi.3iVH9NHNwrDsZN7wZDJF8u9JvcQeEqkbIP9A5NZJyRpehAAy32b8UjLlVJKlYaDn1ag5PHE R0tHLG2JlvGmnt36NYjsx1iZwYGkUwhEAXZN4VZnEZrLW0fXPDE.U9bHI3GI5wWSUrNpUl1dE X-Sonic-MF: X-Sonic-ID: 387a327e-5a94-4129-b246-2d5b02467e56 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Wed, 20 Sep 2023 21:07:13 +0000 Received: by hermes--production-ne1-6cbd549489-k2llt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 115f50be625b2b8c83593a14439f7b46; Wed, 20 Sep 2023 21:07:08 +0000 (UTC) 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: Mark Millard In-Reply-To: <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> Date: Wed, 20 Sep 2023 14:06:57 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <2093E18F-3F37-4C0B-8A73-2E85A631E30E@yahoo.com> References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> To: "Patrick M. Hausen" 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:36647, ipnet:98.137.64.0/20, country:US] X-Rspamd-Queue-Id: 4RrWLp6RzQz4Npx On Sep 20, 2023, at 12:05, Patrick M. Hausen wrote: > Hi! Hello. >=20 >> Am 20.09.2023 um 20:25 schrieb Mark Millard : >> Quoting a post from a "Raspberry Pi Engineer & Forum Moderator" >> (PhilE) from https://forums.raspberrypi.com/viewtopic.php?t=3D327562 = : >>=20 >> QUOTE >> Re: /boot/cmdline.txt help >> Thu Jan 13, 2022 8:35 am >>=20 >> And on all Pis you can use the config.txt setting = "force_mac_address": >>=20 >> force_mac_address=3Daa:bb:cc:dd:ee:ff >> END QUOTE >>=20 >> That makes the live dtb match and is the earliest assignment >> available, before any external visability. >=20 >=20 > No worky. Too bad. https://lists.freebsd.org/archives/freebsd-arm/2022-July/001517.html is a message indicating successful use on two RPI3*'s that had the same default MAC address, forcing one to be distinct: QUOTE With the files on the 13.1R image force_mac_address seems to work. END QUOTE I will note that no special U-Boot/FreeBSD-loader/FreeBSD-kernel context or update was needed. > root@generic:~ # ifconfig ue0 > ue0: flags=3D1008843 = metric 0 mtu 1500 > options=3D80009 > ether 5e:2f:31:ef:bc:b4 >=20 > root@generic:~ # cat /boot/efi/config.txt=20 > [all] > arm_64bit=3D1 > dtparam=3Daudio=3Don,i2c_arm=3Don,spi=3Don > dtoverlay=3Dmmc > dtoverlay=3Ddisable-bt > device_tree_address=3D0x4000 > kernel=3Du-boot.bin > force_mac_address=3Db8:27:eb:09:cb:7d >=20 > In that thread you cited PhilE also wrote: >=20 >> With the right overlay and a supporting Ethernet driver it could be = made to change the MAC address of any >> single interface - it depends on where the ethernet0 alias points to. It might be worth figuring out if the ethernet0 alias exists and what it points to (if it exists). The overall boot sequence reports the fdt addr in use for one or more live dtb's. Rebooting and stopping in U-Boot one can capture: U-Boot> fdt addr 0x????=20 U-Boot> fdt print / =20 / { . . . if one has a serial console environment that can record the output that shows the live dtb. Technically, with appropriate RPi*debugging output enabled, as I remember, U-Boot can dump both of: A) The live dtb produced by the RPi* firmware (read by U-Boot) B) The later adjusted live dtb produced by U-Boot (read by the FreeBSD loader/kernel) (This is based on the live dtb's having addresses that are stable across reboots. So far that has been true in what I have observed.) > So do we possibly not have the "right overlay and supporting Ethernet = driver"? Unsure. I've never had my hands on a CM* . > I'll go with static configuration for now to get this puppy up and = running - still very interested in a proper solution. =3D=3D=3D Mark Millard marklmi at yahoo.com