microsoft / microsoft/WSL

The request_firmware() function cannot find the path

Open
#10,260 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

### Windows Version

10.0.22621.1848

### WSL Version

1.2.5.0

### Are you using WSL 1 or WSL 2?

- [X] WSL 2
- [ ] WSL 1

### 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_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the request_firmware() call and reproduce the kernel-module load on WSL 2 with Ubuntu 22.04. Compare the missing /lib/firmware behavior with the wsl --debug-shell workaround and its crash; done means firmware loads from the expected path without crashing.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux, ubuntu
Domain
operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.