Open RadxaYuntian opened 9 months ago
I think the issue will be fixed with these two commits.
I tested this on ROCK 5A.
Will provide patches for Radxa CM5 IO and Radxa NX5 IO.
Right now "rock-5a" "rock-5b" "radxa-nx5-io" are not using nextdev
branch for bsp
.
Symptoms
On our RK3588 platforms, the MAC address does not persist between image flashes. Additionally, when the image is booted once and then inserted to a different product, that product will have the same MAC address, making a master image undeployable for Ethernet connected devices.
Causes
Currently we have
CONFIG_ROCKCHIP_SET_ETHADDR
enabled, which will read vendor storage area, get an invalid MAC address (00:00:00:00:00:00), generate a random MAC address, and save it to the vendor storage area to be used later.Proposed fixes
Update
rockchip_set_ethaddr()
so it generates a consistent MAC address from hardware ID instead of a random MAC.Temporary workaround
Run the following command to clear the vendor storage area from eMMC/microSD, or existing master image: