Skip to content

RK3588 does not get presistent MAC address between image flashing #34

Open
@RadxaYuntian

Description

@RadxaYuntian

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:

# Replace /dev/sdX with your real block device, or dumped image file name
# MAKE SURE TO BACKUP FIRST!!!
sudo dd if=/dev/zero of=/dev/sdX bs=512 seek=7168 count=512 && sync

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions