[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[debian-knoppix] usbdevfs



Hi Ludo,

On Wed, Jul 23, 2003 at 06:37:54 +0000, Coume wrote:

> If anyone knows (even a bit) things about that, it would be great to
> have the small explanation.

The following is from the help text in the kernel configuration:

---------------------------------------------------------------------
Preliminary USB device filesystem

CONFIG_USB_DEVICEFS:

If you say Y here (and to "/proc file system support" below), you
will get a file /proc/bus/usb/devices which lists the devices
currently connected to your USB busses, a file /proc/bus/usb/drivers
which lists the USB kernel client drivers currently loaded, and for
every connected device a file named "/proc/bus/usb/xxx/yyy", where
xxx is the bus number and yyy the device number; the latter files
can be used by user space programs to talk directly to the device.
These files are "virtual", meaning they are generated on the fly
and not stored on the hard drive.

For the format of the /proc/bus/usb/ files, please read
Documentation/usb/proc_usb_info.txt.

Please note that this code is completely unrelated to devfs, the
"/dev file system support".

Most users want to say Y here.
---------------------------------------------------------------------

So usbdevfs is necessary for some userspace tools to get usb info
(usbview, lsusb, ...) and for usb drivers running in userspace. It isn't
needed for drivers in kernelspace like usb-storage and such.

If you are using a knx-hdinstall'd version of a recent Knoppix, there
might be a bug in /etc/init.d/hotplug. The script exits too early and
does not run all hotplug .rc scripts, including mounting usbdevfs.
At least Knoppix 3.2 2003-05-03 has this bug. You can try changing the
script to:

[...]
start)
    echo -n "Starting hotplug subsystem:"
    if [ "$runlevel" = "S" ]; then
        touch /etc/nohotplug
#    elif grep -q "^/sbin/hotplug$" /proc/sys/kernel/hotplug; then
#       # but, pending hotplug action will be executed
#       rm -f /etc/nohotplug
#       echo ".... already started. process pending events."
#       exit 0
    fi
    echo /sbin/hotplug > /proc/sys/kernel/hotplug
[...]

bye,
  Chris
-- 
Christian Perle                                   perle@itm.tu-clausthal.de
Grunaer Str. 31                      http://www.itm.tu-clausthal.de/~perle/
01069 Dresden                   LinuxGuitarKitesBicyclesBeerPizzaRaytracing
_______________________________________________
debian-knoppix mailing list
debian-knoppix@linuxtag.org
http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix


Reply to: