From nobody Mon Sep 25 17:10:58 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 4RvTt938lZz4tp0k for ; Mon, 25 Sep 2023 17:11:13 +0000 (UTC) (envelope-from pmh@hausen.com) Received: from mail2.pluspunkthosting.de (mail2.pluspunkthosting.de [217.29.33.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RvTt82JJ5z4p94 for ; Mon, 25 Sep 2023 17:11:12 +0000 (UTC) (envelope-from pmh@hausen.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of pmh@hausen.com designates 217.29.33.228 as permitted sender) smtp.mailfrom=pmh@hausen.com; dmarc=none Received: from smtpclient.apple (87.138.185.145) by mail2.pluspunkthosting.de (Axigen) with (ECDHE-RSA-AES256-GCM-SHA384 encrypted) ESMTPSA id 10E3B5; Mon, 25 Sep 2023 19:11:09 +0200 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: "Patrick M. Hausen" In-Reply-To: <2071C2B6-B61A-40E0-8DA2-1E23D463B2E9@hausen.com> Date: Mon, 25 Sep 2023 19:10:58 +0200 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <8305B36C-9DFE-4FF1-A836-80F2931A6A46@hausen.com> 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> To: Ronald Klop X-Mailer: Apple Mail (2.3731.700.6) X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.80 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+a:mail2.pluspunkthosting.de]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:16188, ipnet:217.29.32.0/20, country:DE]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[hausen.com]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4RvTt82JJ5z4p94 Hi all > 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 ... 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. https://www.waveshare.com/wiki/Compute_Module_PoE_Board#Serial_port 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: The new kernel prints the "No MAC address found" message, then panics. I'm reflashing the module now ... =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? 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. All Pis running Linux do this. Kind regards, Patrick=