RE: [PATCH] rockchip: use stable MAC-address for NanoPi R2S

2021-01-17 Thread Karl Palsson
"Adrian Schmutzler" wrote: > > + local mac_base=$(macaddr_canonicalize "$(echo "${sd_hash}" | dd > > bs=1 count=12 2>/dev/null)") > > bs=12 count=1 ? Why? unless you're passing other flags to try and magically avoid the block layer, you're only operating on a 1k block read out anyway. This s

RE: [PATCH] rockchip: use stable MAC-address for NanoPi R2S

2021-01-16 Thread Adrian Schmutzler
> + local mac_base=$(macaddr_canonicalize "$(echo "${sd_hash}" | dd > bs=1 count=12 2>/dev/null)") bs=12 count=1 ? Best Adrian openpgp-digital-signature.asc Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.or

[PATCH] rockchip: use stable MAC-address for NanoPi R2S

2021-01-16 Thread David Bauer
The NanoPi R2S does not have a board specific MAC address written inside e.g. an EEPROM, hence why it is randomly generated on first boot. The issue with that however is the lack of a driver for the PRNG. It often results to the same MAC address used on multiple boards by default, as urngd is not