LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   usb_switchmode unsccessful for MediaTek MT6225 (https://www.linuxquestions.org/questions/linux-kernel-70/usb_switchmode-unsccessful-for-mediatek-mt6225-4175595471/)

pankajcharpe 12-15-2016 03:59 AM

usb_switchmode unsccessful for MediaTek MT6225
 
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

TB0ne 12-15-2016 12:36 PM

Quote:

Originally Posted by pankajcharpe (Post 5642326)
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

The first hit in Google for "MediaTek MT6225 linux" is:
https://community.linuxmint.com/tutorial/view/1796

a step-by-step guide, with links and instructions...but we can only guess as if it'll work or not, since you don't tell us what version/distro of Linux you're using. You tell us a Linux kernel version that's ANCIENT (2.6.36), but that doesn't tell us much of anything.


All times are GMT -5. The time now is 12:34 PM.