[PATCH 0/2] Add additional globalvar for soc_uid
Jonas Rebmann
jre at pengutronix.de
Mon Apr 13 01:21:47 PDT 2026
Hi Fabian,
On 2026-03-30 14:24, Fabian Pflug wrote:
> The binary representation was used to compare against,
What was compared against soc_uid_bin? Or is it still?
tlv_bind_soc_uid?
> but never exposed to userspace to query, as the exposed variables
> could correlate with the value, but did not.
The exposed string representation is encoded in a manufacturer-specific
manner, hence for use in scripting, soc_uid_bin should be accessible in
a generic representation.
> For example on i.MX8MP the byte order was reversed in comparing
> the return value of barebox_get_soc_uid_bin and $global.soc_uid.
This was discussed with regard to i.MX8MP, where the byte order of
$global.soc_uid and linux' /sys/devices/soc0/serial_number is reversed
compared to barebox_get_soc_uid_bin.
Regardless of whether the current value of barebox_get_soc_uid_bin is
correct, barebox_get_soc_uid_bin should be used for scripting.
> Signed-off-by: Fabian Pflug <f.pflug at pengutronix.de>
> ---
> Fabian Pflug (2):
> common: misc: add soc_uid_bin to globalvar
> i.MX: HAB: update text for HABV4_CSF_UNLOCK_UID
>
> arch/arm/mach-imx/Kconfig | 11 +++--------
> common/misc.c | 8 ++++++--
> 2 files changed, 9 insertions(+), 10 deletions(-)
> ---
> base-commit: 1d386a53086d28a0c4eda138ae9408a418b97b7e
> change-id: 20260330-v2026-03-0-topic-soc_bin_id-d12a84d7b1b5
>
> Best regards,
--
Pengutronix e.K. | Jonas Rebmann |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-9 |
More information about the barebox
mailing list