From nobody Wed Sep 20 20:08:40 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 4RrV3s4N4Gz4v6m3 for ; Wed, 20 Sep 2023 20:09:13 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from outgoing-exchange-5.mit.edu (outgoing-exchange-5.mit.edu [18.9.28.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.outgoing-exchange.mit.edu", Issuer "InCommon RSA Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrV3s14tYz4Fwy for ; Wed, 20 Sep 2023 20:09:13 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; none Received: from w92exedge3.exchange.mit.edu (W92EXEDGE3.EXCHANGE.MIT.EDU [18.7.73.15]) by outgoing-exchange-5.mit.edu (8.14.7/8.12.4) with ESMTP id 38KK8iQN016159; Wed, 20 Sep 2023 16:09:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1695240551; bh=tDu97sxM/yPLJAGFACmmhKdPB2whN2aS8cky2MPIZ+A=; h=From:Subject:Date:Message-ID:Content-Type:MIME-Version; b=oEM6a9f4iKVPWb6wrUFR0PKZGmEZOKtgbP83bH7UPgjAZVDXu3OZqc5LHXFqPbc3Y DgtnhhtP9U67hR3fF9Un3XqHpncO6eLgXiULzoCdaPvCRQxGnH2BHbs/cSYg75hOyi QC6fUBL3XB1Et00Kyomv8MDrIm6bEyVLAR4VGljLrlK/LzhQzcQcFk9fQ6ppfk7Sfw QYxAJc6WJSjNdeA+UPgJjbH8GhfelUTPr6CoHTYe2dj8f1y7PkkPrJ02UC7NiIA5Ew ZjjixNRG33UVFzcv3G6xAMzLkx1W8nXHWQzVSRuk+4J/ZrYmULezwYUNpZIEWQ8U+Y DvxwLFqzvuJuA== Received: from oc11expo22.exchange.mit.edu (18.9.4.84) by w92exedge3.exchange.mit.edu (18.7.73.15) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Wed, 20 Sep 2023 16:08:27 -0400 Received: from oc11exhyb1.exchange.mit.edu (18.9.1.60) by oc11expo22.exchange.mit.edu (18.9.4.84) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Wed, 20 Sep 2023 16:08:43 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.42) by oc11exhyb1.exchange.mit.edu (18.9.1.60) with Microsoft SMTP Server (TLS) id 15.0.1497.48 via Frontend Transport; Wed, 20 Sep 2023 16:08:42 -0400 Received: from SA3PR01MB8450.prod.exchangelabs.com (2603:10b6:806:382::17) by CO1PR01MB6678.prod.exchangelabs.com (2603:10b6:303:d9::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.29; Wed, 20 Sep 2023 20:08:40 +0000 Received: from SA3PR01MB8450.prod.exchangelabs.com ([fe80::ee32:19a8:b83e:efbf]) by SA3PR01MB8450.prod.exchangelabs.com ([fe80::ee32:19a8:b83e:efbf%7]) with mapi id 15.20.6813.018; Wed, 20 Sep 2023 20:08:40 +0000 From: "John F Carr" To: "Patrick M. Hausen" CC: Mark Millard , "freebsd-arm@freebsd.org" Subject: Re: Getting a stable MAC address for a RPI CM3+ with ue0 interface Thread-Topic: Getting a stable MAC address for a RPI CM3+ with ue0 interface Thread-Index: AQHZ6+uAUIhJrYVmbkeMVX6vcr8yhLAkB9iAgAALRICAAAwxgIAABU4A Date: Wed, 20 Sep 2023 20:08:40 +0000 Message-ID: <4F2EC38A-A095-4BA9-B15B-FFFB6A83CC97@mit.edu> References: <3C1032FF-B914-4863-8A03-759A8B4BE216@hausen.com> <77E70D30-8E7D-42DC-A041-3A783E1C6908@yahoo.com> <5205C76E-BAB4-4AB7-8A03-1E8A2D4353BB@hausen.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA3PR01MB8450:EE_|CO1PR01MB6678:EE_ x-ms-office365-filtering-correlation-id: cee57ad8-c783-47a1-ad9d-08dbba15620c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: fGygm0oFpfQZRzR2sqd88Tqu3r3WsLQFe/bMOBtLy6kZOOZOCR5qVtvebxXLomr4DNtAfgZ77XXIoAwF7T6Ggbyy9tIvCK3vZJ19T4r1fpEAr0ksSKA5+XxcCVffxg881Edlp0Hae8PEj2G+eRulANHuvRJROLUPA/fR4SjZ8WKzwBI1pC0XGgNJusVB5gaVMVIcw70hmLuquY7gwcSZJMn3pvhcawh1HCJmIZeHmQYhlp7b45vQIPr9g0VU0EaaWenMb7nMfj7ngChFerJ2uklBqrlJf3vLc9WgSMItZhmQGboqL6C2d3qWw7+RtoSB6e5p4xdpv/VwAVf4mX4AJokATRMrPlPNPdn4oCV4UWRPgPCuMzNy+eNd9fjTcvOtT+c643k3zyERpQxsP7rxyuwG+Q8XzIz4qynsz3yqGg1iw5El5LYzT9W4ZD4z/QHJoPkHqNer9kqK0r4sfAzAEUPa6LiLMcF+WQ+DrrI7PNRgmaoICjJvuTdDwKzWm+vjT687nKRK8AXoILFia0WyNoqLL90f42kulUPTxlNtyTHTIZBCKlaSOJvKX6NnBhYgcssR1uXX/4rtRUPqqnUy409WrgbPEUp9DilKNCOpNi1JXsg44DOx+j1/OJ/IjdP5 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA3PR01MB8450.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(346002)(376002)(39860400002)(366004)(396003)(186009)(1800799009)(451199024)(38100700002)(38070700005)(6506007)(53546011)(6486002)(75432002)(33656002)(36756003)(122000001)(2616005)(86362001)(2906002)(6512007)(83380400001)(6916009)(478600001)(8676002)(8936002)(5660300002)(71200400001)(54906003)(786003)(4326008)(66556008)(41300700001)(91956017)(66446008)(66946007)(316002)(26005)(64756008)(76116006)(66476007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Pk6sJ2HjOEazDFAOSPkxTzRYYcGBtf6N7b9hg77utZdyCKCmdTW2Ym38hUQe?= =?us-ascii?Q?XnaWwnIzy6m7s5h6GrigpS1bFTUt3pbNQm5DkfCdJJiHYFtKPFK/hWNc5dsS?= =?us-ascii?Q?2hgwlo1JWGkFsSg5eetFLKq1HxlzxoZQoETPkAuNVda43MolCpnQmR4/6yp7?= =?us-ascii?Q?p0Y+SN8cNGwy9gzb+D5utLTZId/XLoCinyMOQ4/QMoAeL/+L9FqVXYCariTZ?= =?us-ascii?Q?aurMOAJgYp6xK5+hAUge9tyL+WxYfR/Cwg3JWfaTieN2HurdrkSKvJ9ARDJw?= =?us-ascii?Q?n02EqVjB0LvAsXDxZqmZzVg8uQp5bFaH5s6eBI3MHKAfs/c1smtGry1H+4Eg?= =?us-ascii?Q?yEqwzybUty8FMgTh5fwIzJzbl4j5aGT4eOxCye0YHXaXkgLpeO0iQOYNLJLr?= =?us-ascii?Q?ihv7rMwnfcA5lDbBSkQcIZ+BL7TmQj2twb8bnwwsPvq0VTHWcsaLnLCwws4k?= =?us-ascii?Q?ywQTk3b/6ptYMXV2eGyU4S5mryxjjQKvXX5LnjFlQEXVGOavT++GvVGqM1Cq?= =?us-ascii?Q?4/b2aJzMdoYodPXzdiPbmT+cCjIu1L7YMqOH2QUSGsbHczTaT88VJKNajpXG?= =?us-ascii?Q?rBFKJJtWig07QxnyqeRa2bb/3tzbkhyTKEvN0b0/xPQr2A94zyefgUdwYssw?= =?us-ascii?Q?Na3eKYrqSKoxc1rgXOIH+GgrUA7xQXpxhtc/cLU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965QslVrN4=3D?= Content-Type: text/plain; charset="us-ascii" Content-ID: <2514180F9EF16D4FAC5EF55E3D4F22E6@prod.exchangelabs.com> Content-Transfer-Encoding: quoted-printable 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 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR01MB8450.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: cee57ad8-c783-47a1-ad9d-08dbba15620c X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Sep 2023 20:08:40.5007 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: lbKSO60/Q94nrp6Ln8WLIdk0au3OBOLFkUoAc+Xfwp0rvmljeKNYwTNwSepliXo8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR01MB6678 X-OriginatorOrg: mit.edu 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:3, ipnet:18.9.0.0/16, country:US] X-Rspamd-Queue-Id: 4RrV3s14tYz4Fwy > On Sep 20, 2023, at 15:49, Patrick M. Hausen wrote: >=20 > Hi all, >=20 > some more research ... >=20 >> Am 20.09.2023 um 21:05 schrieb Patrick M. Hausen : >> No worky. >> [...] >=20 >=20 > I could not find any code in the network startup routines in userland tha= t > would generate and configure a random MAC address. So I looked for > the driver. >=20 > Apparently the TuringPi uses smsc(4), and there we have it straight from > the driver source: >=20 > ------------------- > static void > smsc_attach_post(struct usb_ether *ue) > { > [...] > /* Attempt to get the mac address, if an EEPROM is not attached this > * will just return FF:FF:FF:FF:FF:FF, so in such cases we invent a MAC > * address based on urandom. > */ > [...] > /* Initialise the chip for the first time */ > smsc_chip_init(sc); > } > ------------------- >=20 > So what we would really need is a tunable - one per driver or possibly a > common one read and acted upon by all of the USB ethernet drivers ... >=20 > With no code on our side to perform anything, no wonder the RPI > config files have no effect. >=20 > Dang. That's frustrating. With aarch64 having been promoted to "tier 1" > I really expected full support for all RPI platforms and related features > and hardware. >=20 > Or am I misreading that? I though that the Pi was *the* aarch64 platform, > at least in numbers ... >=20 > Kind regards, > Patrick >=20 >=20 The driver attempts to read the address from a device tree file, see call to usb_fdt_get_mac_addr, so you should be able to edit something in the magic boot partition to add a "mac-address" or "local-mac-address" property. As for support level, I can not speak for FreeBSD but what I observe is the Pi boxes are most definitely not supported at Tier 1 level. They are like homebuilt PCs 30 years ago, both for hardware reliability and driver compatibility. Server class ARM boxes mostly just work. OS or firmware updates can break the UEFI boot process and you need to boot from a stick to patch things up. At least you can boot from a stick, unlike many Pis which are simply broken at any given time.