pppd chat porting

During the 4G dialing process, the dialing fails and the IP cannot be obtained.

However, the configuration files are provided by the manufacturer and should be no problem. So I decided to transplant the pppd dialing tool and give it a try.

Download: https://download.samba.org/pub/ppp/

Unzip and compile:

tar -vxf ppp-2.4.7.tar.gz

cd ppp-2.4.7/

mkdir __install

./configure --prefix=$PWD/__install

make CC=arm-hisiv500-linux-gcc


Generate pppd tools in the pppd directory:

root@ubuntu:/ppp-2.4.7# file pppd/pppd
pppd/pppd: ELF 64-bit LSB  executable, ARM aarch64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.7.0, not stripped
root@ubuntu:/ppp-2.4.7# 


Generate chat tools in the chat directory:

root @ ubuntu: /ppp-2.4.7# file chat / chat
chat / chat: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU / Linux 3.7.0 , not stripped
root @ ubuntu: /ppp-2.4.7# 

Then copy the generated file to the board and test it.

The test can dial successfully.

Published 115 original articles · Like 29 · Visitors 50,000+

Guess you like

Origin blog.csdn.net/huabiaochen/article/details/102394099