LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-15-2016, 03:59 AM   #1
pankajcharpe
LQ Newbie
 
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
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
 
Old 12-15-2016, 12:36 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by pankajcharpe View Post
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
0e8d:7115 MediaTek Inc driver Net_Spy Linux - Networking 2 12-09-2015 02:42 AM
LXer: MediaTek launches developer portal, debuts Android SDK LXer Syndicated Linux News 0 09-23-2014 05:30 AM
Hardware based on MediaTek SOCs louigi600 Linux - Hardware 0 07-04-2014 05:45 PM
LXer: MediaTek fires up new ARM Cortex-A17 LXer Syndicated Linux News 0 02-12-2014 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration