LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-28-2003, 08:08 PM   #1
pabdom
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.0
Posts: 6

Rep: Reputation: 0
Plugging USB device


Hello Everybody !!

I need your help. I have a problem with USB, and I would like to know how I can see what kernel does when I plug a USB device.
So I might know what the problem is .
Is it exist a command to see the "log messages" or anything similar?
Thanks in advance.
 
Old 08-28-2003, 08:37 PM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
tail -100 /var/log/messages | less

Cheers--
Charles
 
Old 08-28-2003, 10:09 PM   #3
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
do you know "dmesg" command ?
 
Old 08-29-2003, 03:53 PM   #4
pabdom
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
ReRe Plugging USB device

Hello!!
Thank you very much for your replies.
it has been very useful for see the errors. But I can't correct them.
I hope you could please help me again.

I have a Ethernet Adaptor that I am developing. it uses CDC Ethernet.
I have kernel 2.4.19-16mdk

I have USB support, ... like modules.
in etc/modules I have
usbcore
usb-uhci

When I plug the device I can't use ifconfig eth0 due to the following:
If I don't load CDCEther at first (modprobe CDCEther), when I plug and put dmesg I get
the following:

hub.c: USB new device connect on bus1/2, assigned device number 4
usb.c: USB device 4 (vend/prod 0x58b/0x4) is not claimed by any active driver.
usb.c: registered new driver acm
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters

If I load CDCEther before I plug, I obtain (since I put modprobe CDCEther)

CDCEther.c: CDCEther.c: 0.98.6 7 Jan 2002 Brad Hards and another
usb.c: registered new driver CDCEther
hub.c: USB new device connect on bus1/2, assigned device number 5
CDCEther.c: Imperfect filtering support - need sw hashing
CDCEther.c: Not all required functional descriptors present 0x00000003.
CDCEther.c: No ethernet information found.
CDCEther.c: No ethernet information found.
usb.c: USB device 5 (vend/prod 0x58b/0x4) is not claimed by any active driver.
usb.c: registered new driver acm
CDCEther.c: Imperfect filtering support - need sw hashing
CDCEther.c: Not all required functional descriptors present 0x00000003.
CDCEther.c: No ethernet information found.
CDCEther.c: No ethernet information found.
acm.c: v0.21:USB Abstract Control Model driver for USB modems and ISDN adapters

If I use uhci instead of usb-uhci it happens exactly the same.

I don't know why the kernel load acm instead of CDCEther, because I use Networking Ethernet Control model.

Could you please help me??

Thanks very much again for your help.

Pablo
 
Old 08-30-2003, 05:49 AM   #5
pabdom
LQ Newbie
 
Registered: Aug 2003
Distribution: Mandrake 9.0
Posts: 6

Original Poster
Rep: Reputation: 0
Smile Re Plugging USB OK

Thank you to everybody!!
dmesg was very useful to solve the problem.
It was a problem of descriptors.
I need to load CDCEther, and when I plug I only have to put:

ifconfig eth0 10.0.0.1

And all is OK, I can do pings....
But I would like to ask for another favour, Can I get the stadistics, or change the Multicast filters...

Does it exist any commands, or anythig like this ??

Thanks a lot.

Pablo
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux (FC4) freezes upon plugging in usb device nowatson Linux - Hardware 7 09-22-2005 04:49 AM
usb plugging order spaniard Linux - Hardware 1 09-22-2004 11:33 AM
plugging a usb device hangs redhat9/nforce mobo raghugs Red Hat 0 06-28-2004 02:51 AM
Plugging USB Mouse on the go... Jose Muņiz Linux - Hardware 0 02-07-2004 12:21 PM
Plugging in USB devices freezes RH 7.3 jrapczak Linux - Hardware 1 10-28-2003 05:25 PM

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

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