Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to load SMBIOS: neither SMBIOS or DT found (Win build) #4253

Closed
necros2k7 opened this issue Feb 7, 2022 · 8 comments · Fixed by #4254
Closed

Failed to load SMBIOS: neither SMBIOS or DT found (Win build) #4253

necros2k7 opened this issue Feb 7, 2022 · 8 comments · Fixed by #4254
Labels

Comments

@necros2k7
Copy link

necros2k7 commented Feb 7, 2022

Describe the bug
16:24:39:0605 FuContext Failed to load SMBIOS: neither SMBIOS or DT found
Loading… [- ]16:24:41:0105 FuEngine failed to probe device usb:02:00:01:03:04: USB error on device 1131:1001 : Entity not found [-5]
Loading… [***************************************]
WARNING: This package has not been validated, it may not work properly.
No detected devices

Steps to Reproduce
fwupdtool get-devices --show-all-devices

Expected behavior
usual programme execution

fwupd version information
1.7.4

  • Operating system and version:
  • win11 x79 moob
  • Have you tried rebooting?
    yes
@necros2k7 necros2k7 added the bug label Feb 7, 2022
@hughsie
Copy link
Member

hughsie commented Feb 7, 2022

neither SMBIOS or DT found

I don't know how to read the SMBIOS blob or DMI data when using win32 APIs. If you can help that would be awesome. e.g. I'm looking for this data:

[hughsie@fedora ~]$ sudo fwupdtool hwids 
Computer Information
--------------------
BiosVendor: LENOVO
BiosVersion: N2VET35W (1.20 )
BiosMajorRelease: 1
BiosMinorRelease: 20
FirmwareMajorRelease: 01
FirmwareMinorRelease: 09
Manufacturer: LENOVO
Family: ThinkPad P1 Gen 3
ProductName: 20TJS2F44A
ProductSku: LENOVO_MT_20TJ_BU_Think_FM_ThinkPad P1 Gen 3
EnclosureKind: a
BaseboardManufacturer: LENOVO
BaseboardProduct: 20TJS2F44A

@hughsie
Copy link
Member

hughsie commented Feb 7, 2022

Thanks, those were super useful:

[hughsie@fedora build-win32 (wip/hughsie/win32-smbios %)]$ ./src/fwupdtool.exe hwids
Computer Information
--------------------
BiosVendor: LENOVO
...

hughsie added a commit that referenced this issue Feb 7, 2022
hughsie added a commit that referenced this issue Feb 7, 2022
hughsie added a commit that referenced this issue Feb 7, 2022
@superm1
Copy link
Member

superm1 commented Feb 7, 2022

Btw double check the codebase for win32 disabled code. I seem to recall we had something set up to behave differently from smbios not being readable on windows but I don't remember what (and I'm traveling right now without a checkout).

@hughsie
Copy link
Member

hughsie commented Feb 7, 2022

set up to behave differently from smbios not being readable on windows

Yes, I remembered this as well, but couldn't see in the code what we did. Will poke some more.

@superm1
Copy link
Member

superm1 commented Feb 7, 2022

/* TODO: Read registry key [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Cryptography] "MachineGuid" */
is what I was thinking of, but that's reading a registry key.

@hughsie
Copy link
Member

hughsie commented Feb 7, 2022

but that's reading a registry key

But I can fix that now too. Give me 15 mins.

@hughsie
Copy link
Member

hughsie commented Feb 7, 2022

Give me 15 mins

#4257

13r0ck pushed a commit to pop-os/fwupd that referenced this issue Apr 29, 2022
13r0ck pushed a commit to pop-os/fwupd that referenced this issue Apr 29, 2022
13r0ck pushed a commit to pop-os/fwupd that referenced this issue Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

3 participants