0%

嵌入式 Linux 系统支持 GSM/3G

编译 Linux Kernel 支持 GSM/3G/4G

Linux 内核选项

Linux Version: v4.9.22

内核配置保证打开如下选项

Device Drivers  --->
   [*] Network device support  --->
        <*>   PPP (point-to-point protocol) support
        < >     PPP BSD-Compress compression
        < >     PPP Deflate compression
        [*]     PPP filtering
        < >     PPP MPPE compression (encryption)
        [*]     PPP multilink support
        < >     PPP over Ethernet
        < >     PPP support for async serial ports
        < >     PPP support for sync tty ports
   [*] USB support  --->
        <*>   USB Serial Converter support  --->
            <*>   USB driver for GSM and CDMA modems

工作之后有如下错误信息

Couldn't set tty to PPP discipline: Invalid argument

参考文章 PPTP Client

打开选项 CONFIG_PPP_ASYNC

注意其中 compression 为压缩选项

Ref

  1. PPTP Client
  2. 如何在嵌入式 Linux 系统中使用 GSM/3G/4G 模块
  3. A 10-Minute Guide for Using PPP to Connect Linux to the Internet