imx6 yocto 3g模块移植
来源:互联网 发布:手机车牌识别软件 编辑:程序博客网 时间:2024/04/30 17:20
1.配置内核:
[*] 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 Modem (CDC ACM) support
[*] USB support --->
<*> USB Serial Converter support --->
<*> USB driver for GSM and CDMA modems
2.修改配置文件
vi <build-directory>/conf/local.conf
添加:
IMAGE_INSTALL_append += "ppp"
3.编译,烧写。
4.在/etc/新建文件ppp-on-dialer
写入内容:
TIMEOUT 5 '' AT OK AT+CGDCONT=1,"IP","CMNET" OK AT OK ATE0V1 OK AT OK
ATS0=0 OK AT OK ATE0V1 OK AT OK ATDT*99***1# CONNECT ''
5.创建sh脚本 3g.sh#!/bin/sh
#Closed other network
ifconfig eth0 down
ifconfig wlan0 down
pppd /dev/ttyUSB2 connect "chat -v -f /etc/ppp-on-dialer"
time=0
echo "Connected to 3G network"
dev=`ifconfig |grep "ppp0" |busybox cut -d: -f0 |busybox cut -d" " -f1`
while [ "$dev" != "ppp0" ] && [ $time -lt 10 ]
do
sleep 1
time=`expr $time + 1`
dev=`ifconfig |grep "ppp0" |busybox cut -d: -f0 |busybox cut -d" " -f1`
done
if [ "$dev" == "ppp0" ]
then echo "Connection successful"
route add default gw 10.64.64.64 dev ppp0
ifconfig ppp0
else
echo "Connection failed,Please try again"
fi
6.插入3g模块
7.执行3g.sh脚本
8.修改dns,配置文件位置:/etc/resolv.conf,写入内容
nameserver 202.106.0.20
9,测试网络,ping www.baidu.com
- imx6 yocto 3g模块移植
- imx6板卡移植官方yocto
- Yocto IMX6 vsftpd 移植到ARM
- imx6 板卡移植官方yocto版本
- imx6 板卡移植官方yocto版本(1_安装环境)
- imx6 板卡移植官方yocto版本(2_定制系统)
- imx6 板卡移植官方yocto版本(1_安装环境)
- imx6 板卡移植官方yocto版本(2_定制系统)
- imx6 板卡移植官方yocto版本(1_安装环境)
- 不同3G模块移植
- 不同3G模块移植 .
- 不同3G模块移植
- 不同3G模块移植
- 3g模块移植
- Imx6 Yocto + Ffmpeg
- imx6 yocto编译备忘
- yocto 各种技巧 imx6
- imx6 yocto编译备忘
- 【38.02%】【codeforces 625B】War of the Corporations
- uoj#228. 基础数据结构练习题
- JS通过操作Element的Css来实现隐藏和显示(本示例只有隐藏)
- 删除CentOS更新后的旧内核
- ping网络状态
- imx6 yocto 3g模块移植
- React Native 使用Code-Push 更新APP
- timeScale
- IPC进程间通信之Binder
- 第一次的博客-------------第三方应用QQ登录
- 【77.78%】【codeforces 625C】K-special Tables
- c++dynamic_cast、const_cast 、static_cast、reinterpret_cast强制类型转换
- CSS学习、Day04
- elasticsearch 快速创建同义词