ls -laR /proc/bus/usb incomplete
James Wilkinson
james at westexe.demon.co.uk
Sat Jul 17 00:15:07 UTC 2004
Joachim Backes wrote:
> I installed Kernel (vanilla) in FC2, and I have problems with /proc/bus/usb.
> USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01).
>
> I have attached a SanDisk memory USB stick and a USB mouse; both are running
> well. But When I want to list all attached USB devices by using
> ls -laR /proc/bus/usb
> or using lsusb, I get an empty device overview.
Let me guess: you've compiled the USB support in, not built it as a
module.
Another guess: you haven't mounted the usbdevfs filesystem. Try
mount -t usbdevfs usbdevfs /proc/bus/usb
(as root), and see if it works.
The problem comes in /etc/rc.d/rc.sysinit, around line 208:
action $"Initializing USB controller ($alias): " modprobe $alias
The modprobe failsi (solely because it isn't needed), so by line 210:
[ $? -eq 0 -a -n "$aliases" ] && usb=1
the return value from the modprobe ( $? ) is not zero, so $usb is not
set.
This causes problems further down the line: in particular, the usbdevfs
isn't mounted.
To fix this, edit rc.sysinit so usb is set to 1 anyway. I'd change line
210 to something like this:
[ -n "$aliases" ] && usb=1
Hope this helps,
James.
--
E-mail address: james@ | "I never really understood how there could be things
westexe.demon.co.uk | that would drive you insane just because you knew
| them until I ran into Windows."
| -- Peter da Silva
More information about the fedora-list
mailing list