LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 06-26-2013, 03:00 AM   #1
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 508
Blog Entries: 1

Rep: Reputation: 34
USB GPRS kernel & module setup on embedded system; howto?


Hello,
I am moving my thread from the newbie forum http://www.linuxquestions.org/questi...to-4175465972/ to here.
I have an embedded system.
Kernel 3.8.13.
I am booting with a specific kernel reduced to the minimum (drivers selected with "make menuconfig" and integrated in 1 kernel, not in diverse modules etc. etc.).
The last dmesg output is:

Code:
[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           PQ: 0 ANSI: 2
[59116.820351] ppc-of-ohci f0001000.usb: urb c7afc1e0 path 1 ep1in 40120000 cc 4 --> status -32
[59116.830664] sr0: scsi-1 drive
[59116.837324] sr 1:0:0:0: Attached scsi CD-ROM sr0
[59116.840915] sr 1:0:0:0: Attached scsi generic sg0 type 5
[59116.848336] ppc-of-ohci f0001000.usb: urb c7afc1e0 path 1 ep1in 40120000 cc 4 --> status -32
Or with a usb storage debugging option (for more understunding?)

Code:
[    1.877232] usb-storage 1-1:1.0: usb_probe_interface - got id
[    1.877260] usb-storage: USB Mass Storage device detected
[    1.877775] usb-storage: -- associate_dev
[    1.877816] usb-storage: Vendor: 0x0af0, Product: 0x7a01, Revision: 0x0000
[    1.877839] usb-storage: Interface Subclass: 0x06, Protocol: 0x50
[    1.877915] usb-storage: Transport: Bulk
[    1.877941] usb-storage: Protocol: Transparent SCSI
[    1.881887] scsi0 : usb-storage 1-1:1.0
[    1.886112] usb-storage: *** thread sleeping.
[    1.892666] usb-storage 1-1:1.0: waiting for device to settle before scanning
[    1.893517] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[    2.895648] usb-storage 1-1:1.0: starting scan
[    2.895701] usb-storage: usb_stor_control_msg: rq=fe rqtype=a1 value=0000 index=00 len=1
[    2.896845] usb-storage: GetMaxLUN command result is 1, data is 0
[    2.897222] usb-storage: queuecommand_lck called
[    2.897497] usb-storage: *** thread awakened.
[    2.897544] usb-storage: Command INQUIRY (6 bytes)
[    2.897563] usb-storage:  12 00 00 00 24 00
[    2.897644] usb-storage: Bulk Command S 0x43425355 T 0x1 L 36 F 128 Trg 0 LUN 0 CL 6
[    2.897668] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[    2.898803] usb-storage: Status code 0; transferred 31/31
[    2.898837] usb-storage: -- transfer complete
[    2.898857] usb-storage: Bulk command transfer result=0
[    2.898884] usb-storage: usb_stor_bulk_transfer_sglist: xfer 36 bytes, 1 entries
[    2.900948] usb-storage: Status code 0; transferred 36/36
[    2.900982] usb-storage: -- transfer complete
[    2.901003] usb-storage: Bulk data transfer result 0x0
[    2.901022] usb-storage: Attempting to get CSW...
[    2.901046] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[    2.902834] usb-storage: Status code 0; transferred 13/13
[    2.902868] usb-storage: -- transfer complete
[    2.902888] usb-storage: Bulk status result = 0
[    2.902913] usb-storage: Bulk Status S 0x53425355 T 0x1 R 0 Stat 0x0
[    2.902939] usb-storage: scsi cmd done, result=0x0
[    2.902988] usb-storage: *** thread sleeping.
[    2.903451] scsi 0:0:0:0: CD-ROM            ZCOption HSUPA Modem           PQ: 0 ANSI: 2
[    2.926611] usb-storage: queuecommand_lck called
[    2.926710] usb-storage: *** thread awakened.
[    2.926749] usb-storage: Command TEST_UNIT_READY (6 bytes)
[    2.926769] usb-storage:  00 00 00 00 00 00
[    2.926849] usb-storage: Bulk Command S 0x43425355 T 0x2 L 0 F 0 Trg 0 LUN 0 CL 6
[    2.926872] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[    2.928399] usb-storage: Status code 0; transferred 31/31
[    2.928432] usb-storage: -- transfer complete
[    2.928496] usb-storage: Bulk command transfer result=0
[    2.928522] usb-storage: Attempting to get CSW...
[    2.928546] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[    2.929658] usb-storage: Status code 0; transferred 13/13
[    2.929691] usb-storage: -- transfer complete
[    2.929712] usb-storage: Bulk status result = 0
[    2.929736] usb-storage: Bulk Status S 0x53425355 T 0x2 R 0 Stat 0x1
[    2.929759] usb-storage: -- transport indicates command failure
[    2.929780] usb-storage: Issuing auto-REQUEST_SENSE
[    2.929814] usb-storage: Bulk Command S 0x43425355 T 0x3 L 18 F 128 Trg 0 LUN 0 CL 6
[    2.929839] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[    2.931864] usb-storage: Status code 0; transferred 31/31
[    2.931897] usb-storage: -- transfer complete
[    2.931918] usb-storage: Bulk command transfer result=0
[    2.931945] usb-storage: usb_stor_bulk_transfer_sglist: xfer 18 bytes, 1 entries
[    2.933981] usb-storage: Status code 0; transferred 18/18
[    2.934015] usb-storage: -- transfer complete
[    2.934036] usb-storage: Bulk data transfer result 0x0
[    2.934055] usb-storage: Attempting to get CSW...
[    2.934079] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[    2.936165] usb-storage: Status code 0; transferred 13/13
[    2.936199] usb-storage: -- transfer complete
[    2.936220] usb-storage: Bulk status result = 0
[    2.936244] usb-storage: Bulk Status S 0x53425355 T 0x3 R 0 Stat 0x0
[    2.936386] usb-storage: -- Result from auto-sense is 0
[    2.936424] usb-storage: -- code: 0x70, key: 0x2, ASC: 0x3a, ASCQ: 0x0
[    2.936489] usb-storage: (Unknown Key): (unknown ASC/ASCQ)
[    2.936535] usb-storage: scsi cmd done, result=0x2
[    2.936859] usb-storage: queuecommand_lck called
[    2.936959] usb-storage: *** thread sleeping.
[    2.936993] usb-storage: *** thread awakened.
[    2.937020] usb-storage: Command MODE_SENSE_10 (10 bytes)
[    2.937038] usb-storage:  5a 00 2a 00 00 00 00 00 80 00
[    2.937150] usb-storage: Bulk Command S 0x43425355 T 0x4 L 128 F 128 Trg 0 LUN 0 CL 10
[    2.937173] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[    2.937581] usb-storage: Status code 0; transferred 31/31
[    2.937615] usb-storage: -- transfer complete
[    2.937635] usb-storage: Bulk command transfer result=0
[    2.937663] usb-storage: usb_stor_bulk_transfer_sglist: xfer 128 bytes, 1 entries
[    2.939505] ppc-of-ohci f0001000.usb: urb c7979440 path 1 ep1in 40120000 cc 4 --> status -32
[    2.939782] usb-storage: Status code -32; transferred 0/128
[    2.939817] usb-storage: clearing endpoint halt for pipe 0xc0008280
[    2.939847] usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=81 len=0
[    2.942183] usb-storage: usb_stor_clear_halt: result = 0
[    2.942221] usb-storage: Bulk data transfer result 0x2
[    2.942240] usb-storage: Attempting to get CSW...
[    2.942262] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[    2.943586] usb-storage: Status code 0; transferred 13/13
[    2.943619] usb-storage: -- transfer complete
[    2.943640] usb-storage: Bulk status result = 0
[    2.943664] usb-storage: Bulk Status S 0x53425355 T 0x4 R 0 Stat 0x1
[    2.943687] usb-storage: -- transport indicates command failure
[    2.943709] usb-storage: Issuing auto-REQUEST_SENSE
[    2.943742] usb-storage: Bulk Command S 0x43425355 T 0x5 L 18 F 128 Trg 0 LUN 0 CL 6
[    2.943767] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[    2.945765] usb-storage: Status code 0; transferred 31/31
[    2.945798] usb-storage: -- transfer complete
[    2.945819] usb-storage: Bulk command transfer result=0
[    2.945846] usb-storage: usb_stor_bulk_transfer_sglist: xfer 18 bytes, 1 entries
[    2.947884] usb-storage: Status code 0; transferred 18/18
[    2.947918] usb-storage: -- transfer complete
[    2.947939] usb-storage: Bulk data transfer result 0x0
[    2.947958] usb-storage: Attempting to get CSW...
[    2.947982] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[    2.950008] usb-storage: Status code 0; transferred 13/13
[    2.950042] usb-storage: -- transfer complete
[    2.950063] usb-storage: Bulk status result = 0
[    2.950087] usb-storage: Bulk Status S 0x53425355 T 0x5 R 0 Stat 0x0
[    2.950113] usb-storage: -- Result from auto-sense is 0
[    2.950138] usb-storage: -- code: 0x70, key: 0x5, ASC: 0x24, ASCQ: 0x0
[    2.950162] usb-storage: (Unknown Key): (unknown ASC/ASCQ)
[    2.950199] usb-storage: scsi cmd done, result=0x2
[    2.950247] usb-storage: *** thread sleeping.
[    2.950612] sr0: scsi-1 drive
[    2.953806] cdrom: Uniform CD-ROM driver Revision: 3.20
[    2.974627] sr 0:0:0:0: Attached scsi CD-ROM sr0
[    2.977192] usb-storage: queuecommand_lck called
[    2.977438] usb-storage: *** thread awakened.
[    2.977486] usb-storage: Command GET EVENT/STATUS NOTIFICATION (10 bytes)
[    2.977506] usb-storage:  4a 01 00 00 10 00 00 00 08 00
[    2.977618] usb-storage: Bulk Command S 0x43425355 T 0x6 L 8 F 128 Trg 0 LUN 0 CL 10
[    2.977641] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[    2.978234] sr 0:0:0:0: Attached scsi generic sg0 type 5
[    2.984043] usb-storage: Status code 0; transferred 31/31
[    2.984077] usb-storage: -- transfer complete
[    2.984097] usb-storage: Bulk command transfer result=0
[    2.984124] usb-storage: usb_stor_bulk_transfer_sglist: xfer 8 bytes, 1 entries
[    2.985508] ppc-of-ohci f0001000.usb: urb c7979440 path 1 ep1in 40120000 cc 4 --> status -32
[    2.985674] usb-storage: Status code -32; transferred 0/8
[    2.985709] usb-storage: clearing endpoint halt for pipe 0xc0008280
[    2.985738] usb-storage: usb_stor_control_msg: rq=01 rqtype=02 value=0000 index=81 len=0
[    2.987821] usb-storage: usb_stor_clear_halt: result = 0
[    2.987859] usb-storage: Bulk data transfer result 0x2
[    2.987878] usb-storage: Attempting to get CSW...
[    2.987900] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[    2.989587] usb-storage: Status code 0; transferred 13/13
[    2.989622] usb-storage: -- transfer complete
[    2.989642] usb-storage: Bulk status result = 0
[    2.989666] usb-storage: Bulk Status S 0x53425355 T 0x6 R 0 Stat 0x1
[    2.989689] usb-storage: -- transport indicates command failure
[    2.989710] usb-storage: -- unexpectedly short transfer
[    2.989731] usb-storage: Issuing auto-REQUEST_SENSE
[    2.989764] usb-storage: Bulk Command S 0x43425355 T 0x7 L 18 F 128 Trg 0 LUN 0 CL 6
[    2.989789] usb-storage: usb_stor_bulk_transfer_buf: xfer 31 bytes
[    2.992081] usb-storage: Status code 0; transferred 31/31
[    2.992114] usb-storage: -- transfer complete
[    2.992134] usb-storage: Bulk command transfer result=0
[    2.992162] usb-storage: usb_stor_bulk_transfer_sglist: xfer 18 bytes, 1 entries
[    2.993649] usb-storage: Status code 0; transferred 18/18
[    2.993684] usb-storage: -- transfer complete
[    2.993705] usb-storage: Bulk data transfer result 0x0
[    2.993724] usb-storage: Attempting to get CSW...
[    2.993748] usb-storage: usb_stor_bulk_transfer_buf: xfer 13 bytes
[    2.995775] usb-storage: Status code 0; transferred 13/13
[    2.995808] usb-storage: -- transfer complete
[    2.995828] usb-storage: Bulk status result = 0
[    2.995853] usb-storage: Bulk Status S 0x53425355 T 0x7 R 0 Stat 0x0
[    2.995879] usb-storage: -- Result from auto-sense is 0
[    2.995904] usb-storage: -- code: 0x70, key: 0x5, ASC: 0x20, ASCQ: 0x0
[    2.995928] usb-storage: (Unknown Key): (unknown ASC/ASCQ)
[    2.995965] usb-storage: scsi cmd done, result=0x2
[    2.996012] usb-storage: *** thread sleeping.
[    2.996200] usb-storage: queuecommand_lck called
[    2.996871] usb-storage: *** thread awakened.
[    2.996917] usb-storage: Bad target number (1:0)
[    2.996938] usb-storage: scsi cmd done, result=0x40000
[    2.996987] usb-storage: *** thread sleeping.
[    2.997696] usb-storage: queuecommand_lck called
[    2.997818] usb-storage: *** thread awakened.
[    2.997858] usb-storage: Bad target number (2:0)
[    2.997879] usb-storage: scsi cmd done, result=0x40000
[    2.997926] usb-storage: *** thread sleeping.
[    2.998606] usb-storage: queuecommand_lck called
[    2.998728] usb-storage: *** thread awakened.
[    2.998767] usb-storage: Bad target number (3:0)
[    2.998789] usb-storage: scsi cmd done, result=0x40000
[    2.998836] usb-storage: *** thread sleeping.
[    2.999520] usb-storage: queuecommand_lck called
[    2.999642] usb-storage: *** thread awakened.
[    2.999682] usb-storage: Bad target number (4:0)
[    2.999704] usb-storage: scsi cmd done, result=0x40000
[    2.999751] usb-storage: *** thread sleeping.
[    3.000423] usb-storage: queuecommand_lck called
[    3.000520] usb-storage: *** thread awakened.
[    3.000556] usb-storage: Bad target number (5:0)
[    3.000578] usb-storage: scsi cmd done, result=0x40000
[    3.000623] usb-storage: *** thread sleeping.
[    3.001167] usb-storage: queuecommand_lck called
[    3.001265] usb-storage: *** thread awakened.
[    3.001432] usb-storage: Bad target number (6:0)
[    3.001466] usb-storage: scsi cmd done, result=0x40000
[    3.001514] usb-storage: *** thread sleeping.
[    3.002063] usb-storage: queuecommand_lck called
[    3.002161] usb-storage: *** thread awakened.
[    3.002196] usb-storage: Bad target number (7:0)
[    3.002218] usb-storage: scsi cmd done, result=0x40000
[    3.002263] usb-storage: *** thread sleeping.
[    3.002822] usb-storage 1-1:1.0: scan complete
[    9.600076] VFS: Mounted root (jffs2 filesystem) readonly on device 31:0.
[    9.608977] Freeing unused kernel memory: 184k freed

The output of lsusb gives

export LIBUSB_DEBUG=3
lsusb
Code:
libusb: 0.000000 error [op_init] could not find usbfs
unable to initialize libusb: -99
usb_modeswitch dont work
usb_modeswitch -c /etc/switchicon.conf
Code:
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.
Now I am searching about a solution to make it working:
- libusb not working. Why?
- a working libusb is necessary for a working usb_modeswitch?
- it could be exist conflicts with usb-drivers (ohci, hso..) and modules should be unloaded / loaded as per link here http://nslu2.10980.n7.nabble.com/Rep...n-td14588.html ?

Any advice / idea how to make progress is welcome.

Last edited by floppy_stuttgart; 06-29-2013 at 12:42 PM.
 
Old 07-12-2013, 04:45 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,527

Rep: Reputation: 147Reputation: 147
Could you please eleborate more on the problem? What driver(s) should be device handled by?
 
Old 07-13-2013, 11:02 AM   #3
floppy_stuttgart
Member
 
Registered: Nov 2010
Location: Stuttgart, Germany
Distribution: Tiny Core Linux 4.5.6, knoppix 6.7, antixM8.11, partedmagic, slitaz 3.0,PuppyLinux,Ubuntu 10.04
Posts: 508
Blog Entries: 1

Original Poster
Rep: Reputation: 34
USB GPRS on embedded without udev; howto?

the system has no udev.
The driver needed is hso.
In the main time, I worked on the subject and the error indicated in the previous post [59116.820351] ppc-of-ohci f0001000.usb: urb c7afc1e0 path 1 ep1in 40120000 cc 4 --> status -32 is gone because I am starting now the system, then load later the modules ehci, uhci, ohci, usb-storage, hso.

the usb modem can be seen in the previous log [59115.732543] usb 1-1: New USB device found, idVendor=0af0, idProduct=7a01
But lsusb dont show 0af0:7a01 ; only the error indicated before.
My thoughts now is: how to modeswitch an usb modem without udev.

Last edited by floppy_stuttgart; 07-22-2013 at 04:24 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how to setup a netbook via USB GPRS as LAN-router? floppy_stuttgart Linux - Networking 3 09-24-2012 12:32 PM
HOWTO setup different system language and keyboard layout? carlosemanglano Linux - Laptop and Netbook 3 10-28-2011 04:56 AM
[HOWTO] Alienware M14x, Fedora 15 - Bumblebee, System Setup corp769 Linux - Laptop and Netbook 18 10-14-2011 03:11 AM
Linux GPRS ppp howto philipvarghese Linux - Newbie 0 12-09-2005 07:40 PM
Trying to setup GPRS connection via USB with Motorola E380 tzouse Linux - Wireless Networking 12 02-11-2005 08:35 AM


All times are GMT -5. The time now is 12:12 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