jiangcuo / Proxmox-Port

Proxmox VE arm64 riscv64 loongarch64
GNU Affero General Public License v3.0
670 stars 31 forks source link

Orange Pi 5 | MAC address changes on reboot #109

Open dandycyclone opened 1 month ago

dandycyclone commented 1 month ago

Describe the bug Full description could be found here, since I raise this issue is a duplicate to backport the fix into current project. In a nutshell:

root@pve:~# dmesg | grep rk_get_eth_addr
[   42.710816] rk_gmac-dwmac fe1c0000.ethernet: rk_get_eth_addr: rk_vendor_read eth mac address failed (-1)
[   42.710828] rk_gmac-dwmac fe1c0000.ethernet: rk_get_eth_addr: use serial to generate eth mac address: 00:00:a4:bd:7f:ff
[   42.710839] rk_gmac-dwmac fe1c0000.ethernet: rk_get_eth_addr: mac address: 00:00:a4:bd:7f:ff

To Reproduce Steps to reproduce the behavior:

  1. Boot PVE into Orange Pi 5 with 6.1.43-rockchip kernel.
  2. Record eth mac address and reboot the board.
  3. Verify, that eth mac address was changed after reboot.

Expected behavior eth mac address should be persistent across reboots. Current (non-expected) behavior results in problems with DHCP IP reservation, when eth_mac is used as DHCP Client ID.

Screenshots

ENV (please complete the following information):

Additional context

It is important, since suggested fix from adjacent project (DietPi) could not be applied without tweaking.

dandycyclone commented 1 month ago

It is also worth mentioning this information from https://github.com/edk2-porting/edk2-rk3588?tab=readme-ov-file#supported-peripherals-in-uefi, however not saying it should be the source of problem:

GMAC Ethernet | Not working | Only brought-up for OS usage