Batteries included
d_ralh
Posts: 9
Joined: 21 Dec 2012, 09:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by d_ralh » 21 Dec 2012, 23:34

USB_ModeSwitch log from Fri Dec 21 21:29:41 GMT 2012

Raw args from udev: 2-1/2-1:1.0

Using top device dir /sys/bus/usb/devices/2-1
----------------
USB values from sysfs:
manufacturer HUAWEI Technology
product HUAWEI Mobile
serial
----------------
bNumConfigurations is 1 - don't check for active configuration
SCSI attributes not needed, moving on
checking config: /data/data/de.draisberghof.pppwidget/app_tmp/12d1.1446
! matched. Reading config data
devList 1:
config: TargetVendor set to 12d1
config: TargetProductList set to 1001,1406,140b,140c,1412,141b,1432,1433,1436,14ac,1506,1511
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Logger is: /system/bin/log
Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 2 -g 6 -v 12d1 -p 1446 -f $cB

Verbose debug output of usb_modeswitch and libusb follows
(Note that some USB errors are to be expected in the process)
--------------------------------

Reading long config from command line

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.2.4 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1446
TargetVendor= 0x12d1
TargetProduct= not set
TargetClass= not set
TargetProductList="1001,1406,140b,140c,1412,141b,1432,1433,1436,14ac,1506,1511"

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011062000000100000000000000000000"
NeedResponse=0
ResponseEndpoint= not set

InquireDevice disabled
Success check enabled, max. wait time 20 seconds
System integration mode enabled


Use given bus/device number: 002/006 ...
Looking for default devices ...
bus/device number matched
searching devices, found USB ID 12d1:1446
found matching vendor ID
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Skipping the check for the current configuration
Using interface number 0
Using endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x81
Could not reset endpoint (probably harmless): -34
Resetting message endpoint 0x01
Could not reset endpoint (probably harmless): -6
Device is gone, skipping any further commands
Bus/dev search active, referring success check to wrapper. Bye.

ok:busdev
--------------------------------
(end of usb_modeswitch output)

Checking success of mode switch for max. 20 seconds ...
Waiting for device file system (1 sec.) ...
Reading attributes ...
Mode switch has completed
Mode switching was successful, found 12d1:1436 (HUAWEI Technology: HUAWEI Mobile)
Device class of first interface is ff
Now checking for bound driver ...
No driver has bound to interface 0 yet
Module loader is /system/bin/insmod
Trying to find and install main driver module "option"

Trying to find module "option"
Loading support module /sdcard/pppwidget/lib/usb_wwan.ko
Error: insmod: init_module '/sdcard/pppwidget/lib/usb_wwan.ko' failed (Exec format error)
Loading main driver module "option"
Error: insmod: init_module '/sdcard/pppwidget/lib/option.ko' failed (Exec format error)
Falling back to "usbserial"
Module "usb_serial" not found, can't do more here
Driver binding seems to have failed

All done, exiting

d_ralh
Posts: 9
Joined: 21 Dec 2012, 09:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by d_ralh » 21 Dec 2012, 23:36

Also when I updated to 1.2.5 it said no driver found, luckily I had a backup of 1.2.4

