maindmidecode - Support: sr #109118, Support for Mac / Boot Camp...

 
 

sr #109118: Support for Mac / Boot Camp Windows 10 64-bit under Cygwin

Submitter:  DK <dkroot>
Submitted:  Sun 14 Aug 2016 11:00:03 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  Wont Do
Privacy:  Public Assigned to:  khali
Open/Closed:  Closed Operating System:  Cygwin
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 22 Sep 2016 04:02:13 PM UTC, comment #5: 

And no, I'm not doing point versions. That's too much work. I am already very nice to provide a list of suggested patches, most projects don't bother doing it. This is how much I can time spend on dmidecode, no more.

It shouldn't be a big problem in practice. I don't expect every individual to build dmidecode from sources. Distributions care about that, and package maintainers know how to deal with patches.

Jean Delvare <khali>
Group administrator
Thu 22 Sep 2016 04:00:14 PM UTC, comment #4: 
Jean Delvare <khali>
Group administrator
Thu 22 Sep 2016 03:53:27 PM UTC, comment #3: 

The 2.10 trace doesn't show anything. Anyway, a quick web search suggests that /dev/mem was dropped from cygwin as Windows XP phased out because later versions don't support it. As dmidecode relied on it, it can no longer work.

So this has nothing to do with dmidecode 2.x vs 3.x. It has to do with vanilla dmidecode, which relies on /dev/mem, vs the build you got from the gnuwin32 project, which is clearly based on modified sources. It's actually all explained on their project page. Just go read it. There is a link to the required patch.

I did not accept these changes. dmidecode is a unix tool. We "supported" cygwin because it came at almost no cost, but I am not interested in adding Windows-specific code into dmidecode, for various reasons (one being that I can't maintain code that I can't test.) I'm sure there are other DMI table decoders running on Windows.

So I'll just stop claiming that cygwin is supported, thanks for pointing out that this was no longer true.

Jean Delvare <khali>
Group administrator
Fri 16 Sep 2016 07:04:40 PM UTC, comment #2: 

1. First of all, I doubt that Apple will spring to action on my report (even if an issue is confirmed) and start fixing firmware. My Mac is up-to-date with firmware updates, etc.

2. I used dmidecode 2.10 because this is the last version for which I managed to find a Windows executable (distributed by GnuWin32: http://gnuwin32.sourceforge.net/packages.html)

3. I downloaded dmidecode 2.12 source, compiled and ran that. I couldn't download any 2.12 patches: they error out at the moment.

Under Cygwin:

DK@Kyiv-W ~/dmidecode-2.12
$ ./dmidecode.exe
# dmidecode 2.12
/dev/mem: No such file or directory

$ ls -l /dev/mem
ls: cannot access '/dev/mem': No such file or directory

Compare with 2.10 from GnuWin32:

DK@Kyiv-W ~/dmidecode-2.10
$ ./dmidecode.exe
# dmidecode 2.10
SMBIOS 2.4 present.
48 structures occupying 2597 bytes.
Table at 0x00B23EC0.

[skipped: see the previously attached report]


4. Attaching strace logs for both 2.10 and 2.12 versions.

5. I did not get any compiler warnings when building 2.12.

Lastly, please, consider releasing point versions e.g. 2.12.1/3.0.1 with all recommended patches applied. Make it easier on your users, could you? Compiled Windows executable would be also much appreciated.

(file #38525, file #38526)

DK <dkroot>
Thu 25 Aug 2016 01:45:41 PM UTC, comment #1: 

First of all: you should really complain to the hardware vendor for shipping a machine with a broken DMI table. Or look for a BIOS update, maybe it has been fixed already.

The problem you report makes little sense to me. dmidecode 3.0 knows of more ways to reach the table, so I would understand if version 3.0 works and 2.x doesn't. But not the other way around. Either /dev/mem is there, or it isn't. If version 3.0 claims it's not there then version 2.x shouldn't work either.

What does "ls -l /dev/mem" return?

I'm not sure why you use version 2.10 for testing, when version 2.12 has been available for 3 years. Does version 2.12 work or not?

Can you attach the output of "strace dmidecode -t 0" for both versions?

Do you get any warning when building either version?

Jean Delvare <khali>
Group administrator
Sun 14 Aug 2016 11:00:03 PM UTC, original submission:  

I'm trying to use dmidecode on Mac / Boot Camp Windows 10 64-bit under Cygwin and am running into the issues.

dmidecode 2.10 is able to produce most of the data until it runs into the error (`Invalid entry length (0). DMI table is broken! Stop.`). The only piece of data that I'm missing out of the output is firmware version. See attached files (sanitized).

dmidecode 3.0 on the other hand errors out immediately with

```
# dmidecode 3.0
Scanning /dev/mem for entry point.
/dev/mem: No such file or directory
```

Things I tried so far:
1. Compile 3.0 source with all recommended patches applied or compile the master Git source as of August 14, 2016.
2. Run under Cygwin64 or natively under Windows.

DK <dkroot>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #38525:  strace-2.10.log added by dkroot (2KiB - application/octet-stream)
file #38526:  strace-2.12.log added by dkroot (55KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by khali (Posted a comment)
  • -email is unavailable- added by dkroot (Submitted the item)
  • -email is unavailable- added by dkroot
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-09-22 khali StatusNeed Info Wont Do
        Open/ClosedOpen Closed
    2016-09-16 dkroot Attached File- Added strace-2.10.log, #38525
        Attached File- Added strace-2.12.log, #38526
    2016-08-25 khali StatusNone Need Info
    2016-08-25 khali Assigned toNone khali
    2016-08-14 dkroot Attached File- Added dmidecode-2.10-t0-report.txt, #38210
        Attached File- Added dmidecode-2.10-t1-report-sanitized.txt, #38211
        Carbon-Copy- Added dkroot

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code