From nobody Thu Sep 21 04:09:31 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 4RrhkQ3Qnpz4tSCW for ; Thu, 21 Sep 2023 04:09:50 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-8.consmr.mail.gq1.yahoo.com (sonic316-8.consmr.mail.gq1.yahoo.com [98.137.69.32]) (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 4RrhkN3hWmz3P9Y for ; Thu, 21 Sep 2023 04:09:48 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=DDc0atvC; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.32 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695269386; bh=jUxVwSFo206DE/IgIn32ZNpGWmoJvsUi3r4AW/4C89g=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=DDc0atvC5zfRHIX0m/+sQy5W8HelUlLq70x0TNqZu/ciqUNFoRUcCVihFaJMahIkcaDb0P62sxdsfgetw5Cll92k5pPHrIEkpAb/VgDSS/8TCegkun6HcUSGh/Jl7NGVHuVrXoapnif8/GFuZJ3Cvd0ANV9hnL4MshwpIGHvcvewR+ttf6UAtmqAvkkL3WHT4UpBNwzSkqd6BYJjjvv/G8NxpD+MD1FEnNOUhGSZWlXx3ZaqWefKMn7LmJ44d0CcwLBo2X9107JZLsuKUFsSzEmQy7b6DPhkQeRTh0ic2E3+SG5hIm0lkuPkmtFK6f5Nq+0HX+ph7LcuRCHi6hYp3A== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695269386; bh=uXNzw8syoPyPxXaIBw0PCZSz3JJzy/SqS1WfyyzGqT2=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=WY8HgSJNiYIx/E5F9O6QEdbZfXIkqq+5QLUEmrPFfhiELgjdGZDkI3hjT6v15lvDU1vD9MqGs6F5FvBmf/rtvOI8hz7FurLVlVhzkeTu1lbnqCBjSGOrWofpzchKqmES+Y5ZpHbVQIRKdT9WvcqnL1eguPaGW7/vgOXFg2SqA1sj1eDgJA980LP35vhvoB29GMEm1IrCEAnme+62qRmn0oA7gd20MmlwIX59/jjpeAb+aYIEOJbWKaJulyReV+Hn9kvehHI0Yd7eGUwhPr/kZHslwSMkx7fT2LPV1nAMvcLsPh//FAuHY1SvxWDenAr96LCy1bw1mgXyI5eRzvbphw== X-YMail-OSG: 4Y4.3soVM1mN_ZIKRrHPbgiDW6sv7Z5nlr7wTGSI6kyFQA5jk7PzmsLx2LXOaP3 ReUQgBT14DCY_yhQLs_IQF3wgo1EMRd5B0xgmar1BreuwndWsZNvSBdo1RIYmgP1.tUeUXCLDc3W dgwaSVpTykcrawevNVJVv6oDW5Mmg0V6MvwwXWqN9yGu3tfNsCatnsRplcxAFLB7qIt6OiA_6XNJ CDLpaopuhC33lNQspHvfoKBBRK6ivtyWFZQERtnoRM0Jvu9cFKKOCxeC_rn0B43sKkchfLCTB3yB Y7mPhpHF8WcLj47kLf8cuBKRjaItOFNiJTlEs5hRyhP53Po8pLFnES89sm3KGK6jza_IinLVdj_Q bD.sScCKiSyza9Soojv5jnJ_BqDAva6LEe4ZRMm20zh3bbNEjzB7S07IoOJq9RMzJYInTov.9Ifl pEOBeqryXXGArmGBphcnSYJYTs7iPjly6NCgAZtX1NqrLy76uHaJbDlgc8V8BdJiXpBPIlj8ZVbq taL1b6hzo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wpHZZynFna0ucgQprU9nOSNy54Hv_Q0A4XCVeykfb0iWOS1o_t oVsGdrbH5wUKIogULUdT50xkTgfnWu.F_UVuNx0nOu3knSlyru7miTtpRvUWhpw6UlWSOrjBjfy2 12jkWqUJyp2k4_WepR99_.FA2R.DlpO63p9YESvjjNVjqCbUILBJZeAWSPt5nK4C9AE5sgljOlR5 z1NdyQtY4__xZ1TNbJGGFzEKWGtZxkx4mivLj47HN5JJRKBowv4NGZ7MnhikYmoJ7kCYQlcAZkDi wabYUTG3tzrJW_5cc4VbSzixnclcILgLnWDne8Q6rqc284V7l8_yDqvPfg1xf8oemlBZS7T3Oq30 U.JdnB_pcVAR18X772oiEQGgwbT0KNoFmvTJC9ms.r8YnQEYLFeXEElfi7Dt03OdM5YzSJu.KW4J U4HYhXrXoYcljlaDB7mDyjD1gewwigx3kkbzKtO2njuxLHXCayfFFdu1XFOdg1H9p1p9yMty7uTP ..5GaQj0GvFqq2KroSYW84nv5aVzHak9nQjUyZlSFCFbC24XQJhhk4ybymHuOJnKZPAa4dZoVv8t QgtEFIAqor6Yoad1qV7vRatERkc0zv35TnapkaFFOGiwh694bvmP0oF3dYCmHRZ8bwkNQozs1x.v aNJQLH8_ESI1ubngEOz7YybDGZ4LAFPs6xzTrx5i1uyjYWE.bPZzqsgV8STFLd2HreiZTk7P4qxq B X-Sonic-MF: X-Sonic-ID: f56c8c38-083a-4e40-988f-c626824b555d Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.gq1.yahoo.com with HTTP; Thu, 21 Sep 2023 04:09:46 +0000 Received: by hermes--production-gq1-77657878bb-2jlvt (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 536b24eda227d5f7925732fe5e068e42; Thu, 21 Sep 2023 04:09:42 +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: <6a842b75-c9ea-d697-c223-c2d8c5653d68@FreeBSD.org> Date: Wed, 20 Sep 2023 21:09:31 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <38325594-6F01-4E43-86A9-D3C92A5151B7@yahoo.com> References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> <4C192A4E-8F53-4FE5-B1E3-836943F9A050@hausen.com> <3306D438-576B-46A6-A124-1F1D803A2236@hausen.com> <6a842b75-c9ea-d697-c223-c2d8c5653d68@FreeBSD.org> To: "Patrick M. Hausen" X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.32:from]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.32:from]; DKIM_TRACE(0.00)[yahoo.com:+]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RrhkN3hWmz3P9Y On Sep 20, 2023, at 19:35, Kyle Evans wrote: > On 9/20/23 15:13, Patrick M. Hausen wrote: >> Hi, >>> Am 20.09.2023 um 22:08 schrieb Kyle Evans : >>> Can you dump the running FDT on this machine and send it our way? It = may be that it sets a local-mac-address somewhere sensible that we can = just tap in a generally-not-ugly way. >> Sure - how? ;-) >=20 > You should be able to get a clean dump with, e.g.: >=20 > sysctl -b hw.fdt.dtb | dtc -I dtb > current.dts Much better than the old ofwdump that I suggested. (My old powerpc* days are showing.) I will note that if one wants to diff *.dts sources, also having a -s (sort) option makes this much more reasonable: sysctl -b hw.fdt.dtb | dtc -I dtb -s > current_sorted.dts (There may be some filtering of uninteresting lines to avoid numbering differences that may not be of interest.) With this one can explore what different config.txt changes mean for the .dtb used. For example, with and without force_mac_address=3D... use can be compared. Like the ofwdump suggestion, one only gets to see the final live *.dtb content via the kernel's copy. It does not work for discovering what stages make what changes. For the RPi4B example ( -s ordering based ): /dts-v1/; /memreserve/ 0x0 0x1000; / { . . . aliases { . . . ethernet0 =3D "/scb/ethernet@7d580000"; . . . chosen { . . . u-boot,version =3D "2023.01"; . . . psci { compatible =3D "arm,psci-0.2"; method =3D "smc"; }; . . . scb { . . .=20 ethernet@7d580000 { . . . compatible =3D "brcm,bcm2711-genet-v5"; . . . local-mac-address =3D [?? ?? ?? ?? ?? ??]; . . . =3D=3D=3D Mark Millard marklmi at yahoo.com