OS2 World Community Forum

OS/2, eCS & ArcaOS - Technical => Utilities => Topic started by: Neil Waldhauer on November 24, 2022, 08:44:39 pm

Title: dmidecode and UEFI
Post by: Neil Waldhauer on November 24, 2022, 08:44:39 pm
When we look at hardware, one of the tools we use is dmidecode.exe (version 2.12) This tool displays a wealth of information about the system, and we use it to fill out hardware reports for the wiki.

https://www.os2world.com/wiki/index.php/Extracting_Hardware_Information_from_ArcaOS_and_OS/2 (https://www.os2world.com/wiki/index.php/Extracting_Hardware_Information_from_ArcaOS_and_OS/2)

With UEFI support coming in ArcaOS 5.1, our port of dmidecode isn't working any more. We need dmidecode v3, apparently, which uses the UEFI to display the system information. I'm curious to know if anyone has looked into what would be required to port dmidecode v3.
Title: Re: dmidecode and UEFI
Post by: Andy Willis on November 24, 2022, 10:59:05 pm
I've long ago ported v3.
https://github.com/abwillis/dmidecode
However, I have not yet gotten UEFI support worked out. 
Title: Re: dmidecode and UEFI
Post by: Martin Iturbide on November 24, 2022, 11:15:27 pm
Hi Andy

Do you have any binary release of version 3 to give it a try?

Regards
Title: Re: dmidecode and UEFI
Post by: Tom on November 24, 2022, 11:31:11 pm
Hi Andy

Do you have any binary release of version 3 to give it a try?

Regards

On https://github.com/abwillis/dmidecode/releases it says "There aren't any releases here".
Source code is available (see e.g. https://github.com/abwillis/dmidecode/archive/refs/tags/dmidecode-3-3.zip), so maybe someone can try to compile that.
Title: Re: dmidecode and UEFI
Post by: Neil Waldhauer on November 25, 2022, 05:34:16 am
I've long ago ported v3.
https://github.com/abwillis/dmidecode
However, I have not yet gotten UEFI support worked out.

What are the obstacles? It looks to me like you need to have part running on the UEFI boot environment that leaves DMI data for the dmidecode to read (and decode).
Title: Re: dmidecode and UEFI
Post by: Andy Willis on November 27, 2022, 11:13:32 pm
I just found that dmidecode does work with UEFI with CSM enabled, but does not find the entry point without the CSM enabled.  Here is a 3.4 build for those interested in it.
Title: Re: dmidecode and UEFI
Post by: Neil Waldhauer on November 28, 2022, 03:23:37 pm
I found out that David A. smbios.dll, which is not yet generally available, is intended to find the entry point in all cases, even where CSM is not available.

I tested dmidecode with UEFI boot on, but CSM also on. This dmidecode works well. So does dmidecode 2.12.
Title: Re: dmidecode and UEFI
Post by: Martin Iturbide on November 28, 2022, 04:50:43 pm
Thanks Andy

Is it ok if I upload the attached file to hobbes? I added the man files and a basic readme.

Reagards
Title: Re: dmidecode and UEFI
Post by: David McKenna on November 29, 2022, 01:55:25 am
 Thanks Andy, 3.4 works well here on my UEFI with CSM system.

Regards,
Title: Re: dmidecode and UEFI
Post by: Andy Willis on November 30, 2022, 02:29:27 am
Thanks Andy

Is it ok if I upload the attached file to hobbes? I added the man files and a basic readme.

Reagards

Sure, there is not a lot of difference for us from version 2 but certainly no reason I can think of to not do so.
Title: Re: dmidecode and UEFI
Post by: Andy Willis on November 30, 2022, 02:32:56 am
I've long ago ported v3.
https://github.com/abwillis/dmidecode
However, I have not yet gotten UEFI support worked out.

What are the obstacles? It looks to me like you need to have part running on the UEFI boot environment that leaves DMI data for the dmidecode to read (and decode).

I had been trying to work it in util.c... which may well be doable but looking at it again, I think that testcfg.sys may be the more appropriate place to update... though I am not sure how to do it at this point.