Hi Jan-Niklas,
On 12/22/22 21:12, Jan-Niklas Burfeind wrote:
+generate_mac_from_mmc_cid()
+{
+ local mmc_dev=$1
+
+ local sd_hash=$(sha256sum/sys/class/block/$mmc_dev/device/cid)
+ local mac_base=$(macaddr_canonicalize "$(echo "${sd_hash}" | dd bs=1 count=12
2>/dev/null)")
+
Ensure the MAC address for all NanoPi R1 boards is assigned unique for
each board.
The venor 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 N