LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-23-2004, 01:35 AM   #1
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Rep: Reputation: 31
/proc/bus/usb/devices missing


hi. i have slackware 9.1 with a custom built 2.6.1 kernel. whilst trying
to set up my usb scanner, i noticed that /proc/bus/usb/devices is
missing. this means that something to do with USB is not compiled into
the kernel, something that was compiled into the slackware 9.1 default
2.4.22 kernel. having searched google and come up empty, i now turn to
you to tell me what needs to be compiled into the kernel for
/proc/bus/usb/devices to exist. there are several things to note.
firstly, the directory /proc/bus/usb exists, just not the devices file.
secondly, the usbcore, ehci_hcd, and the scanner modules are
successfully loaded. last, i got the following two messages in the output from dmesg:
drivers/usb/core/usb.c: registered new driver usbfs
drivers/usb/core/usb.c: registered new driver hub
i thought that what was missing from the kernel was a usb filesystem, but apparently (looking at the two messages), it seems that it is.

thank's in advance.
 
Old 02-23-2004, 03:33 AM   #2
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 46
Don't know if this is the problem but check to see if you have hotplug enabled in your kernel.
 
Old 02-23-2004, 08:08 PM   #3
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Original Poster
Rep: Reputation: 31
shellcode@ph33r$ grep -in hotplug .config
150:CONFIG_HOTPLUG=y
163:# PCI Hotplug Support
165:CONFIG_HOTPLUG_PCI=m
166:# CONFIG_HOTPLUG_PCI_FAKE is not set
167:CONFIG_HOTPLUG_PCI_COMPAQ=m
168:# CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM is not set
169:# CONFIG_HOTPLUG_PCI_CPCI is not set

so i guess it is set. i might try to enable OHCI and all the other USB options (except the obviously unneeded ones) in the kernel and recompile. however, i'd really rather have some more suggestions. this is a pretty slow system and compiling the kernel will take quite a while. thank's.
 
Old 02-23-2004, 08:51 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Check this one, too:
CONFIG_USB_DEVICEFS=y


Cheers,
Tink
 
Old 02-23-2004, 09:07 PM   #5
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Original Poster
Rep: Reputation: 31
shellcode@ph33r$ grep -in USB_DEVICEFS .config
1695:CONFIG_USB_DEVICEFS=y

yep...
 
Old 02-23-2004, 11:39 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,978
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Ran
Code:
mount -t usbdevfs none /proc/bus/usb
too?


Cheers,
Tink
 
Old 02-24-2004, 12:20 AM   #7
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Original Poster
Rep: Reputation: 31
Quote:
Originally posted by Tinkster
Ran
Code:
mount -t usbdevfs none /proc/bus/usb
too?


Cheers,
Tink
yep. sure did, it mounted sucessfully. nada. still no devices file (or any other file) in that directory.
 
Old 02-24-2004, 02:17 AM   #8
robot5x
Member
 
Registered: Feb 2004
Location: uk
Distribution: arch 0.7
Posts: 41

Rep: Reputation: 15
In menuconfig, you need to make sure that /proc filesystem is compiled in. It's in filesystems/pseudo filesystems.
 
Old 02-24-2004, 02:19 AM   #9
robot5x
Member
 
Registered: Feb 2004
Location: uk
Distribution: arch 0.7
Posts: 41

Rep: Reputation: 15
oops
 
Old 02-24-2004, 05:57 PM   #10
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Original Poster
Rep: Reputation: 31
sure /proc is compiled in. there's plenty of files in /proc, just not that one file.

any more ideas?

thanks.
 
Old 02-24-2004, 07:43 PM   #11
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Original Poster
Rep: Reputation: 31
do you think it could have anything to do with ehci vs. ohci vs. uhci? the kernel only has ehci compiled and not ohci or uhci. the slackware 9.1 default kernel had uhci, ehci, and ohci as modules, whereas my 2.6.1 kernel only has ehci. that seems to be the only possibility...

Last edited by shellcode; 02-24-2004 at 07:45 PM.
 
Old 02-24-2004, 10:15 PM   #12
shellcode
Member
 
Registered: May 2003
Location: Beverly Hills
Distribution: Slackware, Gentoo
Posts: 350

Original Poster
Rep: Reputation: 31
sucess!!! i patched 2.6.1 to 2.6.2 which i then patched to 2.6.3. I did a 'make menuconfig' and enabled OHCI and EHCI (like i said above) and it worked!! the devices file is now present.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
where is /proc/bus/usb/devices???? mrchaos Linux - Software 4 12-04-2005 10:26 PM
cannot open /proc/bus/usb/devices, No such file or directory aspartat Linux - Software 2 11-02-2005 12:57 PM
MDK 10.2: No USB at all (/proc/bus/usb/devices missing) shrodi Mandriva 5 07-01-2005 11:28 AM
No USB at all (/proc/bus/usb/devices missing) shrodi Linux - Hardware 1 05-26-2005 04:07 AM
question on /proc/bus/usb/devices file ryan_a_hH Linux - Hardware 2 01-21-2005 01:49 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration