Linux下MTK 3G网卡驱动移植
2015-08-25 15:07
519 查看
1:User-space applications configuration
Kernel/Library/Defaults Selection --->
[*]Customize Vendor/User Settings
Network
Applications --->
[*] 3G connection
2:User-space
applications configuration
Kernel/Library/Defaults
Selection --->
[*]
Customize Busybox Settings
Linux
System Utilities --->
[*]
mdev
[*]
Support /etc/mdev.conf
[*]
Support subdirs/symlinks
[*]
Support regular expressions substitutions when renaming device
[*]
Support command execution at device addition/removal
3:USB
Host driver
Kernel/Library/Defaults
Selection --->
[*]
Customize Kernel Settings
Device
Drivers --->
[*]
USB support --->
<*>
Support for Host-side USB
[*]
USB device filesystem
<*>
EHCI HCD (USB 2.0) support
[*]
Ralink EHCI HCD support
<*>
OHCI HCD support
[*]
Ralink OHCI HCD support
4:USB
3G dongle driver
Kernel/Library/Defaults
Selection --->
[*]
Customize Kernel Settings
Device
Drivers --->
[*]
USB support --->
[*]
USB Serial Converter support --->
[*] USB driver for GSM and CDMA modems
5:PPP
driver
Kernel/Library/Defaults Selection --->
[*]
Customize Kernel Settings
Device
Drivers --->
[*]
Network device support --->
[*]
PPP (point-to-point protocol) support
[*]
PPP support for async serial ports
6:Device
hot plugging
Kernel/Library/Defaults
Selection --->
[*]
Customize Kernel Settings
General
setup --->
[*]
Configure standard kernel features (for small systems) --->
[*]
Support for hot-pluggable devices
7:Sysfs filesystem
Kernel/Library/Defaults Selection --->
[*] CuFile systems --->
Pseudo filesystems --->
[*]
sysfs file system support
Pseudo
filesystems --->
[*]
sysfs file system support
Pseudo
filesystems --->
[*]
sysfs file system support
8:linux-2.6.36.x/drivers/usb/serial/option.c 添加:
1.#define HUAWEI_PRODUCT_E3520x1506
2.{ USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E352) },
9:user/usb_modeswitch-0.9.5/usb_modeswitch.conf 添加:
10:user/rt2880_app/scripts/autoconn3G.sh 添加
SUPPORT_3G="
12D1:14FE:HUAWEI-E352
12D1:1506:HUAWEI-E352"
11:user/rt2880_app/scripts/3g.sh 添加
elif [ "$dev" = "HUAWEI-E352" ]; then
usb_modeswitch -c /etc_ro/usb/usb_modeswitch_HUAWEI-E352.conf
12:启动wan.sh脚本
Kernel/Library/Defaults Selection --->
[*]Customize Vendor/User Settings
Network
Applications --->
[*] 3G connection
2:User-space
applications configuration
Kernel/Library/Defaults
Selection --->
[*]
Customize Busybox Settings
Linux
System Utilities --->
[*]
mdev
[*]
Support /etc/mdev.conf
[*]
Support subdirs/symlinks
[*]
Support regular expressions substitutions when renaming device
[*]
Support command execution at device addition/removal
3:USB
Host driver
Kernel/Library/Defaults
Selection --->
[*]
Customize Kernel Settings
Device
Drivers --->
[*]
USB support --->
<*>
Support for Host-side USB
[*]
USB device filesystem
<*>
EHCI HCD (USB 2.0) support
[*]
Ralink EHCI HCD support
<*>
OHCI HCD support
[*]
Ralink OHCI HCD support
4:USB
3G dongle driver
Kernel/Library/Defaults
Selection --->
[*]
Customize Kernel Settings
Device
Drivers --->
[*]
USB support --->
[*]
USB Serial Converter support --->
[*] USB driver for GSM and CDMA modems
5:PPP
driver
Kernel/Library/Defaults Selection --->
[*]
Customize Kernel Settings
Device
Drivers --->
[*]
Network device support --->
[*]
PPP (point-to-point protocol) support
[*]
PPP support for async serial ports
6:Device
hot plugging
Kernel/Library/Defaults
Selection --->
[*]
Customize Kernel Settings
General
setup --->
[*]
Configure standard kernel features (for small systems) --->
[*]
Support for hot-pluggable devices
7:Sysfs filesystem
Kernel/Library/Defaults Selection --->
[*] CuFile systems --->
Pseudo filesystems --->
[*]
sysfs file system support
Pseudo
filesystems --->
[*]
sysfs file system support
Pseudo
filesystems --->
[*]
sysfs file system support
8:linux-2.6.36.x/drivers/usb/serial/option.c 添加:
1.#define HUAWEI_PRODUCT_E3520x1506
2.{ USB_DEVICE(HUAWEI_VENDOR_ID, HUAWEI_PRODUCT_E352) },
9:user/usb_modeswitch-0.9.5/usb_modeswitch.conf 添加:
;DetachStorageOnly=1 ;HuaweiMode=1 | ||
DefaultVendor= 0x12d1 | ||
DefaultProduct= 0x14fe | ||
TargetVendor= 0x12d1 | ||
TargetProduct= 0x1506 | ||
MessageEndpoint= 0x01 | ||
MessageContent= "55534243123456780000000000000011062000000100000000000000000000" | ||
CheckSuccess= 20 | ||
SUPPORT_3G="
12D1:14FE:HUAWEI-E352
12D1:1506:HUAWEI-E352"
11:user/rt2880_app/scripts/3g.sh 添加
elif [ "$dev" = "HUAWEI-E352" ]; then
usb_modeswitch -c /etc_ro/usb/usb_modeswitch_HUAWEI-E352.conf
12:启动wan.sh脚本
相关文章推荐
- Linux socket 初步
- 10 篇对初学者和专家都有用的 Linux 命令教程
- Linux 与 Windows 对UNICODE 的处理方式
- Ubuntu12.04下QQ完美走起啊!走起啊!有木有啊!
- 解決Linux下Android开发真机调试设备不被识别问题
- 运维入门
- 运维提升
- Linux 自检和 SystemTap
- Ubuntu Linux使用体验
- c语言实现hashmap(转载)
- Linux 信号signal处理机制
- linux下mysql添加用户
- Scientific Linux 5.5 图形安装教程
- 基于 Linux 集群环境上 GPFS 的问题诊断
- 谁是桌面王者?Win PK Linux三大镇山之宝
- vivi下重新调整分区
- Linux VS Unix:Linux欲一统天下 Unix不死
- linux下设定环境变量
- Linux下修改MySQL编码的方法