
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 prerequisites had to be fixed:
* The definition of SMBIOS type 2 lacked a field.
Heinrich Schuchardt (5): smbios: correct definition of gd_smbios_start() macro smbios: type2: contained object handles cmd: provide command to display SMBIOS information doc: man-page for smbios command test: unit test for smbios command
cmd/Kconfig | 7 ++ cmd/Makefile | 1 + cmd/smbios.c | 191 ++++++++++++++++++++++++++++++ doc/usage/cmd/smbios.rst | 93 +++++++++++++++ doc/usage/index.rst | 1 + include/asm-generic/global_data.h | 2 +- include/smbios.h | 1 + test/py/tests/test_smbios.py | 47 ++++++++ 8 files changed, 342 insertions(+), 1 deletion(-) 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