Ubuntu request_firmware() failed

Li Wu willy.woo at gmail.com
Fri Oct 26 16:58:19 UTC 2012


Hi All,

This is my first time to use the Ubuntu kernel email list. If it's not
proper to ask question like this, please instruct me. I will definitely
follow the CODE.

I used the attached sample_driver.c to test kernel call request_firmware(),
it always failed and return error code -2.

My Ubuntu is 12.10

$lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 12.10
Release:    12.10
Codename:    quantal

The test firmware file test.bin is at /lib/firmware,
ls -l /lib/firmware/test.bin
-rw-r--r-- 1 root root 2048 Oct 26 23:55 /lib/firmware/test.bin


dmesg shows the following result:

[ 1971.274811] firmware (null): >_request_firmware_load: device_register
failed
[ 1971.274813] sample_probe_default request_firmware ret = -2


Anyone can instruct me how to make the request_firmware() work?

I googled but none of the solutions provided work for me.

Thanks and looking forward to hear from you.

Regards,

Willy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20121027/d0a74c14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample_driver.c
Type: text/x-csrc
Size: 2606 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20121027/d0a74c14/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: application/octet-stream
Size: 845 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20121027/d0a74c14/attachment.obj>


More information about the kernel-team mailing list