microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.52k stars 822 forks source link

The request_firmware() function cannot find the path #10260

Open xunanmu opened 1 year ago

xunanmu commented 1 year ago

Windows Version

10.0.22621.1848

WSL Version

1.2.5.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.90.1

Distro Version

Ubuntu22.04

Other Software

When insmod ko file of kernel module needs to load firmware, request_firmware() cannot request the correct path "/lib/firmware", but when wsl --debug-shell creates /lib/firmware to put firmware, request_firmware () can request the correct path but it crashes.

Repro Steps

When insmod ko file of kernel module needs to load firmware, request_firmware() cannot request the correct path "/lib/firmware", but when wsl --debug-shell creates /lib/firmware to put firmware, request_firmware () can request the correct path but it crashes.

Expected Behavior

request_firmware() to load the firmware correctly。

Actual Behavior

direct firmware load for (xxxxx) failed with error -2.

Diagnostic Logs

No response

ghost commented 1 year ago

I have a hard time reading what you wrote. But I think you're asking about loadable kernel modules, and we don't currently support that with the kernel that we ship.

xunanmu commented 1 year ago

I have a hard time reading what you wrote. But I think you're asking about loadable kernel modules, and we don't currently support that with the kernel that we ship.

Because of the problem with wsl's mount namespace mnt, the correct firmware path could not be found, resulting in failure to load the firmware.