Re: Getting a stable MAC address for a RPI CM3+ with ue0 interface

From: Patrick M. Hausen <pmh_at_hausen.com>
Date: Mon, 25 Sep 2023 17:10:58 UTC
Hi all

> Am 24.09.2023 um 23:05 schrieb Patrick M. Hausen <pmh@hausen.com>:
> 
> Hi all
> 
>> Am 23.09.2023 um 21:28 schrieb Ronald Klop <ronald@FreeBSD.org>:
>> 
>> Would this work?
>> 
>> 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
>> [...]
> 
> 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 ...

From 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