usb_modeswitch挂在手动开关上

时间:2013-05-02 11:48:50

标签: linux linux-kernel raspberry-pi

我有3.2.27 Linux内核Busybox。我正在使用Raspberry PI。当我插入华为E303c dmesg显示

[    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

选项内核模块已在运行,但usb-storage模块未运行。但是当我输入usb_modeswitch -v 0x12d1 -p 0x14fe -H它就像

一样
Looking for default devices ...
 Found default devices (1)
Accessing device 002 on bus 002 ...
Using endpoints 0x04 (out) and 0x83 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
 OK, driver found ("usb-storage")
 OK, driver "usb-storage" detached

任何人都可以给我一个解决方案,

1 个答案:

答案 0 :(得分:2)

这解决了我的问题

usb_modeswitch -c /etc/usb_modeswitch.conf -W -I

modprobe option
modprobe ppp_generic

我的/etc/usb_modeswitch.conf看起来像

# Huawei E303c
DefaultVendor= 0x12d1
DefaultProduct=0x14fe

TargetVendor=  0x12d1
TargetProductList="1001,1406,140b,140c,1412,141b,14ac,1506"

CheckSuccess=20

MessageEndpoint= 0x01
MessageContent="55534243123456780000000000000011062000000100000000000000000000"