LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 10-31-2012, 10:45 AM   #1
andrixnet
Member
 
Registered: Oct 2012
Posts: 32

Rep: Reputation: Disabled
Exclamation Kernel loading firmware with hotplug or udev?


AFAIK the hotplug program was superseded by udev which is a userland daemon that handles the events that were handled by hotplug.

I am using a Dell server with a Brocade 825 FC adapter and have Slackware 13.7 installed.
Since the hotplug script is old and replaced by udev, Slackware has moved on. That is it contains udev and no longer contains hotplug.

I wouldn't want to imagine hwo these two would run into each other trying to act on hotplug events...

By default, the bfa driver is built in. However this driver requires 3 firmware files in /lib/firmware.

I've read through the sources of the kernel, the driver, the firmware loading sequence and I am baffled.

Scenario 1:
bfa is built in. Kernel boots, mounts root, driver tries to load firmware via hotplug script. No script, it fails to load firmware. Driver not working.
Note : udev has not started yet at this stage.

Scenario 2:
bfa is module. Kernel boots, by the time the module is loaded, udev is running and driver is is able to load firmware properly and it works.

Ok, problem solved, apparently. But still...

Is the firmware load subsystem old in the kernel? (ie designed for explicitely for hotplug script)
If not, is hotplug script obsolete and replaced by udev or not ?
(I found info about Ubuntu dropping hotplug scripts in 2005 ...)

In essence, what is the correct way to load firmware for a kernel driver, at boot time, if the driver is builtin ?
 
  


Reply

Tags
firmware, kernel, slackware


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
How to load a firmware file in CentOS with udev / hotplug? ptemmerman Linux - Newbie 3 05-06-2009 02:56 PM
loading firmware on USB device with udev 559jmp Linux - General 2 11-09-2008 10:50 PM
hotplug, udev, and module loading shievelet Linux - General 1 06-06-2006 05:19 AM
Issues with hotplug loading firmware for acx111 on 10.2 cwhalen Slackware 4 04-22-2006 08:23 PM
hotplug firmware loading problem alexisph Linux - Software 2 10-02-2004 03:11 AM


All times are GMT -5. The time now is 11:46 AM.

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