Linux下MTK 3G网卡驱动移植

本文详细介绍了如何在Linux系统中移植和配置MTK 3G网卡驱动。内容涵盖3G连接配置、用户空间应用程序设置、设备添加/移除时的命令执行、USB主机驱动、USB 3G Dongle驱动的定制,以及PPP驱动和设备热插拔的内核设置。通过这些步骤,用户可以成功使3G网卡在Linux环境下工作。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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 添加:
 
   ;DetachStorageOnly=1
;HuaweiMode=1
    
   DefaultVendor= 0x12d1
   DefaultProduct= 0x14fe
   TargetVendor= 0x12d1
   TargetProduct= 0x1506
   MessageEndpoint= 0x01
   MessageContent= "55534243123456780000000000000011062000000100000000000000000000"
   CheckSuccess= 20
    
    
    
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脚本

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值