[PATCH v3 0/2] Bind TLV to SoC-UID register value

Jonas Rebmann jre at pengutronix.de
Tue Jan 20 08:11:10 PST 2026


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 at 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 at pengutronix.de>




More information about the barebox mailing list