I am using a 3rd party carrier board for the AGX Xavier module: The X221-AI from Auvidea.eu. It is equipped with two RJ45 Ethernet connectors.
For some reason, this carrier board is unable to preserve it’s network settings after reboot. I believe the following lines from the $dmesg command may hint to the cause of this problem:
[ 9.067428] r8168 0003:01:00.0 (unnamed net_device) (uninitialized): Invalid ethernet address 00:00:00:00:00:00, trying device tree node
[ 9.067514] r8168 0003:01:00.0 (unnamed net_device) (uninitialized): bad mac address at /chosen/nvidia,ethernet-mac: missing.
[ 9.067792] r8168 0003:01:00.0 (unnamed net_device) (uninitialized): Assigning random ethernet address a6:49:f1:c5:4c:3b
...
[ 9.207633] r8168 0004:01:00.0 (unnamed net_device) (uninitialized): Invalid ethernet address 00:00:00:00:00:00, trying device tree node
[ 9.207712] r8168 0004:01:00.0 (unnamed net_device) (uninitialized): bad mac address at /chosen/nvidia,ethernet-mac: missing.
[ 9.207988] r8168 0004:01:00.0 (unnamed net_device) (uninitialized): Assigning random ethernet address 92:8b:80:dc:e1:ba
From my understanding, due to the carrier board assigning random MAC addresses after boot, it is unable to preserve it’s network settings which are bound to a specific MAC address. Is there anything I can do to fix this? From reading similar topics in this forum, the MAC address seems to be bound to the Nvidia module and has nothing to do with the carrier board. The carrier board’s only task is to read it.
The only thing I have done after flashing is to setup a network connection via the graphical “Network Connections” interface. I will reflash the device now and have a look at the dmesg log to see if there are any differences.
I don’t know anything about that carrier board. But according to the log, this ethernet interface is added by the vendor on the PCIe instead of using our native ethernet controller.
Actually I can see the mac addr in your dmesg. This “eqos” is the native eth controller.
Actually, cboot is open source. And that nvidia,ether-mac is set by cboot.
Or you can also modify the kernel driver, which is directly the r8168 driver and ask it to use “nvidia,ether-mac” instead of “nvidia,ethernet-mac”.
But what I really want to clarify that if you didn’t customize anything on the board in both software or hardware, and you board vendor claims this PCIe ethernet port will by default working with the BSP package (those files) they provided. Then they should check help check why this ethernet phy reads the mac addr failed on your case but read fine on other boards they released.
I don’t know who plugs this PCIe ethernet card to the board, if that wasn’t you, then you should ask the vendor about it but not trying to fix this by yourself at this moment.