LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 03-07-2011, 03:15 PM   #1
AustinMarton
Member
 
Registered: May 2007
Location: New Zealand
Distribution: Ubuntu
Posts: 88

Rep: Reputation: 16
Question How could you use request_firmware for drivers compiled in to the kernel?


Hello!

The kernel provides the firmware interface "request_firmware" (as described in page 405 of Linux Device Drivers 3rd ed.) to fetch firmware from user space that is stored in the file system.

It would make sense to me that the firmware loading would occur in the initialisation of a device. I would also think that the driver for a device that will always be present in the system should be compiled in to the kernel.

The problem then is, that the driver initialisation could be (and in my case is being) run before the root file system has been loaded.

Is this a common problem or am I in a unique situation where I just need to compile the driver as a loadable module to get around it? Any ideas?
 
Old 03-07-2011, 03:20 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Personally I would just compile and load it as a module. But that's me...

Josh
 
Old 03-15-2011, 07:43 PM   #3
rcbpage
LQ Newbie
 
Registered: Aug 2008
Posts: 27

Rep: Reputation: 0
You could Compile and build it with DKMS, or compile it by hand, using the distro supplied headers.
You would then need to add it to your Initrd image by doing a modprobe/depmod or adding to the modules list then updating it using your distros tools.
 
  


Reply



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
Is there a distribution that has qla2xxx fc drivers already compiled? sdad Linux - Newbie 4 09-09-2010 02:05 PM
How to list drivers compiled into the kernel? Tischbein Linux - Hardware 2 10-15-2006 11:23 AM
prism54g - request_firmware failed frogboy Linux - Wireless Networking 1 10-17-2004 09:51 AM
Installed vs. Compiled Drivers, Which To Use? Brain2000 Linux - Newbie 1 06-14-2004 09:41 PM
joystick drivers from atrey compiled into 2.4 kernel? LavaDevil94 Linux - Software 1 10-23-2003 01:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration