LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-08-2013, 02:41 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
How to connect an usb in kernel 3.8.13 without udev?


Hello,
on an application, I have following error after using lsusb:

> export LIBUSB_DEBUG=9
> lsusb
libusb: 0.000000 error [op_init] could not find usbfs
unable to initialize libusb: -99

What should I do for not having this error?

Last edited by floppy_stuttgart; 07-11-2013 at 05:48 AM.
 
Old 07-08-2013, 07:40 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,655
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, do you have a listing like this in /etc/fstab?
Code:
# load tmpfs
tmpfs /dev/shm tmpfs defaults 0 0
#Get read/write access to usb, load usbfs
none /proc/bus/usb usbfs devgid=43,devmode=664 0 0
I run this line to add it to fstab. As roo...
Code:
cat /home/glenn/My_system/fstab-usb-t-shm >> /etc/fstab
I hope this helps you,
 
Old 07-09-2013, 05:31 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
the result of "cat /etc/fstab" in my embedded system is
Quote:
# /etc/fstab: static file system information.
#
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/root / ext2 rw,noauto 0 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts defaults,gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
tmpfs /tmp tmpfs defaults 0 0
sysfs /sys sysfs defaults 0 0
So, I need to introduce the line "none /proc/bus/usb usbfs devgid=43,devmode=664 0 0" to /etc/fstab with
echo "none /proc/bus/usb usbfs devgid=43,devmode=664 0 0" >> /etc/fstab
and keep the line "tmpfs /dev/shm tmpfs mode=0777 0 0"
?


"dmesg" result before the "lsusb" command was done

Quote:
[11870.579512] hub 1-0:1.0: USB hub found

[11870.583753] hub 1-0:1.0: 2 ports detected

[11870.900890] usb 1-1: new full-speed USB device number 2 using ppc-of-ohci

[11871.051247] usb 1-1: New USB device found, idVendor=0af0, idProduct=7a01

[11871.058362] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4

[11871.065846] usb 1-1: Product: Globetrotter HSUPA Modem

[11871.071276] usb 1-1: Manufacturer: Option N.V.

[11871.075991] usb 1-1: SerialNumber: Serial Number

[11871.090381] scsi0 : usb-storage 1-1:1.0

[11872.110835] scsi 0:0:0:0: CD-ROM ZCOption HSUPA Modem PQ: 0 ANSI: 2

[11872.151779] sr0: scsi-1 drive

[11872.155021] cdrom: Uniform CD-ROM driver Revision: 3.20

[11872.180971] sr 0:0:0:0: Attached scsi CD-ROM sr0

[11872.193813] sr 0:0:0:0: Attached scsi generic sg0 type 5

Last edited by floppy_stuttgart; 07-09-2013 at 10:53 AM.
 
Old 07-09-2013, 06:46 PM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,655
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
So, I need to introduce the line "none /proc/bus/usb usbfs devgid=43,devmode=664 0 0" to /etc/fstab with
echo "none /proc/bus/usb usbfs devgid=43,devmode=664 0 0" >> /etc/fstab
and keep the line "tmpfs /dev/shm tmpfs mode=0777 0 0"
?
Yes, insert the line and test.

I have no real knowlledge in Embeded systems.
 
Old 07-10-2013, 06:25 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
what was the group for you? I tried with
"none /proc/bus/usb usbfs devgid=100,devmode=664 0 0" >> /etc/fstab
The error is still there.

cat /etc/group of my system gave
Code:
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:
disk:x:6:
wheel:x:10:root
audio:x:29:
www-data:x:33:
utmp:x:43:
staff:x:50:
lock:x:54:
haldaemon:x:68:
dbus:x:81:
netdev:x:82:
ftp:x:83
nobody:x:99:
nogroup:x:99:
users:x:100:
default:x:1000:
The devgid=43 proposal dont work, too.

The "ls /proc/bus" give only pci

ls /proc/bus
Quote:
pci
So, my humble impression is a /proc/bus/usb is missing.
I will search if I am right, why this is the case and how to solve the missing proc/bus/usb.
My system has no udev. Perhaps I must make few setups with line command.

Last edited by floppy_stuttgart; 07-10-2013 at 11:01 AM.
 
Old 01-18-2014, 11:41 AM   #6
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
The libusb was not working.
It should be installed again. I could not do it (I dont know how to do it)
But I found a way not to use libusb by buying a USB GPRS Modem which dont need usb_modeswitch.. because usb_modeswitch needs a working libusb (what I dont have).
Topic closed.
A workaround was found.
 
  


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
[SOLVED] Output from the lsusb solco Linux - Hardware 2 08-23-2011 12:12 PM
lsusb kashif2131971 Linux - Newbie 2 03-30-2008 06:50 AM
lsusb shows nothing RVDowning Mandriva 33 04-18-2006 03:03 PM
lsusb with kernel-2.6.11 ccool Linux - General 5 03-16-2005 03:03 PM
What does the output of lsusb mean? linuxRunner Linux - Hardware 1 08-16-2004 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 04:32 AM.

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