[plug] USB & kernel questions

Cameron Patrick cameron at patrick.wattle.id.au
Wed Dec 17 17:13:09 WST 2003


On Wed, Dec 17, 2003 at 04:52:20PM +0800, laurie anderson wrote:

|   Did a dmesg | less had a good look but find no references to USB.

The USB-related messages on my machine at home are:

$ dmesg
Linux version 2.4.21-cjp-erdos-3 (root at erdos) (gcc version 3.3.1 20030722 (Debian prerelease)) #1 Sun Aug 24 01:18:50 WST 2003
[...]
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: registered new driver hid
hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech at suse.cz>
hid-core.c: USB HID support drivers
[...]
PCI: Setting latency timer of device 00:02.2 to 64
ehci-hcd 00:02.2: PCI device 10de:0068 (nVidia Corporation)
ehci-hcd 00:02.2: irq 5, pci mem f88c8000
usb.c: new USB bus registered, assigned bus number 1
PCI: 00:02.2 PCI cache line size set incorrectly (0 bytes) by BIOS/FW.
PCI: 00:02.2 PCI cache line size corrected to 64.
ehci-hcd 00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2003-Jan-22
hub.c: USB hub found
hub.c: 6 ports detected
PCI: Setting latency timer of device 00:02.0 to 64
usb-ohci.c: USB OHCI at membase 0xf88d0000, IRQ 12
usb-ohci.c: usb-00:02.0, PCI device 10de:0067 (nVidia Corporation)
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
PCI: Setting latency timer of device 00:02.1 to 64
usb-ohci.c: USB OHCI at membase 0xf88d2000, IRQ 11
usb-ohci.c: usb-00:02.1, PCI device 10de:0067 (nVidia Corporation)
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 3 ports detected
[...]
hub.c: new USB device 00:02.1-2, assigned address 2
input0: USB HID v1.00 Mouse [Microsoft Microsoft IntelliMouse ® with IntelliEye] on usb3:2.0
[...]

The simplest way of setting up USB on a modern Debian machine, assuming
you have the drivers either in the kernel or compiled as modules (which
is like the case if you're using a stock Debian kernel) is to install
the hotplug package.  It takes care of what modules to load and
initialising the USB-related stuff.

One thing that you may have issues with in the particular case of
scanners and cameras is device "file" permissions and usbdevfs.
Currently I'm running my script to download photos from my USB camera as
root, but there must be a better way somewhere!

Re. what James said:  the kernel-image-2.4.22-1-k7 package is a kernel
optimised for Athlon ("k7") archiecture.

Cameron.




More information about the plug mailing list