Rock 3a mac generation

Hello folks!
As the title says i wish to know how the MAC for eth0 is generated?
Is it anyway to make the mac generation consistent even if the emmc is re-flashed?
Is it possible to retrieve any unique id of the device from efuse?

Best regards

uboot tried to read lan mac address from vendor storage with api vendor_storage_read, if it can’t read lan mac address from this api, it will generate a random mac address and call vendor_storage_write to wirte a mac address in the vendor storage.
You can generate this mac address based on something like cpu serial number.

Ok awesome thank you! I will try that out.