LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   libusb: how do I mount usbfs? (http://www.linuxquestions.org/questions/slackware-14/libusb-how-do-i-mount-usbfs-4175477463/)

stf92 09-17-2013 10:47 AM

libusb: how do I mount usbfs?
 
Slackware 14.0 (x86_64).

Hi: Regarding package libusb-1.0.9-x86_64-1, it has been installed when installing slackware 14.0. However, usbfs is not mounted at boot time. I would like to know how I could mount it. See http://www.libusb.org/.

ml4711 09-17-2013 11:36 AM

See: https://www.kernel.org/doc/Documenta...c_usb_info.txt

"In many modern systems the usbfs filesystem isn't used at all. Instead
USB device nodes are created under /dev/usb/ or someplace similar. The
"devices" file is available in debugfs, typically as
/sys/kernel/debug/usb/devices."

mount debugfs by this line in /etc/fstab:
Code:

debugfs          /sys/kernel/debug debugfs    defaults        0  0

stf92 09-17-2013 11:46 AM

OK. But I need to do it the old way, that is with usbfs, because I'm trying to develop a USB driver. Is there a way to mount it, in spite of udev?

ml4711 09-17-2013 12:32 PM

Then you need to recompile the kernel with usbfs support.

In the kernel source tree call:
Code:

make menuconfig
you find the option here:
Device Drivers ---> USB support ---> USB device filesystem (DEPRECATED)

then compile and install kernel and modules, (read the README file for kernel-source)

setup lilo.conf and then run lilo

in fstab:
Code:

none  /proc/bus/usb  usbfs  defaults  0  0

stf92 09-17-2013 12:35 PM

I'll do that, or perhaps I'll use slackware 12.0. Thank you very much.


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