Hello.
Sorry for my english.

I have 3G-wifi-router E5331
---------------------------------
at^fhver
^FHVER:"E5331s-2 21.344.11.00.778,CH1E5331M"
at^getportmode
^GETPORTMODE: TYPE: WCDMA: huawei,DIAG:0,NDIS:1,PCUI:2,CDROM:3
AT^SETPORT=?
^SETPORT:A1: CDROM
^SETPORT:A2: SD
^SETPORT:A: BLUE TOOTH
^SETPORT:B: FINGER PRINT
^SETPORT:D: MMS
^SETPORT:E: PC VOICE
^SETPORT:1: MODEM
^SETPORT:2: PCUI
^SETPORT:3: DIAG
^SETPORT:4: PCSC
^SETPORT:5: GPS
^SETPORT:6: GPS CONTROL
^SETPORT:16: NCM

at^setport?
^SETPORT:A1;3,16,2,A1
--------------------------------------
It have mode:
12d1:1c20 - When plugged in, but the Power button is not pressed
12d1:14fe - When the Power button is pressed (turn on)
        then starts to work usb_modeswitch, there are two possibilities:
12d1:1506 - Modem mode (appear /dev/ttyUSB0;/dev/ttyUSB1;/dev/cdc_wdm0)
12d1:1c1e - NDIS mode
------------------------------------------------------
!!!! In all modes appears disk (where is the windows soft) !!!!!!
AT^SETPORT="A1;3,16,2" -It does not turn off for all.
--------
Mar  3 22:36:51 debi32 kernel: [ 9593.671658] scsi14 : usb-storage 1-4:1.0
Mar  3 22:36:51 debi32 mtp-probe: checking bus 1, device 11: 
"/sys/devices/pci0000:00/0000:00:14.0/usb1/1-4"
Mar  3 22:36:51 debi32 mtp-probe: bus: 1, device: 11 was not an MTP device
Mar  3 22:36:52 debi32 kernel: [ 9594.669296] scsi 14:0:0:0: CD-ROM            
HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Mar  3 22:36:52 debi32 kernel: [ 9594.670468] sr1: scsi-1 drive
Mar  3 22:36:52 debi32 kernel: [ 9594.670945] sr 14:0:0:0: Attached scsi CD-ROM 
sr1
Mar  3 22:36:52 debi32 kernel: [ 9594.671339] sr 14:0:0:0: Attached scsi 
generic sg3 type 5
------------------------------------------------------
Then(afterwards) system trying to exchange data with sr1:
-----------------------------------
Mar  3 22:37:22 debi32 systemd-udevd[194]: worker [7860] 
/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/host14/target14:0:0/14:0:0:0/block/sr1
 timeout; kill it
Mar  3 22:37:22 debi32 systemd-udevd[194]: seq 2001 
'/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/host14/target14:0:0/14:0:0:0/block/sr1'
 killed
