mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Bind TLV to SoC-UID register value
@ 2026-01-20 16:11 Jonas Rebmann
  2026-01-20 16:11 ` [PATCH v3 1/2] tlv: Add tlv_bind_soc_uid mapping Jonas Rebmann
  2026-01-20 16:11 ` [PATCH v3 2/2] bareboxtlv-generator: add raw "bytes"-format Jonas Rebmann
  0 siblings, 2 replies; 3+ messages in thread
From: Jonas Rebmann @ 2026-01-20 16:11 UTC (permalink / raw)
  To: Sascha Hauer, BAREBOX; +Cc: Jonas Rebmann

This series includes a mechanism for binding a TLV to a specific unit
via the units SoC unique ID. This is to prevent interchange of the TLV
in question between unit, which may be needed in certain secure boot
scenarios.

As this is the first TLV field using a raw binary field, include support
for such a field type in the bareboxtlv-generator.

Signed-off-by: Jonas Rebmann <jre@pengutronix.de>
---
Changes in v3:
- Switch to using barebox_get_soc_uid_bin instead of comparing string
  representations, update comments accordingly
- Include bareboxtlv-generator support for binary fields
- Print expected/found SoC uids as eror on mismatch
- Don't mix dashes and underscores in property name
- Link to v2: https://lore.barebox.org/barebox/20251117-tlv_bind_serial-v2-1-60c7b1e3e81b@pengutronix.de

Changes in v2:
- Switch to using barebox_get_soc_uid and rename and reword everything
  accordingly (serial number -> soc uid)
- Init tlv_register_default as late_initcall instead of device_initcall
- Link to v1: https://lore.barebox.org/barebox/20251112-tlv_bind_serial-v1-1-638cf222553a@pengutronix.de

---
Jonas Rebmann (2):
      tlv: Add tlv_bind_soc_uid mapping
      bareboxtlv-generator: add raw "bytes"-format

 common/tlv/barebox.c                               | 25 +++++++++++++++++++++-
 include/tlv/tlv.h                                  |  1 +
 .../bareboxtlv-generator/bareboxtlv-generator.py   | 14 ++++++++++++
 3 files changed, 39 insertions(+), 1 deletion(-)
---
base-commit: 0024921364eb4c8bc8089fdc198440b0d67a239f
change-id: 20251112-tlv_bind_serial-b8b24a6fd4a0

Best regards,
--  
Jonas Rebmann <jre@pengutronix.de>




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

end of thread, other threads:[~2026-01-20 16:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-20 16:11 [PATCH v3 0/2] Bind TLV to SoC-UID register value Jonas Rebmann
2026-01-20 16:11 ` [PATCH v3 1/2] tlv: Add tlv_bind_soc_uid mapping Jonas Rebmann
2026-01-20 16:11 ` [PATCH v3 2/2] bareboxtlv-generator: add raw "bytes"-format Jonas Rebmann

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