linux - usb_modeswitch is hangs on manual switch -
i have 3.2.27 linux kernel busybox
. using raspberry pi
. when pluging huawei e303c dmesg showing
[ 4.569781] usb 1-1.2: new high-speed usb device number 5 using dwc_otg [ 4.681078] usb 1-1.2: new usb device found, idvendor=12d1, idproduct=14fe [ 4.690885] usb 1-1.2: new usb device strings: mfr=2, product=1, serialnumber=0 [ 4.701143] usb 1-1.2: product: huawei mobile [ 4.708326] usb 1-1.2: manufacturer: huawei [ 4.718185] scsi0 : usb-storage 1-1.2:1.0 [ 4.726518] scsi1 : usb-storage 1-1.2:1.1 [ 5.720951] scsi 0:0:0:0: cd-rom huawei mass storage 2.31 pq: 0 ansi: 2 [ 5.738561] scsi 1:0:0:0: direct-access huawei sd storage 2.31 pq: 0 ansi: 2 [ 5.755514] sd 1:0:0:0: [sda] attached scsi removable disk
the option kernel module running usb-storage module not running. when enter usb_modeswitch -v 0x12d1 -p 0x14fe -h it's hangs
looking default devices ... found default devices (1) accessing device 002 on bus 002 ... using endpoints 0x04 (out) , 0x83 (in) inquiring device details; driver detached ... looking active driver ... ok, driver found ("usb-storage") ok, driver "usb-storage" detached
can give me solution,
this has solve issue
usb_modeswitch -c /etc/usb_modeswitch.conf -w -i modprobe option modprobe ppp_generic
my /etc/usb_modeswitch.conf looks like
# huawei e303c defaultvendor= 0x12d1 defaultproduct=0x14fe targetvendor= 0x12d1 targetproductlist="1001,1406,140b,140c,1412,141b,14ac,1506" checksuccess=20 messageendpoint= 0x01 messagecontent="55534243123456780000000000000011062000000100000000000000000000"
Comments
Post a Comment