[PATCH v3 0/6] cmd: provide command to display SMBIOS information

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Thu Jan 25 16:54:32 CET 2024


U-Boot may supply an SMBIOS table or they may be copied from QEMU.

Provide a command to display the SMBIOS information.

Currently only type 1 and 2 are translated to human readable text.
Other types may be added later. Currently only a hexdump and the list of
strings is provided for these.

The following prerequisite had to be fixed:

* The definition of SMBIOS type 2 lacked a field.

v3:
	enable smbios command only on sandbox and qemu_arm64_defconfig
v2:
	for generic boards we only can assume that a type 127 table exists
	email address updated

Heinrich Schuchardt (6):
  smbios: type2: contained object handles
  cmd: provide command to display SMBIOS information
  doc: man-page for smbios command
  test: unit test for smbios command
  configs: enable smbios command on sandbox
  configs: enable smbios command on qemu_arm64_defconfig

 cmd/Kconfig                  |   6 ++
 cmd/Makefile                 |   1 +
 cmd/smbios.c                 | 191 +++++++++++++++++++++++++++++++++++
 configs/qemu_arm64_defconfig |   1 +
 configs/sandbox_defconfig    |   1 +
 doc/usage/cmd/smbios.rst     |  93 +++++++++++++++++
 doc/usage/index.rst          |   1 +
 include/smbios.h             |   1 +
 test/py/tests/test_smbios.py |  41 ++++++++
 9 files changed, 336 insertions(+)
 create mode 100644 cmd/smbios.c
 create mode 100644 doc/usage/cmd/smbios.rst
 create mode 100644 test/py/tests/test_smbios.py

-- 
2.43.0



More information about the U-Boot mailing list