LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-06-2010, 03:47 AM   #1
toredo
Member
 
Registered: Feb 2009
Posts: 83

Rep: Reputation: 25
Show loaded Drivers


Hello,

I have a device /dev/ttyS4 and i wanna know which driver it uses.

The problem is:
If i compile a new kernel with the same configuration-file the device /dev/ttyS4 is away.

So i wanna know which driver it uses.

Can someone help me?

regards
toredo
 
Old 05-06-2010, 08:17 AM   #2
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
What you can do is do a long listing of the file and look at the major and minor device number.
Then you can create these manually and see if that works.
ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 May 6 2010 /dev/ttyS0
So a character device using major device 4 and minor device number 64 IIRC.
With mknod you can make a new device file.

I think the functionality is something like RS232 in the kernel config but I am not sure at all, this has been a long time since I used it.
 
Old 05-06-2010, 09:25 AM   #3
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
*tty*'s are probably in inittab.

$ cat /etc/inittab

You can view them in ps with their launching syntax.

$ ps wafu

getty is a normal driver, but there are other tty handlers.

$ find /sbin/ -iname '*tty*'
$ dpkg -l '*tty*'
 
Old 05-06-2010, 09:29 AM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
There's a few win-modems that create /dev/tty??#'s as well.

wvdial might help tell you what you've got. although it only works if you have said drivers to test against.

martian something for my lucent modems. A few linuxant things for conexant modems and other things. Not that common with broadband and standard DHCP or WiFi devices these days.
 
Old 05-07-2010, 01:08 AM   #5
toredo
Member
 
Registered: Feb 2009
Posts: 83

Original Poster
Rep: Reputation: 25
thx for the answers.

i have found it, i didn't patch the kernelen:
Quote:
...
+ /* USART1 on ttyS4. (Rx, Tx only) */
+ at91_register_uart(AT91SAM9260_ID_US4, 4, 0);
...
regards
toredo
 
  


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
Show options that kernel module was loaded with? fmyhr Linux - General 7 01-29-2009 08:28 AM
hardware drivers loaded explorer Linux - Networking 3 04-11-2004 05:36 AM
Drivers loaded at bootup jamescov Slackware 6 10-19-2003 07:33 PM
After The NVidia Drivers are loaded... Bevith Linux - Software 8 07-23-2003 06:24 AM
ds: no socket drivers loaded sancho5 Linux - General 1 07-22-2001 07:59 PM

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

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