mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add additional globalvar for soc_uid
@ 2026-04-15 11:10 Fabian Pflug
  2026-04-15 11:10 ` [PATCH v2 1/2] common: misc: add soc_uid_hex to globalvar Fabian Pflug
  2026-04-15 11:10 ` [PATCH v2 2/2] i.MX: HAB: update text for HABV4_CSF_UNLOCK_UID Fabian Pflug
  0 siblings, 2 replies; 15+ messages in thread
From: Fabian Pflug @ 2026-04-15 11:10 UTC (permalink / raw)
  To: Sascha Hauer, Jonas Rebmann, BAREBOX; +Cc: Fabian Pflug

The binary representation was used to compare against, but never exposed
to userspace to query, as the exposed variables could correlate with the
value, but did not.

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.

The exposed string representation is encoded in a manufacturer-specific
manner, hence for use in scripting, soc_uid_hex should be accessible in
a generic representation.

Signed-off-by: Fabian Pflug <f.pflug@pengutronix.de>
---
Changes in v2:
- Renamed soc_uid_bin to soc_uid_hex
- Add to MAGICVAR
- removed "is is" in help text
- Updated commit messages
- Link to v1: https://lore.barebox.org/barebox/20260330-v2026-03-0-topic-soc_bin_id-v1-0-11292f75b196@pengutronix.de

---
Fabian Pflug (2):
      common: misc: add soc_uid_hex to globalvar
      i.MX: HAB: update text for HABV4_CSF_UNLOCK_UID

 arch/arm/mach-imx/Kconfig | 11 +++--------
 common/misc.c             |  9 +++++++--
 2 files changed, 10 insertions(+), 10 deletions(-)
---
base-commit: 1d386a53086d28a0c4eda138ae9408a418b97b7e
change-id: 20260330-v2026-03-0-topic-soc_bin_id-d12a84d7b1b5

Best regards,
-- 
Fabian Pflug <f.pflug@pengutronix.de>




^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-04-22  9:47 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-15 11:10 [PATCH v2 0/2] Add additional globalvar for soc_uid Fabian Pflug
2026-04-15 11:10 ` [PATCH v2 1/2] common: misc: add soc_uid_hex to globalvar Fabian Pflug
2026-04-15 11:14   ` Jonas Rebmann
2026-04-22  7:56   ` Sascha Hauer
2026-04-22  8:14     ` Fabian Pflug
2026-04-22  8:25       ` Sascha Hauer
2026-04-22  8:52         ` Fabian Pflug
2026-04-22  9:16           ` Sascha Hauer
2026-04-22  9:19             ` Fabian Pflug
2026-04-22  9:38               ` Sascha Hauer
2026-04-15 11:10 ` [PATCH v2 2/2] i.MX: HAB: update text for HABV4_CSF_UNLOCK_UID Fabian Pflug
2026-04-15 11:14   ` Jonas Rebmann
2026-04-22  7:43   ` Sascha Hauer
2026-04-22  7:49     ` Fabian Pflug
2026-04-22  9:47     ` Jonas Rebmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox