From nobody Wed Sep 20 22:42:13 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 4RrYSs151bz4vHQK for ; Wed, 20 Sep 2023 22:42:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (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 4RrYSr5fplz4XsV for ; Wed, 20 Sep 2023 22:42:36 +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=1695249754; bh=1Z6WBCvgPpn0dhK9UraZozGBByh3KIKAUe2oeCmeKpI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=RyhSnbUTK+73rkT7AxjE/TbVVNEOmLah6k79M7S0CtcqjGLz5/LTmvFX5w5BqStfTLfJVM7Bs6qpFnK74fOI1TyinSQVe3u6nhQXTFfMPvEU36tdNrx1jDKuz1FzqVwozViXAH+Lt3AeaFBAp06qLr/rSk5xoEjSixNWLBRwBfWCytFMFEykGnHeX+34fzAC7vT6VKTDH7dB5tQzhNHuODnwaLAUO7yhliS5HHS1iGCPeIfCW8WSzrTDiTWP1+AUEHZVrgFx2X+EBuE1C+sPzXuzSrnA9dWaNA/ZOX2tKXS58rG/BEzTKEYo7oNEyKrifru/yQ9+67TzJ2JP7HepbQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695249754; bh=A7soieZQXnQdQrwY/4NQ+2kY0Lpjj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Ni9 y.etc8TujLLqt2qMMlN5kmHHsM25MdY1ONIb6oyu0yMQJh9i2wPMRLdUvKEZqIySQHcEC2yOA.5_ srUfyds55rESuL7kdK3z93lOEYAZOzp0L.EDbmTa8R8cgQCtv4mluJT6ur6TEQr9562hG26wVqWj Mrh6lVBU0bCEZdl5q5Zh5JGVGd6GUEeC8VA2ewSk8KhtUc3OxZLgxf7hwuT5N_CcgDybsjQwLTwr ZmK8mrKg43myEjwMtCjIN.SAFJ2EHyQR15bHlsdid3h61LCQus37fKDO6I7nnj8c3e2Dg36KvRtX 1jGeBna3mPtLdXe0l8cfgVQa9E2pzZ5YFo4FOqfP92nz67FY536pNv2N543wUP_.i1R8lccPMR3d hIDBc6KuaZaurkbrKn46TLLZHg9l.M8Wmu3kpQxeNhidffKj7.9JA3hU6SSklaICAFgnhhZGibc_ fm6x6lMuxrGH6PKbAg7NjF_LYt8amHUGQ_B7XJ_UIAJhEdIaPxv4coQZ63m9tvDIZqPShN3OtiKU V7H_nVMh1aEdLYIK.PyVd0yCeVqixsWfCpErjbkIKA9xlGmWAQtyWTdOtaCBHNFTzt30yrWAXMjw - X-Sonic-MF: X-Sonic-ID: 070dfdc0-2536-4e8e-9f56-05f0fccf5692 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Wed, 20 Sep 2023 22:42:34 +0000 Received: by hermes--production-bf1-678f64c47b-glgzv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 012ba8188c849a95f2d83f90386f00e2; Wed, 20 Sep 2023 22:42:25 +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: <414AE626-93AD-48E5-96FF-D8DBB2EFDBD1@hausen.com> Date: Wed, 20 Sep 2023 15:42:13 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <686EF03A-4A77-4B41-B231-16428514764D@yahoo.com> References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> <2093E18F-3F37-4C0B-8A73-2E85A631E30E@yahoo.com> <414AE626-93AD-48E5-96FF-D8DBB2EFDBD1@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: 4RrYSr5fplz4XsV On Sep 20, 2023, at 14:12, Patrick M. Hausen wrote: >> Am 20.09.2023 um 23:06 schrieb Mark Millard : >> It might be worth figuring out if the ethernet0 alias exists and what >> it points to (if it exists). > > What is an ethernet0 alias and how can I check it? Currently I have access > to the modules when they are running FreeBSD. No console or pre-boot. It is not in the notation that can be used with dtc or the like but you likely can look usefully at: # ofwdump -p -r / | more output to get some information. For example, from a RPi4B: # ofwdump -p -r / | more Node 0x48: memreserve: 3b 30 00 00 04 c0 00 00 serial-number: . . . Node 0x15c: psci compatible: 61 72 6d 2c 70 73 63 69 2d 30 2e 32 00 'arm,psci-0.2' method: 73 6d 63 00 'smc' . . . Node 0x200: aliases . . . emmc2bus: 2f 65 6d 6d 63 32 62 75 73 00 '/emmc2bus' ethernet0: 2f 73 63 62 2f 65 74 68 65 72 6e 65 74 40 37 64 35 38 30 30 30 30 00 '/scb/ethernet@7d580000' pcie0: 2f 73 63 62 2f 70 63 69 65 40 37 64 35 30 30 30 30 30 00 '/scb/pcie@7d500000' . . . So: the ethernet0 alias points to /scb/ethernet@7d580000 /scb/ethernet@7d580000 starts with (partially redacted): Node 0x87f0: scb compatible: 73 69 6d 70 6c 65 2d 62 75 73 00 'simple-bus' . . . Node 0x8b90: ethernet@7d580000 local-mac-address: ?? ?? ?? ?? ?? ?? . . . That is what force_mac_address would be providing, given the ethernet0 definition above. I'll note that, as I remembmer, the psci material was added to the live dtb by the armstub*.bin provided by via FreeBSD specific materials. An example addition by U-Boot is: Node 0x828: chosen fixup-applied: u-boot,version: 32 30 32 33 2e 30 31 00 '2023.01' The RPi* firmware does various dynamic adjustments of what is in the *.dtb file used. The *.dtb's do not span the variations. I'm not aware of ofwdump being able to show any earlier-stage live dtb's, even if you know the address(es). > I will have to check how I can get any pre-boot access if necessary. > === Mark Millard marklmi at yahoo.com