V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
bander
V2EX  ›  3G

3G 驱动配置

  •  
  •   bander · 2015-01-11 20:40:07 +08:00 · 9441 次点击
    这是一个创建于 3599 天前的主题,其中的信息可能已经有所发展或是发生改变。

    3G
    需修改文件(华为模块)
    linux-3.10.14/drivers/usb/serial/option.c
    linux-3.10.14/drivers/usb/serial/usb_wwan.c
    linux-3.10.14/drivers/usb/serial/usb_wwan.h
    linux-3.10.14/include/linux/usb.h

    如果已经打过补丁 不需要修改上面文件

    1、USB 串口驱动 编译配置项
    make kernel_menuconfig
    Device Drivers --->

    [] USB support --->

    <
    > Support for Host-side USB
    <> USB Serial Converter support --->

    [
    ] USB Generic Serial Driver

    <*> USB driver for GSM and CDMA modems

    2、PPP 拨号的相关配置项
    make kernel_menuconfig
    Device Drivers --->

    [] Network device support --->

    <
    > PPP (point-to-point protocol) support
    <*> PPP BSD-Compress compression

    3、CDC ECM 驱动编译配置项
    make kernel_menuconfig
    Device Drivers --->
    [] Network device support --->
    USB Network Adapters --->
    <
    > Multi-purpose USB Networking Framework
    <> CDC Ethernet support (smart devices such as cable modems)
    <
    > CDC MBIM support
    4、页面luci
    make menuconfig
    LuCI(MTK) --->
    6. Protocols --->
    <> luci-proto-3g............................................. Support for 3G

    Q9 模块未带电源管理
    参考文档
    TF卡
    Device Drivers --->

    <
    > MMC/SD/SDIO card support --->

    <> MMC block device driver
    [
    ] Use bounce buffer for simple hosts

    <> MTK SD/MMC
    [
    ] MTK AEE KDUMP

    File systems --->

    <> The Extended 4 (ext4) filesystem

    [
    ] Use ext4 for ext2/ext3 file systems
    [*] Ext4 POSIX Access Control Lists

    -----------MSDOS fs和VFAT fs--------------
    File systems --->
    DOS/FAT/NT Filesystems --->
    <> MSDOS fs support

    <
    > VFAT (Windows-95) fs support

    (936) Default codepage for FAT

    (cp936) Default iocharset for FAT

    <> NTFS file system support

    [
    ] NTFS debugging support

    [*] NTFS write support

    tf卡挂载路径
    /build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/fstools-2014-06-22# vi block.c

    snprintf(target, sizeof(target), "/mnt/%s", "media");

    vibbow
        1
    vibbow  
       2015-01-11 22:38:20 +08:00
    对于Windows用户:
    插上网卡 -> 一路狂点下一步安装驱动 -> 搞定。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1041 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 20:30 · PVG 04:30 · LAX 12:30 · JFK 15:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.