Mar  3 22:37:23 debi32 kernel: [ 9625.894279] usb 1-4: reset high-speed USB 
device number 11 using xhci_hcd
Mar  3 22:37:23 debi32 kernel: [ 9625.894308] xhci_hcd 0000:00:14.0: Setup 
ERROR: setup context command for slot 10.
Mar  3 22:37:23 debi32 kernel: [ 9625.894314] usb 1-4: hub failed to enable 
device, error -22
Mar  3 22:37:24 debi32 kernel: [ 9626.006053] usb 1-4: reset high-speed USB 
device number 11 using xhci_hcd
Mar  3 22:37:24 debi32 kernel: [ 9626.006124] xhci_hcd 0000:00:14.0: Setup 
ERROR: setup context command for slot 10.
Mar  3 22:37:24 debi32 kernel: [ 9626.006134] usb 1-4: hub failed to enable 
device, error -22
Mar  3 22:37:24 debi32 kernel: [ 9626.118009] usb 1-4: reset high-speed USB 
device number 11 using xhci_hcd
Mar  3 22:37:24 debi32 kernel: [ 9626.134281] xhci_hcd 0000:00:14.0: xHCI 
xhci_drop_endpoint called with disabled ep eb86a140
Mar  3 22:37:24 debi32 kernel: [ 9626.134293] xhci_hcd 0000:00:14.0: xHCI 
xhci_drop_endpoint called with disabled ep eb86a170
Mar  3 22:37:24 debi32 systemd-udevd[194]: worker [7860] terminated by signal 9 
(Killed)
Mar  3 22:37:24 debi32 kernel: [ 9626.142512] sr 14:0:0:0: [sr1] Media Changed
Mar  3 22:37:24 debi32 kernel: [ 9626.142522] sr 14:0:0:0: [sr1]  
Mar  3 22:37:24 debi32 kernel: [ 9626.142527] Result: hostbyte=DID_OK 
driverbyte=DRIVER_SENSE
Mar  3 22:37:24 debi32 kernel: [ 9626.142531] sr 14:0:0:0: [sr1]  
Mar  3 22:37:24 debi32 kernel: [ 9626.142534] Sense Key : Unit Attention 
[current] 
Mar  3 22:37:24 debi32 kernel: [ 9626.142540] Info fld=0x0
Mar  3 22:37:24 debi32 kernel: [ 9626.142543] sr 14:0:0:0: [sr1]  
Mar  3 22:37:24 debi32 kernel: [ 9626.142550] Add. Sense: Not ready to ready 
change, medium may have changed
Mar  3 22:37:24 debi32 kernel: [ 9626.142554] sr 14:0:0:0: [sr1] CDB: 
Mar  3 22:37:24 debi32 kernel: [ 9626.142557] Read(10): 28 00 00 00 ff fe 00 00 
02 00
Mar  3 22:37:24 debi32 kernel: [ 9626.142572] end_request: I/O error, dev sr1, 
sector 262136
Mar  3 22:37:24 debi32 kernel: [ 9626.142579] Buffer I/O error on device sr1, 
logical block 32767
-------------------------------
Then connect, disconnect ....................connect, disconnect.
blkid freezes - 20 sec
internet connections (ppp0 or wwan0) also connect, disconnect 
....................connect, disconnect.
------------------------------
fdisk -l /dev/sr1
Warning:The driver said that the physical block size is 512 bytes, but Linux 
says it 2048 bytes
   i   Ignore                                                             
   c   Cancel
i
Disk /dev/sr1: 32 MB, 32901120 bytes
255 heads, 63 sectors/track, 4 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System 
/dev/sr1p1               1           1        8001   Apple_partition_map
Warning: Partition 1 does not end on cylinder boundary.                   
/dev/sr1p2               1           2        8032   Apple_HFS
Warning: Partition 2 does not end on cylinder boundary.
--------------------------------------------------------------------
Bug also appears on Kubuntu 14.10. kernel - 3.16.0
!!!!!!! Bug not appears on Kubuntu 14.04.2 LTS 3.13.0-37-generic; Kubuntu 12.04 
!!!!!
--------------------------------------------------------------------
-----------------temporary solutions---------------------------------
!!!!!!!!!!!!!!!!! rm /dev/sr1       !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

edit /lib/udev/rules.d/40-usb_modeswitch.rules

Comment:
#####################################################################################################################
# Generic entry for all Huawei devices
#ATTRS{idVendor}=="12d1", ATTR{bInterfaceNumber}=="00", 
ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch '%b/%k'"
#####################################################################################################################

add:
rules containing 12d1:.... from /lib/udev/rules.d/40-usb_modeswitch.rules 
(Kubuntu 14.04)
#########################################################################################################################################
# T-Mobile NL (Huawei E352)
#ATTR{idVendor}=="12d1", ATTR{idProduct}=="14fe", RUN+="usb_modeswitch '%b/%k'"

ATTR{idVendor}=="12d1", ATTR{idProduct}=="1c20", RUN+="/usr/bin/rmsr1.sh"

ATTR{idVendor}=="12d1", ATTR{idProduct}=="14fe", RUN+="/usr/sbin/usb_modeswitch 
-v 12d1 -p 14fe -V 12d1 -P 1c1e -M 
55534243123456780000000000000011060000000000000000000000000000 -n 1", 
RUN+="/usr/bin/rmsr1.sh"
#########################################################################################################################################

cat /usr/bin/rmsr1.sh
--------------------------
#!/bin/bash

while ! [ -b /dev/sr1 ]; do echo '-----/dev/sr1 netu-----'; sleep 2; done

/bin/rm /dev/sr1
echo "-------/dev/sr1 udalen-----------"
-------------------------------------------------



05.03.2015, 14:30, "Sergey" <mont...@ya.ru>:
> Package: src:linux
> Version: 3.16.7-ckt4-3
> Severity: normal


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to