Skip to content
Snippets Groups Projects
  1. Jan 16, 2024
  2. Jan 13, 2024
  3. Jan 09, 2024
  4. Jan 07, 2024
  5. Dec 21, 2023
  6. Dec 20, 2023
    • Ilias Apalodimas's avatar
      smbios: Fallback to the default DT if sysinfo nodes are missing · 738b3466
      Ilias Apalodimas authored and Tom Rini's avatar Tom Rini committed
      
      In order to fill in the SMBIOS tables U-Boot currently relies on a
      "u-boot,sysinfo-smbios" compatible node.  This is fine for the boards
      that already include such nodes.  However with some recent EFI changes,
      the majority of boards can boot up distros, which usually rely on
      things like dmidecode etc for their reporting.  For boards that
      lack this special node the SMBIOS output looks like:
      
      System Information
              Manufacturer: Unknown
              Product Name: Unknown
              Version: Unknown
              Serial Number: Unknown
              UUID: Not Settable
              Wake-up Type: Reserved
              SKU Number: Unknown
              Family: Unknown
      
      This looks problematic since most of the info are "Unknown".  The DT spec
      specifies standard properties containing relevant information like
      'model' and 'compatible' for which the suggested format is
      <manufacturer,model>. Unfortunately the 'model' string found in DTs is
      usually lacking the manufacturer so we can't use it for both
      'Manufacturer' and 'Product Name' SMBIOS entries reliably.
      
      So let's add a last resort to our current smbios parsing.  If none of
      the sysinfo properties are found, scan for those information in the
      root node of the device tree. Use the 'model' to fill the 'Product
      Name' and the first value of 'compatible' for the 'Manufacturer', since
      that always contains one.
      
      pre-patch:
      Handle 0x0001, DMI type 1, 27 bytes
      System Information
              Manufacturer: Unknown
              Product Name: Unknown
              Version: Unknown
              Serial Number: 100000000bb24ceb
              UUID: 30303031-3030-3030-3061-613234636435
              Wake-up Type: Reserved
              SKU Number: Unknown
              Family: Unknown
      [...]
      
      and post patch:
      Handle 0x0001, DMI type 1, 27 bytes
      System Information
              Manufacturer: raspberrypi
              Product Name: Raspberry Pi 4 Model B Rev 1.1
              Version: Unknown
              Serial Number: 100000000bb24ceb
              UUID: 30303031-3030-3030-3061-613234636435
              Wake-up Type: Reserved
              SKU Number: Unknown
              Family: Unknown
      [...]
      
      Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
      Reviewed-by: default avatarPeter Robinson <pbrobinson@gmail.com>
      Tested-by: default avatarPeter Robinson <pbrobinson@gmail.com>
      738b3466
    • Ilias Apalodimas's avatar
      smbios: Simplify reporting of unknown values · a986ccea
      Ilias Apalodimas authored and Tom Rini's avatar Tom Rini committed
      
      If a value is not valid during the DT or SYSINFO parsing,  we explicitly
      set that to "Unknown Product" and "Unknown" for the product and
      manufacturer respectively.  It's cleaner if we move the checks insisde
      smbios_add_prop_si() and provide an alternative string in case the
      primary is NULL or empty
      
      pre-patch dmidecode
      <snip>
      Handle 0x0001, DMI type 1, 27 bytes
      System Information
              Manufacturer: Unknown
              Product Name: Unknown Product
              Version: Not Specified
              Serial Number: Not Specified
              UUID: Not Settable
              Wake-up Type: Reserved
              SKU Number: Not Specified
              Family: Not Specified
      
      [...]
      
      post-patch dmidecode:
      
      Handle 0x0001, DMI type 1, 27 bytes
      System Information
              Manufacturer: Unknown
              Product Name: Unknown
              Version: Unknown
              Serial Number: Unknown
              UUID: Not Settable
              Wake-up Type: Reserved
              SKU Number: Unknown
              Family: Unknown
      [...]
      
      While at it make smbios_add_prop_si() add a string directly if the prop
      node is NULL and replace smbios_add_string() calls with
      smbios_add_prop_si(ctx, NULL, ....)
      
      Signed-off-by: default avatarIlias Apalodimas <ilias.apalodimas@linaro.org>
      Reviewed-by: default avatarPeter Robinson <pbrobinson@gmail.com>
      Tested-by: default avatarPeter Robinson <pbrobinson@gmail.com>
      a986ccea
    • Ayoub Zaki's avatar
      rsa: use pkcs11 uri as defined in rfc7512 · ece85cc0
      Ayoub Zaki authored and Tom Rini's avatar Tom Rini committed
      pkcs11 : change engine uri to use full pk11-URI as defined in:
      
      https://www.rfc-editor.org/rfc/rfc7512.html
      
      
      Signed-off-by: default avatarAyoub Zaki <ayoub.zaki@embetrix.com>
      ece85cc0
  7. Dec 17, 2023
  8. Dec 13, 2023
Loading