Batteries included
Post Reply
varunksl
Posts: 7
Joined: Tue Nov 19, 2013 11:47 pm

"Driver Not Found" for HTC One S with HUAWEI EC156

Post by varunksl » Wed Nov 20, 2013 12:17 am

USB_MODSWITCH was to my rescue when I started using Ubuntu some time back and I am sure its going to rescue me on my android as well. Thanks for this very useful utility. This is why I liked linux in the first place :)

On my rooted phone, I have installed the PPP Widget. When I connect my USB Modem (Tata Photon Plus, HUAWEI EC156), ModeSwitch seems to happen fine.

Device ID on plugging in: 12d1:1505
After ModeSwitch I get : 12d1:140b

Its also indicated similarly in the logs. However, there is no driver found after that. I looked around to see if there are any drivers for this device/ kernal but did not find one. The details are below.

Phone Name: HTC VLE_U (HTC One S)
Android Version: 4.1.1
Kernal version: 3.4.10-g0f5103e (Stock HTC ROM)


The log from the widget is below. Please help

Code: Select all

PPP Widget version 1.3.3
USB_ModeSwitch log from Wed Nov  20 02:46:06 IST 2013

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

Using top device dir /sys/bus/usb/devices/1-1.1
----------------
USB values from sysfs:
  manufacturer    HUAÿWEI TECHNOLOGIES
  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.1505
! matched. Reading config data
devList 1:
config: TargetVendor set to 12d1
config: TargetProductList set to 140b,1506,150f,150a
Driver module is "option", ID path is /sys/bus/usb-serial/drivers/option1

Command to be run:
usb_modeswitch -I -W -D -s 20 -u -1 -b 1 -g 20 -v 12d1 -p 1505 -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.7 (C) Josua Dietze 2012
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor=  0x12d1
DefaultProduct= 0x1505
TargetVendor=   0x12d1
TargetProduct=  not set
TargetClass=    not set
TargetProductList="140b,1506,150f,150a"

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
QisdaMode=0
QuantaMode=0
GCTMode=0
KobilMode=0
SequansMode=0
MobileActionMode=0
CiscoMode=0
BlackberryMode=0
PantechMode=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: 001/020 ...
Looking for default devices ...
bus/device number matched
  searching devices, found USB ID 12d1:1505
   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 0x08 (out) and 0x87 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUA�WEI TECHNOLOGIES
     Product: HUAWEI Mobile
  Serial No.: �������������������
-------------------------
Looking for active driver ...
OK, driver found; name unknown, limitation of libusb1
OK, driver "unkown" detached
Setting up communication with interface 0
Using endpoint 0x08 for message sending ...
Trying to send message 1 to endpoint 0x08 ...
OK, message successfully sent
Resetting response endpoint 0x87
Resetting message endpoint 0x08
Could not reset endpoint (probably harmless): -34
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.) ...
Waiting for device file system (2 sec.) ...
Waiting for device file system (3 sec.) ...
Reading attributes ...
Mode switch has completed
Mode switching was successful, found 12d1:140b (HUAÿWEI TECHNOLOGIES: 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"

Checking for active driver path: /sys/bus/usb-serial/drivers/option1

Driver not active, try to find module "option"

Can't find module "option"

Existing path found:
No way to use driver "option"
- try falling back to "usbserial"
Module "usb_serial" not found, can't do more here
Driver binding did not work for this device

All done, exiting
Thanks in advance :)

LOM
Posts: 1286
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by LOM » Wed Nov 20, 2013 5:21 am

It would help if you could attach a stock rom module from your device to the post - just one. The smallest one is probably "scsi_wait_scan.ko" which usually sits in "/lib/modules" (only visible with root access, e.g. with "Root Explorer").

varunksl
Posts: 7
Joined: Tue Nov 19, 2013 11:47 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by varunksl » Wed Nov 20, 2013 8:03 am

Hi, please find the module attached.
Attachments
scsi_wait_scan.ko
(31.81 KiB) Downloaded 324 times

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by Josh » Wed Nov 20, 2013 8:27 pm

Please understand that Wifi-only devices get a higher priority regarding creation of modules. You may need some patience.

varunksl
Posts: 7
Joined: Tue Nov 19, 2013 11:47 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by varunksl » Thu Nov 21, 2013 7:12 am

I understand. Thanks for your response see and the good work which made it easy / possible to use my photon device on Ubuntu. I am sure that once you have had time to look into it, my android will be able to use it too.

Thanks again

varunksl
Posts: 7
Joined: Tue Nov 19, 2013 11:47 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by varunksl » Mon Dec 09, 2013 12:48 pm

