* [DistroKit] [PATCH] v8a: barebox: derive stable MAC address from machine ID
@ 2024-07-12 14:34 Ahmad Fatoum
2024-07-12 15:30 ` Robert Schwebel
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-07-12 14:34 UTC (permalink / raw)
To: distrokit; +Cc: Ahmad Fatoum
The i.MX ocotp driver already registers the SoC serial number, so
it can be hashed into a machine ID. barebox can also derive a MAC
address this way, so enable that option, so boards that have no
proper MAC address fused get assigned a MAC address that stays
constant over reboots.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
configs/platform-v8a/barebox.config | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/configs/platform-v8a/barebox.config b/configs/platform-v8a/barebox.config
index 6bbdd9224e1b..6e763c338f3f 100644
--- a/configs/platform-v8a/barebox.config
+++ b/configs/platform-v8a/barebox.config
@@ -255,7 +255,7 @@ CONFIG_STATE=y
# CONFIG_STATE_BACKWARD_COMPATIBLE is not set
CONFIG_BOOTCHOOSER=y
CONFIG_RESET_SOURCE=y
-# CONFIG_MACHINE_ID is not set
+CONFIG_MACHINE_ID=y
# CONFIG_SYSTEMD_OF_WATCHDOG is not set
CONFIG_EXTERNAL_DTS_FRAGMENTS="${PTXDIST_PLATFORMCONFIGDIR}/dts/bootstate.dtsi"
@@ -513,6 +513,7 @@ CONFIG_CMD_STATE=y
# end of Commands
CONFIG_NET=y
+CONFIG_NET_ETHADDR_FROM_MACHINE_ID=y
CONFIG_NET_NFS=y
CONFIG_NET_NETCONSOLE=y
CONFIG_NET_RESOLV=y
@@ -1142,6 +1143,7 @@ CONFIG_HAVE_DIGEST_MD5=y
CONFIG_HAVE_DIGEST_SHA1=y
CONFIG_HAVE_DIGEST_SHA224=y
CONFIG_HAVE_DIGEST_SHA256=y
+CONFIG_HAVE_DIGEST_HMAC=y
CONFIG_DIGEST_CRC32_GENERIC=y
CONFIG_DIGEST_MD5_GENERIC=y
CONFIG_DIGEST_SHA1_GENERIC=y
@@ -1149,7 +1151,7 @@ CONFIG_DIGEST_SHA1_GENERIC=y
# CONFIG_DIGEST_SHA256_GENERIC is not set
# CONFIG_DIGEST_SHA384_GENERIC is not set
# CONFIG_DIGEST_SHA512_GENERIC is not set
-# CONFIG_DIGEST_HMAC_GENERIC is not set
+CONFIG_DIGEST_HMAC_GENERIC=y
CONFIG_DIGEST_SHA1_ARM64_CE=y
CONFIG_DIGEST_SHA256_ARM64_CE=y
# CONFIG_CRYPTO_KEYSTORE is not set
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [DistroKit] [PATCH] v8a: barebox: derive stable MAC address from machine ID
2024-07-12 14:34 [DistroKit] [PATCH] v8a: barebox: derive stable MAC address from machine ID Ahmad Fatoum
@ 2024-07-12 15:30 ` Robert Schwebel
0 siblings, 0 replies; 2+ messages in thread
From: Robert Schwebel @ 2024-07-12 15:30 UTC (permalink / raw)
To: Ahmad Fatoum; +Cc: distrokit
Picked into next.
On Fri, Jul 12, 2024 at 04:34:22PM +0200, Ahmad Fatoum wrote:
> The i.MX ocotp driver already registers the SoC serial number, so
> it can be hashed into a machine ID. barebox can also derive a MAC
> address this way, so enable that option, so boards that have no
> proper MAC address fused get assigned a MAC address that stays
> constant over reboots.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
> ---
> configs/platform-v8a/barebox.config | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/configs/platform-v8a/barebox.config b/configs/platform-v8a/barebox.config
> index 6bbdd9224e1b..6e763c338f3f 100644
> --- a/configs/platform-v8a/barebox.config
> +++ b/configs/platform-v8a/barebox.config
> @@ -255,7 +255,7 @@ CONFIG_STATE=y
> # CONFIG_STATE_BACKWARD_COMPATIBLE is not set
> CONFIG_BOOTCHOOSER=y
> CONFIG_RESET_SOURCE=y
> -# CONFIG_MACHINE_ID is not set
> +CONFIG_MACHINE_ID=y
> # CONFIG_SYSTEMD_OF_WATCHDOG is not set
> CONFIG_EXTERNAL_DTS_FRAGMENTS="${PTXDIST_PLATFORMCONFIGDIR}/dts/bootstate.dtsi"
>
> @@ -513,6 +513,7 @@ CONFIG_CMD_STATE=y
> # end of Commands
>
> CONFIG_NET=y
> +CONFIG_NET_ETHADDR_FROM_MACHINE_ID=y
> CONFIG_NET_NFS=y
> CONFIG_NET_NETCONSOLE=y
> CONFIG_NET_RESOLV=y
> @@ -1142,6 +1143,7 @@ CONFIG_HAVE_DIGEST_MD5=y
> CONFIG_HAVE_DIGEST_SHA1=y
> CONFIG_HAVE_DIGEST_SHA224=y
> CONFIG_HAVE_DIGEST_SHA256=y
> +CONFIG_HAVE_DIGEST_HMAC=y
> CONFIG_DIGEST_CRC32_GENERIC=y
> CONFIG_DIGEST_MD5_GENERIC=y
> CONFIG_DIGEST_SHA1_GENERIC=y
> @@ -1149,7 +1151,7 @@ CONFIG_DIGEST_SHA1_GENERIC=y
> # CONFIG_DIGEST_SHA256_GENERIC is not set
> # CONFIG_DIGEST_SHA384_GENERIC is not set
> # CONFIG_DIGEST_SHA512_GENERIC is not set
> -# CONFIG_DIGEST_HMAC_GENERIC is not set
> +CONFIG_DIGEST_HMAC_GENERIC=y
> CONFIG_DIGEST_SHA1_ARM64_CE=y
> CONFIG_DIGEST_SHA256_ARM64_CE=y
> # CONFIG_CRYPTO_KEYSTORE is not set
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | Dipl.-Ing. Robert Schwebel |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-07-12 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-12 14:34 [DistroKit] [PATCH] v8a: barebox: derive stable MAC address from machine ID Ahmad Fatoum
2024-07-12 15:30 ` Robert Schwebel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox