1. 查看ppp的驱动是否有
cong@msi:/work/mtk/78P01$ vi mediatek/config/mt6592/autoconfig/kconfig/platform
1099 #
1100 # CAIF transport drivers
1101 #
1102 # CONFIG_ETHERNET isnotset
1103 # CONFIG_PHYLIB isnotset
1104 # CONFIG_MICREL_KS8995MA isnotset
1105 CONFIG_PPP=y
1106 CONFIG_PPP_BSDCOMP=y
1107 CONFIG_PPP_DEFLATE=y
1108 CONFIG_PPP_FILTER=y
1109 CONFIG_PPP_MPPE=y
1110 CONFIG_PPP_MULTILINK=y
1111 CONFIG_PPPOE=y
1112 CONFIG_PPPOLAC=y
1113 CONFIG_PPPOPNS=y
1114 CONFIG_PPP_ASYNC=y
1115 CONFIG_PPP_SYNC_TTY=y
1116 # CONFIG_SLIP isnotset
1117 CONFIG_SLHC=y
2. ppp中chat的移植
a. android下pppd这个在extern/ppp/pppd下己经有了,不过mtk会编译出pppd_dt与pppd,
在调试时发现pppd_dt在打开/dev/ppp时,会报权限错误,所以我用的是pppd
b. chat这个工具需要下载ppp-2.4.5.tar.gz的源码进制编译
好在只有一个chat.c文件移植起来很简单
c. chat移植的Android.mk