Hi, I would need to travel next weekend and will need to rely on my photon for connectivity. Any chance of creating the driver before that? I can help create it and volunteer to create additional drivers if someone can explain how this is done.Thanks in Advance. :)

SileNTViP
Posts: 22
Joined: Fri Dec 06, 2013 4:06 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by SileNTViP » Mon Dec 09, 2013 11:19 pm

varunksl wrote:Hi, I would need to travel next weekend and will need to rely on my photon for connectivity. Any chance of creating the driver before that? I can help create it and volunteer to create additional drivers if someone can explain how this is done.Thanks in Advance. :)
Try this modules
Attachments
HTC_One_S-3.4.10-0f5103e.ZIP
(335.6 KiB) Downloaded 310 times

varunksl
Posts: 7
Joined: Tue Nov 19, 2013 11:47 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by varunksl » Tue Dec 10, 2013 1:28 am

I tried the attached modules. They dont work. I tried the following, as mentioned in the "Driver Not Found" thread. Please note, I did not have my usb key attached to my phone at this time. So, please let me know if I need to have that.
Installation

Just download the packages for your specific device and put the unpacked files to this folder (on your device):

[sdcard]/pppwidget/lib

Testing (troubleshooting and experimenting only)

Usually, you can see in PPP Widget's "USB Log" if the drivers that you installed in the "lib" folder were loaded correctly.

To test manually if the kernel accepts the modules, open a terminal app on your device, run "su" to become root, and navigate to the "lib" folder where your modules are.
Code:
$ su
# cd /sdcard/pppwidget/lib

From there, run the command:
Code:
# insmod <module_filename>

Start with "usb_wwan.ko". If there is no error, you are a lucky winner. Otherwise, run the "dmesg" command and note the last line of the output which should give you some more information about the problem.
I did get the below error.
u0_a227@android:/ $ su
root@android: # cd /sdcard/pppwidget/lib
root@android:/sdcard/pppwidget/lib #
insmod usb_wwan.ko
insmod: init_module 'usb_wwan.ko' failed (No such file or directory)
255|root@android:/sdcard/pppwidget/lib # ls
option.ko
usb_wwan.ko
usbserial.ko
root@android:/sdcard/pppwidget/lib #
insmod option.ko
insmod: init_module 'option.ko' failed (No such file or directory)
255|root@android:/sdcard/pppwidget/lib # dmesg
I than ran dmesg as suggested and the rather verbose output, Which I could not understand is attached.
Attachments
error loading drivers.txt
(129.43 KiB) Downloaded 307 times

SileNTViP
Posts: 22
Joined: Fri Dec 06, 2013 4:06 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by SileNTViP » Tue Dec 10, 2013 1:58 am

Try to load "insmod usbserial.ko" if successful load usb_wwan then option. and log dmesg

varunksl
Posts: 7
Joined: Tue Nov 19, 2013 11:47 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by varunksl » Tue Dec 10, 2013 2:07 am

Worked like a charm!!
One suggestion though.. we should mention that sequence in the "Driver not found" sticky thread. So, I am going to try it with actual device attached once I have it with me. I am sure it will work this time. Once it does, I will notify so that this driver can be added to drivers page for everybody else to use.
u0_a227@android:/ $ su
root@android:/ # cd sdcard
root@android:/sdcard # cd pppwidget
root@android:/sdcard/pppwidget # cd lib
root@android:/sdcard/pppwidget/lib # ls
option.ko
usb_wwan.ko
usbserial.ko
root@android:/sdcard/pppwidget/lib # insmod usbserial.ko
root@android:/sdcard/pppwidget/lib # insmod usb_wwan.ko
root@android:/sdcard/pppwidget/lib # insmod option.ko

LOM
Posts: 1286
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by LOM » Tue Dec 10, 2013 6:57 am

SileNTViP wrote: Try this modules
Some huge drivers in there, did you forget to strip symbols?

SileNTViP
Posts: 22
Joined: Fri Dec 06, 2013 4:06 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by SileNTViP » Tue Dec 10, 2013 12:13 pm

Try striped modules
Attachments
HTC_One_S-3.4.10-0f5103e.ZIP
(29.97 KiB) Downloaded 474 times

varunksl
Posts: 7
Joined: Tue Nov 19, 2013 11:47 pm

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by varunksl » Wed Dec 11, 2013 1:33 am

Yup, still works great and much smaller. Thanks :)

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: "Driver Not Found" for HTC One S with HUAWEI EC156

Post by Josh » Wed Dec 18, 2013 11:23 am

SileNTViP,

thank you very much for your help here!

I'm heavily time-constrained at the moment, so your work is extremely welcome!

Post Reply