LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 07-24-2013, 04:22 AM   #1
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
No directory /proc/bus/usb in my system (kernel 3.8.11); howto create it?


Hello,
by compiling a kernel for my system, the command "lsusb" return the error 99. I am still searching why. I discovered the directory /proc/bus/usb is missing. So, how to make that directory /proc/bus/usb in my system? Is there a menue in "make menuconfig" which should be activated? I am still not sure the "lsusb" error is linked to that missing directory. This is just an idea what I have.
 
Old 07-24-2013, 02:06 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you did compile the USB core module in did you also mount /proc/bus/usb with type usbfs?
 
Old 07-25-2013, 06:30 AM   #3
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
usb core is there. USBs are recognized (see dmesg below). No udev is in the system.
I included in fstab the line "usbfs /proc/.." but it had no effect.
A mount command dont work because the /proc/.. directory is not there.
Perhaps is anywhere a patch for kernels with no udev for making a full usb recognition?
(no way to put udev on my RT system..).

dmesg extract:
Quote:
....
[59090.540545] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[59090.540649] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [0] = 0x00030100 PESC CSC PPS
[59090.540769] hub 1-0:1.0: port 1, status 0100, change 0003, 12 Mb/s
[59090.540986] usb 1-1: USB disconnect, device number 2
[59090.546244] usb 1-1: unregistering device
[59090.546292] usb 1-1: unregistering interface 1-1:1.0
[59090.559011] usb 1-1: usb_disable_device nuking all URBs
[59090.665115] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x100
[59115.367893] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[59115.367997] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
[59115.368101] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[59115.471640] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[59115.533566] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
[59115.584576] usb 1-1: new full-speed USB device number 3 using ppc-of-ohci
[59115.655500] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
[59115.726478] usb 1-1: default language 0x0409
[59115.732490] usb 1-1: udev 3, busnum 1, minor = 2
[59115.732543] usb 1-1: New USB device found, idVendor=0af0, idProduct=7a01
[59115.739647] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[59115.747129] usb 1-1: Product: Globetrotter HSUPA Modem
[59115.752559] usb 1-1: Manufacturer: Option N.V.
[59115.757274] usb 1-1: SerialNumber: Serial Number
[59115.764086] usb 1-1: usb_probe_device
[59115.764143] usb 1-1: configuration #1 chosen from 1 choice
[59115.768470] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[59115.770548] hso 1-1:1.0: usb_probe_interface
[59115.770626] hso 1-1:1.0: usb_probe_interface - got id
[59115.772547] hso 1-1:1.0: Not our interface
[59115.777905] usb-storage 1-1:1.0: usb_probe_interface
[59115.778039] usb-storage 1-1:1.0: usb_probe_interface - got id
[59115.779892] scsi1 : usb-storage 1-1:1.0
[59115.787362] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[59116.795761] scsi 1:0:0:0: CD-ROM ZCOption HSUPA Modem
...
 
Old 07-25-2013, 04:50 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
proc is "just" a VFS giving (mostly read-only) access to kernel structures. As you've found running /proc isn't necessary to run a system. So, and I don't know how to put this, if you haven't got the option to run Udev on your RT system and if the system doesn't need /proc mounted then you're running a "lean and mean" system. It's clear from your output (thanks) the kernel recognizes USB devices OK and as it doesn't need to run netstat, ps or lsof (only human users or scipts like to) using 'lsusb' may simply be the wrong approach to whatever problem it is you're trying to solve?..
 
Old 07-26-2013, 04:37 AM   #5
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
I was thinking, a working "lsusb" would make usb_modeswitch working.
the command "usb_modeswitch -c /etc/switchicon.conf"
give
Looking for target devices ...
No devices in target mode or class found
Looking for default devices ...
No devices in default mode found. Nothing to do. Bye.

So, perhaps this would not help.
 
Old 07-28-2013, 05:30 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by floppy_stuttgart View Post
I was thinking, a working "lsusb" would make usb_modeswitch working.
Obviously it would be easier to use a device that doesn't require that kind of mode switching in the first place but the choice may not be yours, IIRC usb_modeswitch requires libusb not lsusb?
 
Old 07-29-2013, 09:50 AM   #7
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by unSpawn View Post
Obviously it would be easier to use a device that doesn't require that kind of mode switching in the first place but the choice may not be yours, IIRC usb_modeswitch requires libusb not lsusb?
ok Thanks. I just ordered online an huawei E220. It seems not to need usb_modeswitch. I wanted to save the 21 Euros.. but making working a switchable USB modem on a system without udev seems not to be usual. The next idea: connect my embedded RT system with a raspberry as data server (udev, usb_modeswitch etc. on it).
 
Old 08-18-2013, 02:29 AM   #8
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
according a link, a company made working a usb without udev http://www.xmos.com/en/support/knowl...elopment-tools This is the case in my application: I have an embedded system without udev and I dont have a /proc/bus/usb directory (kernel 3.8.11), I asked them to send the patch.
If somebody know here how the patch would look like, a submission would be appreciated.
 
Old 10-04-2013, 06:45 AM   #9
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Hello,
know somebody how to create /dev/bus/usb in my system with the parameter according the dmesg output above?
Someone had a similar issue than me: http://libusb.6.n5.nabble.com/lsusb-...td5650506.html
 
Old 12-31-2013, 12:56 PM   #10
floppy_stuttgart
Senior Member
 
Registered: Nov 2010
Location: EU mainland
Distribution: Debian like
Posts: 1,153

Original Poster
Blog Entries: 5

Rep: Reputation: 107Reputation: 107
Probably libusb has to be re-installed on the system. My workaround was to buy a huawei E220; which dont need usb_modeswitch.. which dont need a working libusb.
 
Old 12-31-2013, 02:00 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Thanks for posting your feedback.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Module to create proc file system pooppp Linux - Kernel 4 09-17-2008 04:21 AM
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
USB /proc/bus/usb No such Directory amit10p Linux - Software 1 06-23-2004 12:54 AM
Pb with kernel 2.6.4 to give users' right to /proc/bus/usb on a Slackware 9.1 myxmyx Linux - Software 0 04-29-2004 01:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:39 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration