The request_firmware() function cannot find the path
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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