Unix Technical Forum

Help with 2.6.5 and USB

This is a discussion on Help with 2.6.5 and USB within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I have recently switched to the 2.6.5 kernel and am having some trouble with the USB. I am running ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 10:22 AM
Shilo Bacca
 
Posts: n/a
Default Help with 2.6.5 and USB

I have recently switched to the 2.6.5 kernel and am having some trouble
with the USB. I am running Slackware-current. My /etc/fstab reads as
follows:

/dev/hda3 swap swap defaults 0 0
/dev/hda2 / reiserfs defaults 1 1
/dev/hda1 /fat-c vfat auto,rw,umask=000 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /sys/bus/usb usbdevfs defaults 0 0

When I boot my computer, /proc and /sys mount fine, but /sys/bus/usb gives
me an error, saying that the mount point does not exist. I log on and I
cd to /sys/bus/usb and see that it does exist, and that it has a /devices
and /drivers folder. I cd to /proc/bus/usb, which also exists, but I see
that it is empty. This, I believe, means that it won't do me any good to
change my fstab entry to the old /proc/bus/usb. I also don't see any usb
devices found during boot, and I'd really like to get my canoscan 630 usb
scanner working.

Any ideas what I am doing wrong with my fstab and my USB?

Thanks in advance,

Shilo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 10:22 AM
Steve Youngs
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

* Shilo Bacca <shilo@shilobacca.com> writes:

> I have recently switched to the 2.6.5 kernel and am having some trouble
> with the USB. I am running Slackware-current. My /etc/fstab reads as
> follows:


[...]

> none /sys/bus/usb usbdevfs defaults 0 0


> When I boot my computer, /proc and /sys mount fine, but /sys/bus/usb gives
> me an error, saying that the mount point does not exist. I log on and I
> cd to /sys/bus/usb and see that it does exist, and that it has a /devices
> and /drivers folder. I cd to /proc/bus/usb, which also exists, but I see
> that it is empty. This, I believe, means that it won't do me any good to
> change my fstab entry to the old /proc/bus/usb. I also don't see any usb
> devices found during boot, and I'd really like to get my canoscan 630 usb
> scanner working.


> Any ideas what I am doing wrong with my fstab and my USB?


My entry for USB looks like this...

none /proc/bus/usb usbfs defaults 0 0


--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| Ashes to ashes, dust to dust. |
| The proof of the pudding, is under the crust. |
|------------------------------<sryoungs@bigpond.net.au>---|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 10:23 AM
Joost Kremers
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

Shilo Bacca wrote:
> none /proc proc defaults 0 0
> none /sys sysfs defaults 0 0
> none /sys/bus/usb usbdevfs defaults 0 0


usbdevfs was replaced by usbfs. does changing that help?

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 10:23 AM
Shilo
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

On Fri, 09 Apr 2004 10:02:30 +0000, Joost Kremers wrote:

>
> usbdevfs was replaced by usbfs. does changing that help?


No, I just changed that and rebooted, still get the same message that
/sys/bus/usb does not exist. Thank you for your help. Any other ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 10:24 AM
Ken P
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

On Fri, 09 Apr 2004 17:06:46 GMT, Shilo <root@localhost.com> wrote:
> On Fri, 09 Apr 2004 10:02:30 +0000, Joost Kremers wrote:
>
>>
>> usbdevfs was replaced by usbfs. does changing that help?

>
> No, I just changed that and rebooted, still get the same message that
> /sys/bus/usb does not exist. Thank you for your help. Any other ideas?


My fstab.
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

cat /proc/bus/usb/devices

