LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Plugging USB device (https://www.linuxquestions.org/questions/linux-hardware-18/plugging-usb-device-86780/)

pabdom 08-28-2003 07:08 PM

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.

cnjohnson 08-28-2003 07:37 PM

tail -100 /var/log/messages | less

Cheers--
Charles

Half_Elf 08-28-2003 09:09 PM

do you know "dmesg" command ?

pabdom 08-29-2003 02:53 PM

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

pabdom 08-30-2003 04:49 AM

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


All times are GMT -5. The time now is 02:44 PM.