Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for
each board.
The vendor ships the device in two variants; one with and one without
eMMC; but both without static mac-addresses.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S and R4S in case the EEPROM
chip is not present by generating the board MAC from the SD card CID.
[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec
Similar too and based on:
commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address")
Co-authored-by: David Bauer <mail@david-bauer.net>
Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip: add support for dilusense dlfr100
* rockchip: add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* rockchip:add support for dilusense dlfr100
* Add files via upload
* Add files via upload
* Add files via upload
* Add files via upload
* Update rk3399-dlfr100.dts
* Add files via upload
Ensure the MAC address for all NanoPi R4S boards is assigned unique for
each board.
FriendlyElec ship two versions of the R4S: The standard as well as the
enterprise edition with only the enterprise edition including the EEPROM
chip that stores the unique MAC address.
In order to assign both board types unique MAC addresses, fall back on
the same method used for the NanoPi R2S in case the EEPROM chip is not
present by generating the board MAC from the SD card CID.
[0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R4S#Differences_Between_R4S_Standard_Version_.26_R4S_Enterprise_Version
Signed-off-by: David Bauer <mail@david-bauer.net>