LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-27-2009, 06:50 PM   #1
amit1947
LQ Newbie
 
Registered: May 2009
Posts: 5

Rep: Reputation: 0
PCI Device Driver development and deployment


I am developing a PCI (for Linux 2.6+) driver for some instruments (I have a compiled kernel module .ko file) and I would like to know how to have Linux automatically create the correct /dev node and start the correct .ko file. I know that UDEV is probably the answer to my question, but how do I go about telling Linux the VendorID/DeviceID and matching .ko and /dev node name? I believe there is some rule file that needs to modified?

What I am asking for is the equivalent of an .inf file in Windows, where you can install new hardware and have Windows automatically identify and install (run) the correct device driver.

I have tested the device driver and it works, but I have to manually create my own file in /dev (/dev/HW) and then do an insmod on my .ko file to start the device driver, every time I boot Linux.

Just for some background info, my driver basically manages some memory mapped PCI hardware for my user-mode libraries to access.

Thanks in advance for any help!
 
Old 05-27-2009, 06:54 PM   #2
amit1947
LQ Newbie
 
Registered: May 2009
Posts: 5

Original Poster
Rep: Reputation: 0
I guess a follow up question is how to automate the installation procedure? I am guessing I would need to write a script that will be run once to add the correct VendorID/DeviceID - device driver rules (or whatever is required to solve my inital post to this thread) and possibly compile the kernel mode driver from source? If I am sticking to kernel 2.6.x , do I need to compile from source on any machine I install the driver on?
 
  


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
LXer: LinuxCertified Announces Linux Device Driver Development Course LXer Syndicated Linux News 0 04-18-2008 03:20 PM
User Space Device Driver Development ameya.verma Linux - Software 0 04-02-2008 02:26 AM
LXer: LinuxCertified Announces Linux Device Driver Development Course. LXer Syndicated Linux News 0 06-22-2007 04:01 AM
Bar Code Reader Device Driver Development Ulises Linux - Kernel 2 01-24-2007 09:02 AM
Linux Device Driver Development aslv Linux - Certification 0 09-27-2004 08:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:08 AM.

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