ubuntu新手配置Broadcom无线网卡(超级简单)

$ sudo gedit usb_modeswitch.setup ########################################################
# Huawei E1550
# Huawei E1750
#
#Contributor: Anders Blomdell, Ahmed Soliman

DefaultVendor= 0x12d1
DefaultProduct= 0x1001

TargetVendor= 0x12d1
TargetProduct= 0x1001

#only for reference and 0.x versions
#MessageEndpoint=0x01

MessageContent="55534243123456780000000000000011060000000000000000000000000000"

CheckSuccess=5
########################################################


user@Ubuntu1004:/etc$ lsusb
Bus 002 Device 002: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 038: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
user@Ubuntu1004:/etc$

user@Ubuntu1004:/etc$ ls /sys/bus/usb-serial/drivers/option1/ //在插入E1750后,会自动识别出三个ttyUSB设备
bind module new_id ttyUSB0 ttyUSB1 ttyUSB2 uevent unbind
user@Ubuntu1004:/etc$


user@Ubuntu1004:/etc$ sudo usb_modeswitch -W -c usb_modeswitch.setup
Reading config file: usb_modeswitch.setup

* usb_modeswitch: handle USB devices with multiple modes
* Version 1.1.6 (C) Josua Dietze 2010
* Based on libusb0 (0.1.12 and above)

! PLEASE REPORT NEW CONFIGURATIONS !

DefaultVendor= 0x12d1
DefaultProduct= 0x1001
TargetVendor= 0x12d1
TargetProduct= 0x1001
TargetClass= not set
TargetProductList=""

DetachStorageOnly=0
HuaweiMode=0
SierraMode=0
SonyMode=0
GCTMode=0
KobilMode=0
MessageEndpoint= not set
MessageContent="55534243123456780000000000000011060000000000000000000000000000"
NeedResponse=0
ResponseEndpoint= not set
Interface=0x00

InquireDevice enabled (default)
Success check enabled, max. wait time 5 seconds
System integration mode disabled

usb_set_debug: Setting debugging level to 15 (on)
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 038 on 001
usb_os_find_devices: Found 001 on 001
error obtaining child information: Inappropriate ioctl for device

Looking for target devices ...
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0002
Found devices in target mode or class (1)
Looking for default devices ...
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 12d1:1001
found matching vendor ID
found matching product ID
adding device
searching devices, found USB ID 1d6b:0002
Found devices in default mode, class or configuration (1)
Accessing device 038 on bus 001 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using endpoints 0x01 (out) and 0x82 (in)
Using endpoints 0x01 (out) and 0x82 (in)
Not a storage device, skipping SCSI inquiry

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI Technology
Product: HUAWEI Mobile
Serial No.: not provided
-------------------------
Looking for active driver ...
OK, driver found ("option")
OK, driver "option" detached
Setting up communication with interface 0 ...
Using endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Resetting response endpoint 0x82
Resetting message endpoint 0x01
USB error: could not release intf 0: No such device
Device is gone, skipping any further commands

Checking for mode switch (max. 5 times, once per second) ...
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001 //ubuntu系统中的E1750模块会自动弹出。
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
Searching for target devices ...
usb_os_find_busses: Found 002
usb_os_find_busses: Found 001
usb_os_find_devices: Found 002 on 002
usb_os_find_devices: Found 001 on 002
usb_os_find_devices: Found 001 on 001
searching devices, found USB ID 0e0f:0002
searching devices, found USB ID 1d6b:0001
searching devices, found USB ID 1d6b:0002
No new devices in target mode or class found

Mode switch has failed. Bye.
user@Ubuntu1004:/etc$

有熟悉的同志帮忙看看,谢谢了……

作者: coollu925   发布时间: 2011-04-14