From nobody Mon Sep 25 17:54:14 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 4RvVrD4Sb5z4trLq for ; Mon, 25 Sep 2023 17:54:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-22.consmr.mail.gq1.yahoo.com (sonic301-22.consmr.mail.gq1.yahoo.com [98.137.64.148]) (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 4RvVrD1s5Nz3DqY for ; Mon, 25 Sep 2023 17:54:35 +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=1695664471; bh=jS3AInlahlVZH1Y+MFuu1E+Q+XuowfF/fARTMsLW8UM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=WLcCMO1zzj/DhghsIHUcwJAs7XCpvy2jyWKuML2DKzC3AiR7cP0WFkY5PyB96aCLIXwdOGorS27lBinF3eQpn/Kxc/ZQ6zJwmO3J5PqonETb3rpIlLYcMcr6Td3UyHOp/o5YVxqGocPXo6KRaTqQxD/kF/mKfQ7GdAw8GJkQE9NrTF2IaU4KcrqpQae/kcOjTQS/N3gLg7jRLLzOeFB+BskAdyqf/sVMiodckLEwDY6FDCusuMRvgzU1Q1gbfLm4T7IVSuXk7lKHS5s+ehm5WIwmPEuvANYG72oOqPFbRseduvoNErtTda87qT228XW+VMWMD42DmVfgNQFdBwr/9w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1695664471; bh=sx6rmZO7qMdya6tSq7Gse5N63fmrlIN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M5VHt5eAmWPUsL4gonuFmA7zlWFpDeB_2ru.yQsnvosq6fgMxhFV0XjbaH5OBCxlTDv_DLxCWr 9N0CP7DINBL6F0lZ33np7EHV6nKrdeaTO4xWDgogIsskHe3.me2b3PpagM3Dh7XwImzhs9Q2_tq8 TkRGS9UEtXXiEdTZ0lwlt8YgzlypCLeQ5Vy9d_c1a0PTzwOlC7FIqv9FRhAJ01gKYqVZgaA_yGBh o2BVTiRTfBYRLJeWDMHVJcxaNPjBtOoHTYcNp3k9TioMd87QkoGT1luO7TCwgYCM9PCh5cidilRl 8XawUmyOA7VyQ.LMWlsD_vFvesesV2nj1YuLC6ZFegZWMivEXZO5fxdZGCpnLDVvHD6P3CHUqdAT G5mIsbrf3kOu4jkVz0TZrKMwkpTWFlpLS7bcUTx0VwJP4pWTsmfVY_g4tXU21HkHCWQ75UR9JMTq vOZZgxt3NYbKlcRYLA5OsXbQ5r2Pjcj_005OdJ.bOJtewBTozpBemputAOfyevznp.sqUHREa2Sf bhrQxBuECPRqV5GrTx2GdWD5gjOVlzTUVLaoIdqCVvWAWMEfDgPG7IY3Oo_33CeKjmfUVcNpg0Q- - X-Sonic-MF: X-Sonic-ID: ae21ed0b-b333-49e4-a164-bca7dfcfb95d Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Mon, 25 Sep 2023 17:54:31 +0000 Received: by hermes--production-bf1-678f64c47b-glgzv (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 37eda0f881953f4c4df134dbfa3f2ba5; Mon, 25 Sep 2023 17:54:27 +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: <8305B36C-9DFE-4FF1-A836-80F2931A6A46@hausen.com> Date: Mon, 25 Sep 2023 10:54:14 -0700 Cc: Ronald Klop , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: 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: "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: 4RvVrD1s5Nz3DqY On Sep 25, 2023, at 10:10, Patrick M. Hausen wrote: >> Am 24.09.2023 um 23:05 schrieb Patrick M. Hausen : >>=20 >> Hi all >>=20 >>> Am 23.09.2023 um 21:28 schrieb Ronald Klop : >>>=20 >>> Would this work? >>>=20 >>> diff --git a/sys/dev/usb/net/if_smsc.c b/sys/dev/usb/net/if_smsc.c >>> index 0a0268bfa1a2..4a7983a20717 100644 >>> --- a/sys/dev/usb/net/if_smsc.c >>> +++ b/sys/dev/usb/net/if_smsc.c >>> [...] >>=20 >> After building and installing the kernel with this patch and reboot I >> lost access to the node I used. I will try to set up console access >> somehow ... >=20 > The development board I use for flashing etc. has got a serial port > connector and even a USB to serial converter so you can just plug in > USB to your laptop - I did not get any console output, though. >=20 > https://www.waveshare.com/wiki/Compute_Module_PoE_Board#Serial_port >=20 > I did get console output via HDMI, but my Apple keyboard seems not > to work when plugged in to USB so I could not really examine what > is wrong or boot into kernel.old - only diagonistic I can provide: >=20 > The new kernel prints the "No MAC address found" message, then panics. >=20 > I'm reflashing the module now ... >=20 > =46rom reading your source code, what are you really trying to = achieve? > More diagnostic messages are a good thing, but from where are you > trying to read that MAC address? >=20 > As far as I understand for the Pi you are supposed to use the RPi > foundation OUI B8:27:EB plus the lower three octets of the Pi's > serial number - regardless of the Ethernet adapter plugged in. Definately not, in multiple ways. 0) Having multiple Ethernet adapters plugged in can all be used over the same time frame. The MAC addresses need to be distinct. 1) RPi4B's and the like are not set up to have such MAC addresses. Only older RPi*'s are. > All Pis running Linux do this. Quoting: = https://www.raspberrypi.com/documentation/computers/remote-access.html#eth= ernet-mac-address QUOTE On Raspberry Pi 4 the MAC address is programmed at manufacture and there = is no link between the MAC address and serial number. Both the MAC = address and serial numbers are displayed on the bootloader HDMI = diagnostics screen. END QUOTE I doubt that Linux overrides that. I doubt that Linux is limited to having only one Ethernet adapter present. The USB3 Ethernet dongles that I have access to had their own MAC addresses preset before I opened the packaging. I have used such dongles on RPi2B v1.1, RPi2B v1.2, RPi3B, and various RPi4B, both udner FreeBSD and under various vintages of the official RPi* OS. Perhaps you are referencing a much more limited/special context. =3D=3D=3D Mark Millard marklmi at yahoo.com