My MT6250 based phone Aiek M3 is still covered by the rule, and the rule as it is invalidates mass storage support.
I found two work-arounds:
1) Disable the rule
2) Add
Configuration=0x01 to
/usr/share/usb_modeswitch/0e8d:0002:uPr=MT
Both result in working mass storage. I am not sure, whether this tiny phone supports modem at all, but I seems that no.
lsusb output:
Code: Select all
Bus 001 Device 004: ID 0e8d:0002 MediaTek Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0e8d MediaTek Inc.
idProduct 0x0002
bcdDevice 1.00
iManufacturer 2 MediaTek Inc
iProduct 3 MT6250
iSerial 4 53290802318158f
bNumConfigurations 6
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 1 6250--Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 2
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 400mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 1 6250--Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 3
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 300mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 1 6250--Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 4
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 200mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 1 6250--Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 5
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 98mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 1 6250--Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 6
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 1 6250--Storage
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0000
(Bus Powered)
System messages with this rule disabled:
Code: Select all
2014-02-06T15:52:28.030150+01:00 oct kernel: [49761.541016] usb 1-1.4: new full-speed USB device number 4 using ehci-pci
2014-02-06T15:52:28.121147+01:00 oct kernel: [49761.631889] usb 1-1.4: New USB device found, idVendor=0e8d, idProduct=0002
2014-02-06T15:52:28.121160+01:00 oct kernel: [49761.631896] usb 1-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
2014-02-06T15:52:28.121162+01:00 oct kernel: [49761.631900] usb 1-1.4: Product: MT6250
2014-02-06T15:52:28.121163+01:00 oct kernel: [49761.631903] usb 1-1.4: Manufacturer: MediaTek Inc
2014-02-06T15:52:28.121165+01:00 oct kernel: [49761.631906] usb 1-1.4: SerialNumber: 53290802318158f
2014-02-06T15:52:28.121170+01:00 oct kernel: [49761.632893] usb-storage 1-1.4:1.0: USB Mass Storage device detected
2014-02-06T15:52:28.123092+01:00 oct kernel: [49761.634235] scsi35 : usb-storage 1-1.4:1.0
2014-02-06T15:52:28.399635+01:00 oct logger: usb_modeswitch: switching disabled, no action for 0e8d:0002
2014-02-06T15:52:29.125108+01:00 oct kernel: [49762.636216] scsi 35:0:0:0: Direct-Access MEDIATEK FLASH DISK 6250 PQ: 0 ANSI: 0 CCS
2014-02-06T15:52:29.125128+01:00 oct kernel: [49762.636684] sd 35:0:0:0: Attached scsi generic sg5 type 0
2014-02-06T15:52:29.126153+01:00 oct kernel: [49762.637559] sd 35:0:0:0: [sdd] 3854336 512-byte logical blocks: (1.97 GB/1.83 GiB)
2014-02-06T15:52:29.127070+01:00 oct kernel: [49762.638353] sd 35:0:0:0: [sdd] Write Protect is off
2014-02-06T15:52:29.127083+01:00 oct kernel: [49762.638361] sd 35:0:0:0: [sdd] Mode Sense: 03 00 00 00
2014-02-06T15:52:29.129113+01:00 oct kernel: [49762.640496] sd 35:0:0:0: [sdd] No Caching mode page found
2014-02-06T15:52:29.129123+01:00 oct kernel: [49762.640502] sd 35:0:0:0: [sdd] Assuming drive cache: write through
2014-02-06T15:52:29.133146+01:00 oct kernel: [49762.644046] sd 35:0:0:0: [sdd] No Caching mode page found
2014-02-06T15:52:29.133158+01:00 oct kernel: [49762.644052] sd 35:0:0:0: [sdd] Assuming drive cache: write through
2014-02-06T15:52:29.141124+01:00 oct kernel: [49762.651920] sdd: sdd1
2014-02-06T15:52:29.145185+01:00 oct kernel: [49762.656423] sd 35:0:0:0: [sdd] No Caching mode page found
2014-02-06T15:52:29.145197+01:00 oct kernel: [49762.656428] sd 35:0:0:0: [sdd] Assuming drive cache: write through
2014-02-06T15:52:29.145200+01:00 oct kernel: [49762.656433] sd 35:0:0:0: [sdd] Attached SCSI removable disk
System messages with this rule enabled:
Code: Select all
2014-02-06T15:56:50.303240+01:00 oct kernel: [50023.199364] usb 1-1.4: new full-speed USB device number 5 using ehci-pci
2014-02-06T15:56:50.394305+01:00 oct kernel: [50023.290188] usb 1-1.4: New USB device found, idVendor=0e8d, idProduct=0002
2014-02-06T15:56:50.394325+01:00 oct kernel: [50023.290195] usb 1-1.4: New USB device strings: Mfr=2, Product=3, SerialNumber=4
2014-02-06T15:56:50.394328+01:00 oct kernel: [50023.290199] usb 1-1.4: Product: MT6250
2014-02-06T15:56:50.394330+01:00 oct kernel: [50023.290202] usb 1-1.4: Manufacturer: MediaTek Inc
2014-02-06T15:56:50.394332+01:00 oct kernel: [50023.290206] usb 1-1.4: SerialNumber: 53290802318158f
2014-02-06T15:56:50.395178+01:00 oct kernel: [50023.291217] usb-storage 1-1.4:1.0: USB Mass Storage device detected
2014-02-06T15:56:50.395197+01:00 oct kernel: [50023.291364] scsi36 : usb-storage 1-1.4:1.0
2014-02-06T15:56:51.039622+01:00 oct usb_modeswitch: switching device 0e8d:0002 on 001/005