I probably posted this in the wrong place - please see Restore MAC address, PCIe network after firmware update?
After attempting a firmware update, the Blade 3 MAC addresses have been lost and I’m getting Locally Administered addresses instead. I need to know how to restore the original MAC address (which I do have recorded) back to this system… but how can this be acheived?
(… or it could be that the MAC addresses are intact in the firmware, but the Ubuntu 24.04/Linux 6.1.0 image isn’t reading these correctly - how could I tell?)
I also found this problem, In kernel 6.1.75, this patch does not use the mac address of the vendor partition, which makes it impossible to read Update r8169_main.c add VENDOR_STORAGE_MAC_VALID support · mixtile-rockchip/kernel@0635bfc · GitHub
You can see if a mac address has been erased using the vendor_storage command:
mixtile@mixtile-ubuntu:~$ sudo vendor_storage -r VENDOR_LAN_MAC_ID -t hex -i /dev/null
[Debug] intput = /dev/null
[Debug] vendor_storage_read id = 3
[Debug] vendor read:
[Debug] tag = 1448232273 // id = 3 // len = 12 // data = 0x0xffffcb515b78
[INFO] VENDOR_LAN_MAC_ID:
0000-000f: 5e a7 bc c0 2a 75 62 a7 bc c0 2a 75
Permanently change mac address:
- Edit the systemd-networkd configuration file
sudo nano /etc/systemd/network/10-static-mac.network
Add the following content, where Name corresponds to the name of the network port, mac address is changed to the address you need to set, multiple network cards similar operations
[Match]
Name=enP2p35s0
[Link]
MACAddress=00:11:22:33:44:55
- Enable systemd-networkd
sudo systemctl enable rc-local
sudo systemctl start rc-local
- Restart validation
sudo reboot
ip link show enP2p35s0
That’s helpful, thanks - the (one) node I upgraded is currently failing to boot before entering user-space, but as soon as that’s working again (which might take a re-flash
) I’ll try this.
To confirm, if I apply the linked patch to the kernel-sources from the Ubuntu 24.04-image kernel and rebuild, then this should start working again at the driver-level? Or does the Ubuntu image already include this patch?
This patch is currently not included in ubuntu 24.04 and will use the vendor’s mac address after adding this patch to the kernel