aboutsummaryrefslogtreecommitdiff
path: root/cmd/smbios.c
Commit message (Collapse)AuthorAgeFilesLines
* smbios: correctly name Structure Table Maximum Size fieldHeinrich Schuchardt2024-02-021-1/+1
| | | | | | | | | | In the SMBIOS 3 entry point the Structure Table Maximum Size field was incorrectly named max_struct_size. A Maximum Structure Size field only exists in the SMBIOS 2.1 entry point and has a different meaning. Call the Structure Table Length field table_maximum_size. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
* cmd: smbios: show correct table size for SMBIOS2.1 entry pointHeinrich Schuchardt2024-02-021-4/+4
| | | | | | | | | | | The SMBIOS table size for SMBIOS2.1 entry points is in field 'Structure Table Length' (offset 0x16) and not in field 'Maximum Structure Size' (offset 0x08). Rename the receiving variable max_struct_size to table_maximum_size to avoid future confusion. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
* cmd: smbios: replace missing string by 'Not Specified'Heinrich Schuchardt2024-02-021-1/+5
| | | | | | | A missing string value is indicated by a string index of 0. In this case print 'Not Specified' like the Linux dmidecode command does. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
* cmd: smbios: add missing colon after UUIDHeinrich Schuchardt2024-02-021-1/+1
| | | | | | | For consistent formatting add a colon ':' after the UUID label. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
* cmd: smbios: always use '0x%04x' for printing handlesHeinrich Schuchardt2024-02-021-2/+2
| | | | | | Handles are u16 numbers. Consistently use '0x%04x' to print them. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
* cmd: provide command to display SMBIOS informationHeinrich Schuchardt2024-01-261-0/+191
U-Boot can either generated an SMBIOS table or copy it from a prior boot stage, e.g. 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. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>