DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Robert Schwebel <r.schwebel@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: distrokit@pengutronix.de
Subject: Re: [DistroKit] [PATCH] v8a: barebox: derive stable MAC address from machine ID
Date: Fri, 12 Jul 2024 17:30:28 +0200	[thread overview]
Message-ID: <ZpFMFKLEiyc_x0wy@pengutronix.de> (raw)
In-Reply-To: <20240712143422.4069634-1-a.fatoum@pengutronix.de>

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    |



      reply	other threads:[~2024-07-12 15:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-12 14:34 Ahmad Fatoum
2024-07-12 15:30 ` Robert Schwebel [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZpFMFKLEiyc_x0wy@pengutronix.de \
    --to=r.schwebel@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox