NUC980开发板Linux系统EC20模块 移植 串口 PPP拨号
1. EC20模块连接
在嵌入式Linux中,4G网络连接是一个较容易实现的功能,大多数的4G模块接口都是MiniPCIE接口,深入了解一下就会发现,4G模块的通信接口是USB,所以4G模块的驱动通常选择使用USB驱动,这种情况下,只要USB驱动正常,4G模块在硬件上就能正常通信。但是本文中不采用USB驱动,而是采用串口驱动,二者在传输速率上存在不同。
将NUC980主控板中芯片NUC980DK61Y的引脚和EC20 R2.1模块的RX TX 通过电平转换芯片进行连接,以及EC20的powerkey引脚。具体可参考EC20硬件设计手册。
2. Linux内核配置
源码目录,在linux终端输入命令make linux-menuconfig进行配置。
-
选中如下选项,进行串口复用。
配置路径如下:
Device Drivers —> Character devices —>
<*> GSM MUX line discipline support(EXPERIMENTAL)
-
选中如下选项,可支持PPP拨号。
配置路径如下:
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
<> SLIP(serial line) support