LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-14-2013, 05:41 AM   #1
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 717
Blog Entries: 2

Rep: Reputation: 68
usb_modeswitch not working; lsusb indicate "unable to initialize libusb: -99"; howto?


Hello,
by connecting a usb gsm modem on a selfbuild kernel, the usb is recognized because dmesg show messages like "New USB device found, idVendor=0af0, idProduct=7a01.." but usb_modeswitch say "No devices in default mode found.." and the modem is not modeswitched. The command lsusb gives "unable to initialize libusb: -99".
A question would be: is there any possibility to modeswitch a usb modem (a standard distro like ubuntu-kernel see a CD-ROM.. and usb_modeswitch works) which is not recognized as CDROM by the kernel? My current feeling is that I have to build a kernel which must recognize CDROM.. before I can modeswitch it. The only problem, is that it will make my kernel bigger.
Any idea/proposal is welcome.
THANKS.
 
Old 06-14-2013, 09:34 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi,

Not too sure how much bigger it would make the kernel, but some config files may be found to help...

Code:
locate usb_modeswitch | grep 0af0:7a01
/usr/share/usb_modeswitch/0af0:7a01

locate usb_modeswitch | grep '/etc/'
/etc/usb_modeswitch.conf
Hope this helps, Glenn
 
Old 06-16-2013, 08:22 AM   #3
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 717
Blog Entries: 2

Original Poster
Rep: Reputation: 68
My current feeling is the kernel menuconfig was not the correct one. I am still searching what kernel setup will support that GPRS modem.
 
Old 06-19-2013, 07:25 AM   #4
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 717
Blog Entries: 2

Original Poster
Rep: Reputation: 68
The last status is indicated below.
There are curious messages from the kernel and lsusb still dont work.
Any new idea what should be done is welcome.

...
[ 8159.390616] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[ 8159.390720] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [0] = 0x00010101 CSC PPS CCS
[ 8159.390825] hub 1-0:1.0: port 1, status 0101, change 0001, 12 Mb/s
[ 8159.494590] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x101
[ 8159.556603] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
[ 8159.607668] usb 1-1: new full-speed USB device number 3 using ppc-of-ohci
[ 8159.677683] ppc-of-ohci f0001000.usb: GetStatus roothub.portstatus [0] = 0x00100103 PRSC PPS PES CCS
[ 8159.749170] usb 1-1: default language 0x0409
[ 8159.755181] usb 1-1: udev 3, busnum 1, minor = 2
[ 8159.755233] usb 1-1: New USB device found, idVendor=0af0, idProduct=7a01
[ 8159.762348] usb 1-1: New USB device strings: Mfr=3, Product=2, SerialNumber=4
[ 8159.769830] usb 1-1: Product: Globetrotter HSUPA Modem
[ 8159.775261] usb 1-1: Manufacturer: Option N.V.
[ 8159.779977] usb 1-1: SerialNumber: Serial Number
[ 8159.786807] usb 1-1: usb_probe_device
[ 8159.786863] usb 1-1: configuration #1 chosen from 1 choice
[ 8159.791317] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[ 8159.793143] hso 1-1:1.0: usb_probe_interface
[ 8159.793220] hso 1-1:1.0: usb_probe_interface - got id
[ 8159.795153] hso 1-1:1.0: Not our interface
[ 8159.800523] usb-storage 1-1:1.0: usb_probe_interface
[ 8159.800801] usb-storage 1-1:1.0: usb_probe_interface - got id
[ 8159.802516] scsi1 : usb-storage 1-1:1.0
[ 8159.809931] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[ 8160.818460] scsi 1:0:0:0: CD-ROM ZCOption HSUPA Modem PQ: 0 ANSI: 2
[ 8160.843042] ppc-of-ohci f0001000.usb: urb c7a679e0 path 1 ep1in 40120000 cc 4 --> status -32
[ 8160.853361] sr0: scsi-1 drive
[ 8160.860048] sr 1:0:0:0: Attached scsi CD-ROM sr0
[ 8160.863591] sr 1:0:0:0: Attached scsi generic sg0 type 5
[ 8160.871028] ppc-of-ohci f0001000.usb: urb c7a679e0 path 1 ep1in 40120000 cc 4 --> status -32

[root@rtux-v4 usbgsm]# export LIBUSB_DEBUG=3
[root@rtux-v4 usbgsm]# lsusb
libusb: 0.000000 error [op_init] could not find usbfs
unable to initialize libusb: -99


[root@rtux-v4 usbgsm]# usb_modeswitch -c /etc/switchicon.conf
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.

Last edited by floppy_stuttgart; 06-19-2013 at 07:40 AM.
 
Old 06-19-2013, 07:40 AM   #5
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 717
Blog Entries: 2

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by GlennsPref View Post
Hi,

Not too sure how much bigger it would make the kernel, but some config files may be found to help...

Code:
locate usb_modeswitch | grep 0af0:7a01
/usr/share/usb_modeswitch/0af0:7a01

locate usb_modeswitch | grep '/etc/'
/etc/usb_modeswitch.conf
Hope this helps, Glenn
I have conf files which are on /etc/; see previous post.
 
Old 01-18-2014, 12:48 PM   #6
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Debian like
Posts: 717
Blog Entries: 2

Original Poster
Rep: Reputation: 68
I had 2 issues:
a) a kernel without the modules recognition
b) a non working libusb (necessary for a working usb_modeswitch)
To
a) I made a new kernel with the required modules for recognizing the CDROM
b) I bought a HUAWEI E220 which dont need usb_modeswitch.
Topic closed.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Amarok: "xine was unable to initialize any audio drivers". ??? forrest44 Slackware 2 08-31-2008 12:58 PM
USB stopped working -- lsusb results in: "Unknown line at line" jgombos Linux - Hardware 3 04-20-2008 07:37 PM
Solved-"xine was unable to initialize any audio drivers" beachboy2 Linux - Hardware 5 09-18-2007 02:24 PM
amarok: "xine was unable to initialize any audio drivers" Florian123 Linux - Software 6 01-31-2007 03:00 PM
Error: "Unable to initialize frontend:KDE" massai Linux - Newbie 8 02-24-2004 07:40 PM


All times are GMT -5. The time now is 12:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration