Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Right. I was using Slack 10 with the 2.4.28 kernel. No problems with USB - my memory stick and PDA were picked up no trouble.
Now I'm on Gentoo with a 2.6.9 kernel. And I can't get ANYTHING recognised on USB.
When I boot up, all the USB shows up as fine:
Code:
ehci_hcd 0000:00:02.2: nVidia Corporation nForce2 USB Controller
PCI: Setting latency timer of device 0000:00:02.2 to 64
ehci_hcd 0000:00:02.2: irq 11, pci mem e083a000
ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1
PCI: cache line size of 64 is not supported by device 0000:00:02.2
ehci_hcd 0000:00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
So does devfs, for that matter. . .
Code:
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
Mounted devfs on /dev
But when I plug in a USB device... Nothing. No messages appear in any of the logs. /proc/bus/usb remains empty. lsusb shows nothing. /dev/usb and /dev/scsi remain empty.
As far as I can tell from my kernel, USB and SCSI support are fully enabled. There are no error messages anywhere. I just can't get anything on USB recognised as existing.
Please, suggest something! I'm beginning to think it's laughing at me!
and mount gives
/dev/hda10 on / type ext3 (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
/dev/hda1 on /boot type ext2 (rw,noatime)
/dev/hda6 on /home type ext3 (rw,noatime)
/dev/hda7 on /space type ext3 (rw,noatime)
none on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
none on /proc/bus/usb type usbfs (rw)
Does that help..?
Last edited by oneandoneis2; 12-11-2004 at 11:10 AM.
I'm running Gentoo with the 2.6.9 kernel as well, but my USB works just fine. I wonder if you set up an entry in the file /etc/fstab for your usb device. Mine looks like:
The /dev/sda1 entry is for the USB device. Do you have such a line? Also, you have to create a mount point, I created /mnt/flash. Then when the usb device is plugged in (and the usb mass storage module is loaded) I issue a mount command: mount /dev/sda1 and the contents of the usb device are then available in /mnt/flash.
I haven't got such a line, no, because /dev/sda1 doesn't exist. . .
I just rebooted without having the USB drive plugged in, incidentally, and /dev/shm still exists just as before. So I guess it wasn't detecting my USB drive after all.
Maybe I should try installing genkernel and see if USB works from that. At least then I'd know if it was a kernel issue. . .
Try to take people's suggestions to heart ok? I'm fairly certain my previous post will help you. Some additional info: /dev/shm has NOTHING to do with usb devices. It is used for ram disks, which most linux distros set up. Also, although it isn't obvious your usb devices will be recognized by most distros (including Gentoo) as something like sda or sdb. Try it.
Okay, now this is just getting worse and worse. . .
I had enabled UHCI support, as this was what I thought I had. However, or booting into Slack (where USB works) I found that it was showing OHCI as active.
So, hoorah, I think, that's the problem. I have the wrong thing enabled.
So I go recompile the kernel, switch off UHCI, switch on OHCI, and reboot.
Is it fixed? Is it Hell!
In fact, it's working even LESS than before. lsusb gives no output, just jams solid. Trying to access the "devices" file in the /proc/bus/usb directory jams solid too.
Having OHCI and UHCI both compiled gives the same results. Compiling them as modules gives nothing better.
So now I have the choice of enabling OHCI and having it lock up a terminal whenever I try and access anything USB-related, or I can compile UHCI, which I haven't got, but which doesn't cause lockups.
I went into the kernel config and switched OFF the options that I'd previously turned ON in trying to get USB working.
And lo and behold, suddenly, it works! I plug in my flash disk, and there it is, on dmesg and the syslog and in lsusb
Woohoo! Success at last. It's been recognised and is working flawlessly.
Except it doesn't seem to have a corresponding /dev entry. So even tho it's recognised, I have no idea how to mount it.
The messages I get when I plug it in are:
Code:
Dec 11 23:32:14 gentoo ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus [1] = 0x00010101 CSC PPS CCS
Dec 11 23:32:14 gentoo hub 3-0:1.0: port 2, status 0101, change 0001, 12 Mb/s
Dec 11 23:32:14 gentoo hub 3-0:1.0: debounce: port 2: total 100ms stable 100ms status 0x101
Dec 11 23:32:14 gentoo ohci_hcd 0000:00:02.1: GetStatus roothub.portstatus [1] = 0x00100103 PRSC PPS PES CCS
Dec 11 23:32:14 gentoo usb 3-2: new full speed USB device using address 5
Dec 11 23:32:14 gentoo usb 3-2: new device strings: Mfr=1, Product=2, SerialNumber=3
Dec 11 23:32:14 gentoo usb 3-2: default language 0x0409
Dec 11 23:32:14 gentoo usb 3-2: Product: Flash Disk
Dec 11 23:32:14 gentoo usb 3-2: Manufacturer: USB
Dec 11 23:32:14 gentoo usb 3-2: SerialNumber: 284B394150E0B3F7
Dec 11 23:32:14 gentoo usb 3-2: hotplug
Dec 11 23:32:14 gentoo usb 3-2: adding 3-2:1.0 (config #1, interface 0)
Dec 11 23:32:14 gentoo usb 3-2:1.0: hotplug
Dec 11 23:32:35 gentoo spurious 8259A interrupt: IRQ7.
Just telling it to mount /dev/sda1 doesn't work any better than before. It's found the hardware, but not as far as devfs is concerned. Even manually creating /dev/sda and /dev/sda1 hasn't helped.
Any ideas?
Last edited by oneandoneis2; 12-11-2004 at 06:19 PM.
This is a long shot, but you might try turning OFF hotplug. I had all sorts of problems with USB until I turned hotplug off. It seems to be broken (in my distro, with my hardware, at least).
Well, since I've got the same setup (Gentoo kernel 2.6.9) I'll tell you exactly what I did and I can't do more than that!
In my kernel config I turned on EHCI (which is USB 2.0), OHCI (for NForce 2), and UHCI (Via and Intel). If your usb ports are version 2.0 then you probably need the EHCI support. I also have usb mass storage turned on as a module.
Then I compiled the kernel, added the /dev/sda1 line to my fstab file, and created the mountpoint /mnt/flash
When I use the usb flash disk, I always modprobe the usb-storage module manually as I don't use it that much. Then I plug in the device and the do the mount /dev/sda1. That's it - she works, works, works.
Here is a look at my dmesg:
ehci_hcd 0000:00:02.2: nVidia Corporation nForce2 USB Controller
PCI: Setting latency timer of device 0000:00:02.2 to 64
ehci_hcd 0000:00:02.2: irq 20, pci mem e080e000
ehci_hcd 0000:00:02.2: new USB bus registered, assigned bus number 1
PCI: cache line size of 64 is not supported by device 0000:00:02.2
ehci_hcd 0000:00:02.2: USB 2.0 enabled, EHCI 1.00, driver 2004-May-10
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 6 ports detected
ohci_hcd: 2004 Feb 02 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 22 (level, high) -> IRQ 22
ohci_hcd 0000:00:02.0: nVidia Corporation nForce2 USB Controller
PCI: Setting latency timer of device 0000:00:02.0 to 64
ohci_hcd 0000:00:02.0: irq 22, pci mem e0810000
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 3 ports detected
ACPI: PCI interrupt 0000:00:02.1[B] -> GSI 21 (level, high) -> IRQ 21
ohci_hcd 0000:00:02.1: nVidia Corporation nForce2 USB Controller (#2)
PCI: Setting latency timer of device 0000:00:02.1 to 64
ohci_hcd 0000:00:02.1: irq 21, pci mem e0812000
ohci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 3 ports detected
USB Universal Host Controller Interface driver v2.2
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.0:USB HID core driver
Finally fixed it! I wasn't aware that hotplug had been split into hotplug and coldplug. So I hadn't emerged coldplug. That did it.
Had to recompile the kernel again as I'd forgotten to enable Palm support, but now my flash disk and PDA both talk to my computer, so that's everything working at last.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.