Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Closed Thread
  Search this Thread
Old 12-19-2006, 01:56 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 3

Rep: Reputation: 0
downloading firmware


I wanted to download firmware via the hotplug mechanism...I just wrote a simple module for the sake of testing. This is the module:

static struct device dev = {
.bus_id = "dev"

static void sample_probe_default(void)
const struct firmware *fw_entry =NULL;
int k;
printk("firmware_driver: device is inserted\n");

k = request_firmware(&fw_entry,"fw_load",&dev);
printk(KERN_ERR "firmware_driver: Firmware not available\n");

static int sample_init(void)
printk(KERN_DEBUG "initialized device\n");
return 0;
static void __exit sample_exit(void)

module_init (sample_init);
module_exit (sample_exit);


When I insert the module, the system hangs...and I get to see the following messages on the screen.

firmware_driver: device is inserted
fw_register_class_device: class_device_register failed
firmware_driver: Firmware not available

Also..sme imp things...
cat /proc/sys/kernel/hotplug shows /sbin/hotplug
I have placed the firmware file i.e. fw_load in the apporpriate directory i.e. /usr/lib/hotplug/firmware/fw_load
The firmware.agent is also at the appopriate place /etc/hotplug/firmware.agent
The module creates a directory dev but it doesnot contain the required files i.e. loading & data
If smeone cud help me out wid dis.... am using kernel version 2.6.6...any help wud be appreciated..Plz also point out anythin dat Iam missing here.
Old 12-19-2006, 03:28 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with firmware coronet_blue Linux - Hardware 1 05-11-2006 01:04 PM
Linksys WPC54G ACX 111 Firmware Downloading Problems cheetahman SUSE / openSUSE 3 03-15-2006 04:26 PM
concerning: firmware Accolon SUSE / openSUSE 1 10-30-2004 06:57 AM
messed up my ipod firmware..need new firmware.. casimir Linux - Hardware 2 09-13-2004 09:11 PM
Firmware help! radha Programming 1 05-06-2003 05:11 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:44 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration