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

WSL2: dmidecode missing /dev/mem -> /sys/firmware/dmi/tables/smbios_entry_point No such file or directory #4545

Closed
MrRedHead opened this issue Sep 25, 2019 · 8 comments
Assignees
Labels
wsl2 Issue/feature applies to WSL 2

Comments

@MrRedHead
Copy link

MrRedHead commented Sep 25, 2019

Your Windows build number: Microsoft Windows [Version 10.0.18362.356]
WSL: SUSE Linux Enterprise Server 12 SP2

  • What you're doing and what's happening:
    Trying to register with SUSEConnect, with SUSE_registration_code replaced with actual registration code.

sudo SUSEConnect -r SUSE_registration_code
root's password:
command 'dmidecode -s system-uuid' failed
Error: SCC returned 'Unknown Registration Code.' (401)

When running dmidecode:
sudo dmidecode -s system-uuid
/dev/mem: No such file or directory

  • What's wrong / what should be happening instead:
    SUSEConnect uses dmidecode, which fails
    dmidecode -s system-uuid should give some usefull data

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).

sudo strace dmidecode -s system-uuid
execve("/usr/sbin/dmidecode", ["dmidecode", "-s", "system-uuid"], [/* 14 vars */]) = 0
brk(0) = 0x1cb2000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2280d20000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=19301, ...}) = 0
mmap(NULL, 19301, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f2280d23000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\10\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1925032, ...}) = 0
mmap(NULL, 3811776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f2280650000
mprotect(0x7f22807e9000, 2097152, PROT_NONE) = 0
mmap(0x7f22809e9000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x199000) = 0x7f22809e9000
mmap(0x7f22809ef000, 14784, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f22809ef000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2280d10000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2280d00000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2280cf0000
arch_prctl(ARCH_SET_FS, 0x7f2280d00700) = 0
mprotect(0x7f22809e9000, 16384, PROT_READ) = 0
mprotect(0x612000, 4096, PROT_READ) = 0
mprotect(0x7f2280c20000, 4096, PROT_READ) = 0
munmap(0x7f2280d23000, 19301) = 0
open("/sys/firmware/dmi/tables/smbios_entry_point", O_RDONLY) = -1 ENOENT (No such file or directory)
brk(0) = 0x1cb2000
brk(0x1cd3000) = 0x1cd3000
open("/sys/firmware/efi/systab", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/proc/efi/systab", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/dev/mem", O_RDONLY) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fstat(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(4, 1), ...}) = 0
ioctl(3, TCGETS, {B38400 opost isig icanon echo ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f2280ce0000
write(3, "/dev/mem: No such file or direct"..., 36/dev/mem: No such file or directory
) = 36
close(3) = 0
munmap(0x7f2280ce0000, 4096) = 0
exit_group(1) = ?
+++ exited with 1 +++

@benhillis
Copy link
Member

benhillis commented Sep 25, 2019

zcat /proc/config.gz | grep -i devmem
# CONFIG_DEVMEM is not set

Potentially something we should look at adding to the kernel config.

@MrRedHead
Copy link
Author

Without the possibility to add a regcode it isn't possible to update or add repositories.
Is there another way to register? Or please fix the bug.

@MrRedHead
Copy link
Author

Alternate way of register:

This is possible either with the YaST2 Registration Module or with the SUSEConnect tool.

  • With YaST2
    Do the following:
    yast -> software
    -> Add-on Products
    -> Add
    -> Extensions and Modules from Registration Server...

enter registration details

@iadgovuser29
Copy link

iadgovuser29 commented Sep 27, 2019

zcat /proc/config.gz | grep -i devmem
# CONFIG_DEVMEM is not set

Potentially something we should look at adding to the kernel config.

That would be very useful.

@benhillis benhillis self-assigned this Sep 27, 2019
@benhillis benhillis added the wsl2 Issue/feature applies to WSL 2 label Sep 27, 2019
@benhillis
Copy link
Member

I'm adding the config option, thanks for posting the issue.

@SteveIves
Copy link

SteveIves commented May 20, 2020

I'm adding the config option, thanks for posting the issue.

What hapenned? Sounded like this was going to get addressed, but it's still an issue in released WSL2? Or do I need to add something to a config file to resolve this issue?

@AdityaGupta017
Copy link

dmidecode 3.3

Scanning /dev/mem for entry point.

No SMBIOS nor DMI entry point found, sorry.

Still facing this problem

@ssssshql
Copy link

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wsl2 Issue/feature applies to WSL 2
Projects
None yet
Development

No branches or pull requests

7 participants