We know that the development of networks is also embedded in mobile communication. Embedded operations are required to add some settings to some mobile devices. Here we will explain the PPP settings of the Linux kernel in the GPRS internet access solution based on embedded Linux.
Hardware/software environment
In an embedded system based on S3C2410, COM1 connects to PC and COM2 connects to the SIM300 GPRS module. The system runs in Linux 2.6.14 and uses the ppp kit to perform PPP dialing through SIM300.
Support PPP for Linux Kernel
Go to the Linux kernel directory and run # make menuconfig
Network Device Support à
<*> PPP (point-to-point protocol) support
[*] PPP multilink support
<*> PPP support for async serial ports
<*> PPP support for sync tty ports
<*> SLIP (serial line) support
[*] CSLIP compressed headers
Ppp kit installation
? Download ppp: ftp://ftp.samba.org/pub/ppp * Latest Version 2.4.4
? Extract ppp-2.4.tar.gz to the directory
* The default ppp source code directory is $ (PPP)
# Tar zxvf ppp-2.4.4.tar.gz
? Then cross-compile ppp:
# Cd $ (PPP)
#./Configure
# Make CC =/usr/local/arm/3.4.1/bin/arm-linux-gcc × cross compiler is specified here
? Install the ppp kit in an embedded system:
× The default executable file directory in the embedded system is $ (EMB_BIN)
# Cp $ (PPP)/chat $ (EMB_BIN)
# Cp $ (PPP)/pppd $ (EMB_BIN)
# Cp $ (PPP)/pppdump $ (EMB_BIN)
# Cp $ (PPP)/pppstats $ (EMB_BIN)
× Here, the etc directory of the embedded system is $ (EMB_ETC) by default)
# Mkdir $ (EMB_ETC)/ppp
# Cp $ (PPP)/etc. ppp/* $ (EMB_ETC)/ppp