From: Xiaofan C. <xia...@gm...> - 2016-12-15 13:04:59
|
On Thu, Dec 15, 2016 at 5:21 PM, Pankaj Charpe <pan...@se...> wrote: > > Hi, > I am trying to do usb_mode-switch in my almond 3 router but it is not working.Its seems it is not finding the device ,the router is embed with linux kernel-3.10.14.x .I could not find any entry in /proc/bus/usb/devices for the respective dongle .Previously it was working with linux-2.6.36 .The usb_switchmode module is not able to find the default device as you can see below : > > * usb_modeswitch: tool for controlling "flip flop" mode USB devices > * Version 0.9.5 (C) Josua Dietze 2008 > * Works with libusb 0.1.12 and probably other versions > Looking for target devices > No target device found > Looking for default devices > No default device found. Is it connected? Bye > > Could please tell me the reason why it is not switching ? Do I have to > enable any driver in Linux kernel ? > > Here is the complete log: > > > # usb 1-2: new high-speed USB device number 2 using xhci-hcd > usb 1-2: New USB device found, idVendor=2020, idProduct=0002 > usb 1-2: New USB device strings: Mfr=2, Product=3, SerialNumber=4 > usb 1-2: Product: MT6225 > usb 1-2: Manufacturer: Network Connect > usb 1-2: SerialNumber: 686910104253330 > add_ep parameters, dev_speed 3, is_in 1, isTT 0, ep_type 2, maxp 512, interval 1, burst 0, mult 0, ep 0x8de3f980, ep_ctx 0xadeaa080, sch_ep 0x8e149e00 > add_ep parameters, dev_speed 3, is_in 0, isTT 0, ep_type 2, maxp 512, interval 1, burst 0, mult 0, ep 0x8de3f9ac, ep_ctx 0xadeaa060, sch_ep 0x8e149b80 > usb-storage 1-2:1.0: USB Mass Storage device detected > scsi0 : usb-storage 1-2:1.0 > scsi 0:0:0:0: CD-ROM UsbModem Storage Disk 6225 PQ: 0 ANSI: 0 CCS > scsi 0:0:0:1: Direct-Access UsbModem Storage Disk 6225 PQ: 0 ANSI: 0 CCS > sd 0:0:0:1: [sda] Test WP failed, assume Write Enabled > sd 0:0:0:1: [sda] Asking for cache data failed > sd 0:0:0:1: [sda] Assuming drive cache: write through > sd 0:0:0:1: [sda] Attached SCSI removable disk > usb_modeswitch -c /etc_ro/usb/usb_modeswitch_MEDIATEK-2020.conf > > * usb_modeswitch: tool for controlling "flip flop" mode USB devices > * Version 0.9.5 (C) Josua Dietze 2008 > * Works with libusb 0.1.12 and probably other versions > > DefaultVendor=0x2020 > DefaultProduct=0x2 > TargetVendor=0x2020 > TargetProduct=0x4000 > TargetClass=0x0 > DetachStorageOnly=0 > HuaweiMode=0 > MessageEndpoint=0x1 > MessageContent="5553424312345678000000000000061b000000020000000000000000000000" > ResponseEndpoint=0x81 > > Interface=0x0 > > Looking for target devices > No target device found > Looking for default devices > No default device found. Is it connected? Bye > It seems that you are using a very old version of usb_modeswitch. Please try the latest version or ask in the usb_modeswitch side. -- Xiaofan |