P.s I think it might be a problem with the swan_USB.ko etc files I have, but I can't find any others....excuse my ignorance if any

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Driver Modules (for victims of the "No driver found" iss

Post by Josh » 21 Dec 2012, 23:58

Version 1.2.5 is quite correct when it says that there were no drivers found. No working ones, at least.

I get this error:
insmod: init_module '/sdcard/pppwidget/lib/usb_wwan.ko' failed (Exec format error)

when I use the compiler from the JNI devkit (official Google) for Samsung kernel modules. Usually, these modules are only working when I use the compiler that Samsung recommends (from CodeSourcery).

So you basically need different modules. Sorry, can't say which compiler to use. A different one, for sure.

d_ralh
Posts: 9
Joined: 21 Dec 2012, 09:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by d_ralh » 22 Dec 2012, 00:17

OK I don't know if this is obvious but I'm using a Motorola Xoom, not a Samsung, why are you referring to Samsung? Is it the same driver module?

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Driver Modules (for victims of the "No driver found" iss

Post by Josh » 22 Dec 2012, 00:58

No, that was just an example about the same module from one compiler working, but not from annother.

d_ralh
Posts: 9
Joined: 21 Dec 2012, 09:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by d_ralh » 22 Dec 2012, 03:08

OK well I think the device is recognising the modem but I don't think PPP widget knows which port to pick it up because PPP widget needs a port selection however in my dev folder there is no tttyusb files.... so which port is this 3g dongle connecting to? I done a dmesg in terminal and I saw the huawei e173:

[ 2877.417808] hub 2-0:1.0: 1 port detected
<6>[ 2881.384188] usb 2-1: new high speed USB device number 2 using tegra-ehci
<6>[ 2881.445945] usb 2-1: New USB device found, idVendor=12d1, idProduct=1001
<6>[ 2881.446293] usb 2-1: New USB device strings: Mfr=3, Product=2, SerialNumber=0
<6>[ 2881.446870] usb 2-1: Product: HUAWEI Mobile
<6>[ 2881.447183] usb 2-1: Manufacturer: HUAWEI Technology

Does that mean anything?

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Driver Modules (for victims of the "No driver found" iss

Post by Josh » 22 Dec 2012, 08:42

That means that the stick was switched to modem mode all right - but you still have no working drivers.

The ttyUSB ports will only appear if the modules are loaded.

d_ralh
Posts: 9
Joined: 21 Dec 2012, 09:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by d_ralh » 23 Dec 2012, 11:06

Ok I've tried a couple of drivers... but nothing seems to be working. ...I am however getting doesn't readings from the widget. .. I.e now it says disconnected and gives me the option to connect but still just says disconnected after I press it. I don't think that the drivers are doing anything because when I look at the log it says insmod failed or whatever.

why would I be getting a failed log but different outcomes on the front end?

(also is it the option.ko and usb_wwan.ko im looking for?)

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Driver Modules (for victims of the "No driver found" iss

Post by Josh » 23 Dec 2012, 12:35

Always check if you have ttyUSB ports in the dev folder after the "prepare device" phase. That's the main point. Make sure you are not missing the moment when the current drivers are working.

Sorry, that's all the advice I can give there ...

csimeon
Posts: 3
Joined: 24 Dec 2012, 18:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by csimeon » 24 Dec 2012, 19:10

d_ralh wrote:Ok I've tried a couple of drivers... but nothing seems to be working. ...I am however getting doesn't readings from the widget. .. I.e now it says disconnected and gives me the option to connect but still just says disconnected after I press it. I don't think that the drivers are doing anything because when I look at the log it says insmod failed or whatever.

why would I be getting a failed log but different outcomes on the front end?

(also is it the option.ko and usb_wwan.ko im looking for?)
Season's greetings to all from Athens Greece.

Xoom2 media Wi-Fi, android 4.0.4 ics
Huawei e173

I disabled CD,so that it won't auto run the Windows drivers and disabled pin.
Then I have rooted using DroidRazrRoot404
Ppp runs. First times it did same exact thing as d_rahl : I got a connect prompt but it just wouldn't.
In my case this was without me loading the stick with drivers or kernel.
After few attempts it showed"no drivers found"...

Seems so close, it's it?

csimeon
Posts: 3
Joined: 24 Dec 2012, 18:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by csimeon » 24 Dec 2012, 20:42

This was in the PPP record :
"Using port for connection"

Why is there no port ID in the message
? should I input it manually? Where can I find the port?

There was nothing in the USB record.

csimeon
Posts: 3
Joined: 24 Dec 2012, 18:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by csimeon » 24 Dec 2012, 20:55

Slick usb app when connecting to the dongle as terminal returns:

Adapter Info

1. /dev/bus/usb/003/002
Class: 0
Subclass: 0
Protocol: 0
Product Id: 4097
Vendor Id: 4817

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Driver Modules (for victims of the "No driver found" iss

Post by Josh » 24 Dec 2012, 22:22

Let's look at what PPP Widget is seeing when you plug the modem in:

In the terminal emulator (as "root"), run "logcat PPPWidget:V *:S". There should be some output if you insert the modem.

d_ralh
Posts: 9
Joined: 21 Dec 2012, 09:41

Re: Driver Modules (for victims of the "No driver found" iss

Post by d_ralh » 25 Dec 2012, 00:03

I typed that in and got dev/gsmmodem does not exist. ..... so obviously the driver is not usb_wwan.ko or option. ko UNLESS I just rename them to gsmmodem and try again?

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Driver Modules (for victims of the "No driver found" iss

Post by Josh » 25 Dec 2012, 00:59

No, there should be quite a bit more output once you connect the modem. Let it run in the terminal and check back after the plug-in and the device preparation.

Please post the full text of the output here (you can repeat everything and redirect the logcat output to a file).

Post Reply