LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Getting USB to work (https://www.linuxquestions.org/questions/linux-hardware-18/getting-usb-to-work-235377/)

Smile005 09-26-2004 09:12 AM

Getting USB to work
 
I'm currently running Slackware 10 with the 2.6.7 kernel and I can't get any USB devices to work. I'm fairly new to Linux and I've never setup USB on it so I'm in new territory here.
I've tried to enable some USB modules and have them load at startup but it makes no difference. There's no /dev/usb dir or any usb devices in /dev.
Do you know of any USB configuration guides that could help me?
Thanks

len 09-26-2004 01:01 PM

i think this is in /etc/rc.d/rc.modules.

get intimate with your hardware (post hardware here as well can be extra helpful). getting chipset id for usb to work will be important.

if you find an exact module match, then you can use an editor, and remove the # in front of the module, save, and reboot your system. this will load the module at reboot.

also be certain that usb is enabled in the bios...



Smile005 09-26-2004 03:06 PM

It is however I only have entries for 2.4 kernel modules. I even tried loading all the 2.6.7 modules for usb on start up but that didn't work.
Also there is no entries in /proc/bus/usb
I believe that apart from having the modules ready there isn't anything else on my system that is configured properly.
What else can I try?

pauloref 09-26-2004 04:27 PM

i think you shoul modify the /etc/fstab. add this line
/dev/sda1 /mnt/sda1 vfat auto,rw,users,exec,unmask=000 0 0

you should then be able to mount the device, at least, so i did, I am curently using slack 9.1 with the kernel 2.6.7 try it

Smile005 09-27-2004 09:30 AM

That's kind of my problem, there is no /dev/sda devices, neither is there any /dev/usb devices.
Plus it's not just portable storage that is the problem, because of this my printer won't work either.
I think there's a step to install USB that I need to do to get them activated with udev.

pauloref 09-28-2004 01:20 PM

i think, you don't have a module for usb devices installed
try: ls /lib/modules/"your kernel"/kernel/drivers/usb
and then:
modprobe "the modules that there is inside"
if you don't follow what i said there, just try:
modprobe touchkitusb
modprobe cytherm
modprobe phidgetservo

after, if you have already the line i told you before inside your /etc/fstab
you should be able to mount your usb device, digital cameras and get your printer to work.
If it works, you will have to do those commands each time you reboot. so they worked, insert those vcommands in the file /etc/rc.d/rc.local

Smile005 09-28-2004 01:49 PM

This is what ls * returns when run in my /lib/modules/2.6.7/kernel/drivers/usb directory:
Quote:

class:
usblp.ko

core:
usbcore.ko

host:
ehci-hcd.ko ohci-hcd.ko uhci-hcd.ko

input:
usbhid.ko

storage:
usb-storage.ko
And as I've said before, it won't work because there is no /dev/sda1 device.
There's also no usb bus devices in the /proc dir.
I'm sure that there's something I need to run / do to enable USB on my system. I have the modules (perhaps not all the ones I need?) or maybe there's a USB enabled setting that's disabled. I don't know.
Thanks

Smile005 09-28-2004 02:14 PM

Progress!
 
Ok, I was looking up USB tutorials and found one that mounted the usb devices.
Something like: mount -t usbfs none /proc/bus/usb
When I did it it created a device directory in /proc/bus/usb and seems to have worked a little.
Anyway, I've put it in my fstab and hopefully some /dev/ entries will be created on the next boot by udev.
Fingers crossed...


All times are GMT -5. The time now is 09:57 AM.