Linux driver installation and so on.


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Linux driver installation and so on.
# 1  
Old 08-01-2011
Linux driver installation and so on.

I find Linux drivers to be the most elusive topic that there is and have enough questions about them that could fill a guide or tutorial if there was one.

From what I can gather drivers are installed by one of three ways.

1- Recompile the kernel to include a driver that is included in the source code.

2- Create a LKM for a particular driver. And

3- Install it with a script which i can't get any info on other than the hardware manufacturer give it to you.

Questions that I have.

1- How would I obtain the driver if it does not come with the kernel so I could use a LKM?

2- Is the Script method actually a Kernel Patch?

3- Could I get some info or search terms to investigate how Kernel Patches work if this is what a Kernel Patch is for?

Thanks for all your Help!Smilie
# 2  
Old 08-18-2011
Quote:
Originally Posted by theKbStockpiler
I find Linux drivers to be the most elusive topic that there is and have enough questions about them that could fill a guide or tutorial if there was one.
They're really not that mysterious. It's a program that either gets built into the kernel, or one or more files that can be loaded later. It's how to get these files that's more complicated.
Quote:
From what I can gather drivers are installed by one of three ways.

1- Recompile the kernel to include a driver that is included in the source code.

2- Create a LKM for a particular driver.
Options 1 and 2 are the same. Building a driver into the kernel uses the same files and scripts that the kernel uses to build itself. The difference is just where the code ends up -- in an external file, or added to the big pile of code they call a kernel.
Quote:
1- How would I obtain the driver if it does not come with the kernel so I could use a LKM?
Well, for starters, to obtain something, it has to actually exist of course.

If it's not in the kernel, it may be provided by the manufacturer.

Understand that open drivers of decent quality usually get incorporated into the kernel fairly rapidly. Drivers that are supplied by the manufacturer but not built into the kernel are either proprietary, crap, or -- most probably -- both. You'd be astonished at the crap manufacturers call device drivers sometimes. Third party corporations seem to obey no programming standards unless forced to by a Windows IDE.
Quote:
2- Is the Script method actually a Kernel Patch?
A script is a program, and not all scripts do the same thing. Some might just check you have the right features in your kernel to use their program, then copy a pre-built kernel module into /usr/lib/modules/. Others might link in some half-compiled objects with your kernel source to build a kernel module customized for your kernel. Some might build you a new kernel module from scratch.
Quote:
3- Could I get some info or search terms to investigate how Kernel Patches work if this is what a Kernel Patch is for?
Kernel patches are bugfixes. They're built-in, they're not modules you load later.

The important thing for installing kernel drivers is that .ko files end up in /usr/lib/modules/... In the end, that's what really matters.

Last edited by Corona688; 08-18-2011 at 12:04 PM..
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 08-18-2011
Thanks for the Reply!Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Certification For Linux Device Driver Programming

Hi All, I'm looking for role change to Linux device Driver developer. My current role has no connection to Linux Device driver development and hence to support my stand i want to do a certification for the same. I have googled but couldn't found any standard certification. I have submitted... (1 Reply)
Discussion started by: kg_gaurav
1 Replies

2. UNIX for Advanced & Expert Users

Graphics Driver Support in Linux

It's not exactly a question and more of a discussion. I found very less graphics application being developed for linux system. I'm not really fond of graphics programming and have a very little knowledge about it. Can any one suggest me that whether linux lack in ghraphics support? or... (2 Replies)
Discussion started by: kg_gaurav
2 Replies

3. Red Hat

Linux ODBC driver issue

Hi Gurus, I have a odbc in Linux. when I run command ldd. I got following result: # ldd DWora26.so linux-vdso.so.1 => (0x00007fff26355000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc31e70a000) librt.so.1 => /lib64/librt.so.1 (0x00007fc31e501000) ... (1 Reply)
Discussion started by: ken6503
1 Replies

4. Hardware

Difference between platform driver,codec driver and Machine driver

In general terms what are the differences platform driver,codec driver and Machine driver? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

5. Solaris

Porting a Linux Driver to Solaris

Hi all, Has anyone experience with proting a Linux driver (C-code) to Solaris 10? I have a Sunix SATA card with a inicio1622 chipset, but no driver available. From the website of inicio I downloaded the drivercode for Linux 2.4. Having done some investigation I found a Solaris driver... (4 Replies)
Discussion started by: longwave
4 Replies

6. UNIX for Dummies Questions & Answers

Need Book for Linux Basics and Linux device driver.

hai friend, I am new to Linux, i need a book for Linux basic and Linux device driver .. plz send the book name and author(Easy to learn and mostly used by programmers) and also send the link if it is available in Net... Thank you. ... (0 Replies)
Discussion started by: sundar.lsr
0 Replies

7. Linux

Port Linux Driver to Unix

I looking for someone who can help me port a Linux Driver to a OpenBSD( OS X ) Unix Driver. The driver is for a Logic Controls LD9000 USB Customer Display. The currently don't have a driver for the mac operating system, but they do however have one for the Linux OS. So, I am just trying to... (8 Replies)
Discussion started by: ghost1
8 Replies

8. UNIX for Advanced & Expert Users

modem driver for linux

how to get modem driver for linux on intel netvista a22p model?please help.Thanks.:( (2 Replies)
Discussion started by: xinubhaskar
2 Replies

9. UNIX for Advanced & Expert Users

Driver Installation in SunOS 5.8

I have written and compiled successfully, a device driver code for SunOS 5.8 but on issusing add_drv command, it gives me the following error : # add_drv test devfsadm: driver failed to attach: test Warning: Driver (test) successfully added to system but failed to attach Thanks in advance... (2 Replies)
Discussion started by: S.P.Prasad
2 Replies
Login or Register to Ask a Question