<snip>
T: Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.5 uhci_hcd
S: Product=VIA Technologies, Inc. USB (#2)
S: SerialNumber=0000:00:10.1
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms

T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 5 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=05d8 ProdID=4001 Rev= 1.00
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=500mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=00(>ifc ) Sub=00 Prot=00 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=03(Int.) MxPS= 1 Ivl=1ms
<snip>

locate usbfs
/sys/bus/usb/drivers/usbfs

lsusb
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 005: ID 05d8:4001 Ultima Electronics Corp. Artec Ultima 2000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

Are your usb buses being built when you boot?

dmesg | grep -i usb
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
Initializing USB Mass Storage driver...
drivers/usb/core/usb.c: registered new driver usb-storage
USB Mass Storage support registered.
ehci_hcd 0000:00:10.3: VIA Technologies, Inc. USB 2.0
ehci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Dec-29
hub 1-0:1.0: USB hub found
USB Universal Host Controller Interface driver v2.2
uhci_hcd 0000:00:10.0: VIA Technologies, Inc. USB
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
uhci_hcd 0000:00:10.1: VIA Technologies, Inc. USB (#2)
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
hub 3-0:1.0: USB hub found
uhci_hcd 0000:00:10.2: VIA Technologies, Inc. USB (#3)
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
hub 4-0:1.0: USB hub found

The scanner shown doesn't work in linux, I just used it to show that one
could be detected. Also take what I have here with a grain of salt, This
is the first time I have used usb on linux. My card reader is working
and also a usb flash disk.
HTH
--
Ken P

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-19-2008, 10:25 AM
Shilo
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

> cat /proc/bus/usb/devices

For me:
root@slakbox:~# cat /proc/bus/usb/devices
cat: /proc/bus/usb/devices: No such file or directory

And:
root@slakbox:~# cat /sys/bus/usb/devices
cat: /sys/bus/usb/devices: Is a directory

I cd /sys/bus/usb/devices and ls -a to find that the directory is empty.

> locate usbfs
> /sys/bus/usb/drivers/usbfs


For me:

root@slakbox:/sys/bus/usb/devices# locate usbfs
/sys/bus/usb/drivers/usbfs

>
> lsusb


For me:

root@slakbox:/sys/bus/usb/devices# lsusb
root@slakbox:/sys/bus/usb/devices#

> Are your usb buses being built when you boot?
>
> dmesg | grep -i usb


For me:

root@slakbox:~# dmesg|grep -i usb
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub

Does any of this help anyone know what is wrong? Thanks in advance.

Shilo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-19-2008, 10:25 AM
Shilo
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

I don't know if this will help anyone to know what the problem is, but
here is the USB section from my .config file. I tried to just leave
everything USB related in it. Did I miss something important? Thanks
again for any help.



# USB support
#
CONFIG_USB=m
# CONFIG_USB_DEBUG is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEVICEFS=y
# CONFIG_USB_BANDWIDTH is not set
# CONFIG_USB_DYNAMIC_MINORS is not set

#
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=m
# CONFIG_USB_EHCI_SPLIT_ISO is not set
# CONFIG_USB_OHCI_HCD is not set
# CONFIG_USB_UHCI_HCD is not set

#
# USB Device Class drivers
#
CONFIG_USB_AUDIO=m
# CONFIG_USB_BLUETOOTH_TTY is not set
CONFIG_USB_MIDI=m
CONFIG_USB_ACM=m
CONFIG_USB_PRINTER=m
CONFIG_USB_STORAGE=m
# CONFIG_USB_STORAGE_DEBUG is not set
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_DPCM=y
CONFIG_USB_STORAGE_HP8200e=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y

#
# USB Human Interface Devices (HID)
#
CONFIG_USB_HID=m
CONFIG_USB_HIDINPUT=y
# CONFIG_HID_FF is not set
CONFIG_USB_HIDDEV=y

#
# USB HID Boot Protocol drivers
#
CONFIG_USB_KBD=m
CONFIG_USB_MOUSE=m
CONFIG_USB_AIPTEK=m
CONFIG_USB_WACOM=m
CONFIG_USB_KBTAB=m
CONFIG_USB_POWERMATE=m
# CONFIG_USB_MTOUCH is not set
# CONFIG_USB_XPAD is not set
# CONFIG_USB_ATI_REMOTE is not set

#
# USB Imaging devices
#
CONFIG_USB_MDC800=m
CONFIG_USB_MICROTEK=m
CONFIG_USB_HPUSBSCSI=m

#
# USB Multimedia devices
#
CONFIG_USB_DABUSB=m
CONFIG_USB_VICAM=m
CONFIG_USB_DSBR=m
CONFIG_USB_IBMCAM=m
CONFIG_USB_KONICAWC=m
CONFIG_USB_OV511=m
CONFIG_USB_PWC=m
CONFIG_USB_SE401=m
CONFIG_USB_STV680=m
# CONFIG_USB_W9968CF is not set

#
# USB Network adaptors
#
CONFIG_USB_CATC=m
CONFIG_USB_KAWETH=m
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
CONFIG_USB_USBNET=m

#
# USB Host-to-Host Cables
#
CONFIG_USB_ALI_M5632=y
CONFIG_USB_AN2720=y
CONFIG_USB_BELKIN=y
CONFIG_USB_GENESYS=y
CONFIG_USB_NET1080=y
CONFIG_USB_PL2301=y

#
# Intelligent USB Devices/Gadgets
#
CONFIG_USB_ARMLINUX=y
CONFIG_USB_EPSON2888=y
CONFIG_USB_ZAURUS=y
CONFIG_USB_CDCETHER=y

#
# USB Network Adapters
#
CONFIG_USB_AX8817X=y

#
# USB port drivers
#
CONFIG_USB_USS720=m

#
# USB Serial Converter support
#
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_BELKIN=m
CONFIG_USB_SERIAL_WHITEHEAT=m
CONFIG_USB_SERIAL_DIGI_ACCELEPORT=m
CONFIG_USB_SERIAL_EMPEG=m
CONFIG_USB_SERIAL_FTDI_SIO=m
CONFIG_USB_SERIAL_VISOR=m
CONFIG_USB_SERIAL_IPAQ=m
CONFIG_USB_SERIAL_IR=m
CONFIG_USB_SERIAL_EDGEPORT=m
CONFIG_USB_SERIAL_EDGEPORT_TI=m
CONFIG_USB_SERIAL_KEYSPAN_PDA=m
CONFIG_USB_SERIAL_KEYSPAN=m
CONFIG_USB_SERIAL_KEYSPAN_MPR=y
CONFIG_USB_SERIAL_KEYSPAN_USA28=y
CONFIG_USB_SERIAL_KEYSPAN_USA28X=y
CONFIG_USB_SERIAL_KEYSPAN_USA28XA=y
CONFIG_USB_SERIAL_KEYSPAN_USA28XB=y
CONFIG_USB_SERIAL_KEYSPAN_USA19=y
CONFIG_USB_SERIAL_KEYSPAN_USA18X=y
CONFIG_USB_SERIAL_KEYSPAN_USA19W=y
CONFIG_USB_SERIAL_KEYSPAN_USA19QW=y
CONFIG_USB_SERIAL_KEYSPAN_USA19QI=y
CONFIG_USB_SERIAL_KEYSPAN_USA49W=y
CONFIG_USB_SERIAL_KEYSPAN_USA49WLC=y
CONFIG_USB_SERIAL_KLSI=m
CONFIG_USB_SERIAL_KOBIL_SCT=m
CONFIG_USB_SERIAL_MCT_U232=m
CONFIG_USB_SERIAL_PL2303=m
# CONFIG_USB_SERIAL_SAFE is not set
CONFIG_USB_SERIAL_CYBERJACK=m
CONFIG_USB_SERIAL_XIRCOM=m
CONFIG_USB_SERIAL_OMNINET=m
CONFIG_USB_EZUSB=y

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
CONFIG_USB_EMI26=m
CONFIG_USB_TIGL=m
CONFIG_USB_AUERSWALD=m
CONFIG_USB_RIO500=m
# CONFIG_USB_LEGOTOWER is not set
CONFIG_USB_LCD=m
# CONFIG_USB_LED is not set
# CONFIG_USB_TEST is not set

#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-19-2008, 10:25 AM
Shilo Bacca
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

> My entry for USB looks like this...
>
> none /proc/bus/usb usbfs defaults 0 0


Tried that, says that mount point doesn't exist either. Any other ideas?
Thanks again

Shilo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-19-2008, 10:25 AM
Shilo
 
Posts: n/a
Default Re: Help with 2.6.5 and USB

Well, after hacking away at the kernal and all kinds of other things, I
now seem to have usb working. Seems that I missed the usb controller
drivers. The weird thing is that on boot, I still get the mount point
does not exist message. Now, though, I get this:

root@slakbox:~# mount
/dev/hda2 on / type reiserfs (rw)
/dev/hda1 on /fat-c type vfat (rw,umask=000)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)

even though my fstab still says:

none /sys/bus/usb usbfs defaults 0 0

I don't know what that's all about, but it works, so I can't complain.
Thanks to everyone for all of your help.

Shilo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:15 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com