Linux Kernel PPP suite settings (1)

Source: Internet
Author: User

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.