]> git.dujemihanovic.xyz Git - u-boot.git/commit
rk3399: r4s: Derive local MAC address if EEPROM is missing
authorChristian Kohlschütter <christian@kohlschutter.com>
Tue, 27 Sep 2022 15:05:21 +0000 (15:05 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Sat, 6 May 2023 09:28:18 +0000 (17:28 +0800)
commitc2d5edff916379abd2da4590e8171c965d9a3e1d
treef08c1aaf9db973b75c47835eb39b44026dd81e3c
parent53c5093b2ec08c69b48183e23c5ada3c385053e1
rk3399: r4s: Derive local MAC address if EEPROM is missing

Some RK3399 boards, such as newer revisions of NanoPi R4S, do not
provide an EEPROM chip containing a globally unique MAC address.

Currently, this means that a randomly generated temporary MAC address
may be generated each time the device is rebooted, leading to ARP cache
issues and other confusing bugs.

Since RK3399 CPUs provide a built-in unique serial number, we can
reliably derive a locally MAC address from it by reading the
corresponding bits from the non-secure efuse block.

Enable configuration options that allow deriving a local MAC address
from the CPU serial number.
configs/nanopi-r4s-rk3399_defconfig