LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-28-2004, 09:27 PM   #1
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Rep: Reputation: 15
I/O, IRQ, and Drivers


I'm currently taking a repair class and this is related to, but not actual homework.

On a Windows box we had to determine the I/O address, IRQ, and driver for COM1, COM2, LPT1, mouse, modem, CD drive, display adapter, and network card. Is there some relatively easy way to get this info in Linux?

By checking the BIOS, dmesg, and some other hunting I managed to find the I/O and IRQ for everything but the mouse. But how do I determine what the drivers are? I've found the related source and object files in the build tree for the kernel but I don't think those would be the drivers. Mainly because you don't need the source installed if you have a precompiled kernel.

Does Linux have something like Device Manager or Sandra?

Thanks for any help

Last edited by sharper; 02-28-2004 at 09:29 PM.
 
Old 02-28-2004, 11:53 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
You can get a lot of information from these commands:
lsdev
cat /proc/interrupts
lsmod
dmesg


Also, if you are using the GUI kde, look in Control Center / Information
 
Old 02-29-2004, 07:00 AM   #3
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for the reply. lsdev was a new one to me. Now all I need are the names of the drivers. I know that if something is loaded as a module the module is the driver. But what if something is compiled into the kernel. Is there a seperate file that is the driver? Or is the driver actually part of the kernel itself?

For example, if my CD-drive supoport were compiled as a module the driver would be ide-cd.so. Since it is compiled into the kernel is the kernel the driver?
 
Old 02-29-2004, 08:46 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
I'm using Redhat, may be different for your OS. During the installation, a lot of generic drivers are loaded which will work in most cases. For example, I can find those cdrom drivers in
/lib/modules/<kernel version>/kernel/drivers/ide/ide-cd.o
If I load a driver after the fact like my ltmodem , for example, a new folder is created with the drivers in it. In this case, they are found at...
/lib/modules/<kernel version>/ltmodem/lt_modem.o and lt_serial.o

Find your kernel version with the command:uname -r
 
Old 02-29-2004, 11:08 AM   #5
sharper
Member
 
Registered: Aug 2002
Location: MN USA
Distribution: slakware 9.0
Posts: 121

Original Poster
Rep: Reputation: 15
I know that /lib/modules/<kernel version>/kernel/drivers has the drivers for devices that are loaded as modules.

But what about devices that are not loaded as modules? To use the CD as an example, if I had CD support compiled as a modules I would have
/lib/modules/<kernel version>/kernel/drivers/ide/ide-cd.o

But I have the CD support compiled into the kernel instead of being a module, do the ide-cd.o does not exist.

Which means there are drivers someplace else also. Those are what I am trying to figure out.
 
Old 02-29-2004, 11:49 AM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
If the driver isn't in the /lib/modules directory, sounds like you will need to go get them. Other than that I don't know where they could be located.
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IRQ Conflicts jeempc Linux - Hardware 2 02-29-2004 05:53 PM
irq geminyn_1981 Linux - Newbie 6 05-10-2003 05:58 AM
IRQ Settings LarryNY1 Linux - Hardware 12 03-20-2003 07:07 PM
Irq thep Linux - Hardware 4 02-26-2003 08:01 PM
Alsa drivers.. IRQ?, DMA? :-< fabricio Linux - General 3 12-05-2000 04:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:31 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