I got it on an arm Board 3 or 4 years ago. Because many embedded systems need to be built on their own, RedHat is simpler and easier. If embedded systems are used, you should first get it through on the PC and port it to the target board. Let's talk about it for you. I hope it will help you.
1. Configure the kernel to support the following PPP options:
PPP (point-to-point) Support
PPP Multilink support (experimental)
PPP support for async serial Prots
PPP support for sync tty ports
PPP deflate Compression
Ppp bsd-compress Compression
2. compile the cross-compiled ppp-2.4.1. /pppd,/chat ,. /pppdump ,. copy/pppstats files to the/usr/sbin directory of the embedded file system and change their file attributes to 755.
3. In an embedded file system:
A. Create a PPP device: mknod/dev/ppp c 108 0 and change the properties of the/etc/PPP Folder: chmod 600/etc/PPP.
B. Edit the/etc/modules. conf file and add a line:
Options ppp_async flag_time = 0
C. edit/etc/resolv. conf and add a line:
Nameserver 211.136.17.107, I don't know how to pretend to be familiar (take the opportunity to damage telecomer with high salary and relatively low water, hey, don't take bricks and shoes at me, I'm afraid, I). Finally, I finally asked a handsome guy and told me this .)
D. Check the/etc/host. conf script to ensure that order hosts and bind exist.
4. E. Create the following file in the/etc/PPP directory (how to paste the attachment here? Really dizzy, I want to paste it one by one. It's hard to work a bit. Fortunately, today I am in a good mood, so I will paste it together, haha. For better understanding, each file is separated by "# ------ #", and each file must have executable permissions ):
#------------------------------------------------#
# File:
#/Etc/PPP/GPRS
#
# Description:
# This file holds the serial cable and IrDA pppd options for GPRS phones
# Tell the PPP-daemon to accept mangled data
Receive-all
# Give some debug info
Debug
Kdebug 7
# Print out all the option values which have been set.
Dump
# Serial device to which terminal is connected;
# With serial port (COM1 in Windows) Use/dev/ttys0
# And with IrDA use/dev/ircomm0.
#/Dev/ircomm0 # IrDA
/Dev/ttyam1 # Serial cable (Note: You need to change the local serial port to the real one, such as/dev/ttys0)
# Serial Port line speed
115200
# Turn off waiting of carrier detect or flow control signal
# With IrDA it shoshould be disabled with nocrtscts option.
-Crtscts # Serial Cable
# Nocrtscts # IrDA
# Ignore carrier detect signal from the modem
Local
# To keep pppd on the terminal
Nodetach
# Accept the peer's idea of our local IP Address
Ipcp-Accept-Local
# Accept the peer's idea of its (remote) IP Address
Ipcp-Accept-remote
# IP addresses:
#-Accept peers idea of our local address and set address peer as 10.0.0.1
# (Any address wocould do, since ipcp gives 0.0.0.0 to it)
#-If you use the 10. network at home or something and pppd rejects it,
# Change the address to something else
0.0.0.0: 0.0.0.0
-Chap
#-Pap
# Pppd must not propose any IP address to the peer!
# Noipdefault
# No PPP Compression
Novj
Novjccomp
Papcrypt
Nodeflate
# No PPP magic number
Nomagic
# No Asyn cmap
Asyncmap 0
# Add default route
Defaultroute
# Connect script
Connect/etc/PPP/GPRS-connect-chat
# Disconnect script
Disconnect/etc/PPP/GPRS-Disconnect-chat
#------------------------------------------------#
# File:
#/Etc/PPP/options
#
Receive-all
Nopcomp
Noaccomp
Nomagic
Debug
# Mobile is connected to the first serial port
/Dev/ttyam1 (Note: You need to change this part to the actual serial port, such as/dev/ttys0)
115200
Connect '/usr/sbin/chat-e-f/etc/PPP/GPRS-connect-chat-V'
Disconnect '/usr/sbin/chat-e-f/etc/PPP/chat-Disconnect-V'
Modem
Noauth
Noccp
Novj
Novjccomp
Defaultroute
Noipdefault
User Foo (Note: This is very important. At that time, it was so painful. In Windows, you do not need to use a user name for dialing, but Linux does not. Therefore, we have to lie to Linux and set a false one. For more information, see/etc/PAP-Secrets)
Lock
#------------------------------------------------#
#! /Bin/sh
#
# File:
#/Etc/PPP/chat-GPRS-Connect
#
# Description:
# Chat script to open Sonera GPRS Service with GPRS phones. If PPP
# Negotiation stils, try restarting the phone. To try with other GPRS
# Operator setting, change the PDP contex setting. The settings work
# All Ericsson models, but Nokia 8310 does not suppor QoS parameters
# At commands, so just delete those lines and it'll work.
#
# Set PDP context cid = 1, protocol = IP, APN = Internet:
# At + cgdcont = 1, "ip", "Internet", "", 0, 0
#
# Set cid = 1 QoS requirements from the network, not supported by 8310:
# At + cgqreq =
#
# Set cid = 1 minimum acceptable QoS parameters, not supported by 8310:
# At + cgqmin =
#
# 'Call' cid = 1 (activate PDP context one, perform GPRS attach ):
# ATD * 99 *** 1 #
#
# Ogin:-break-ogin :/
# Timeout 5/
# Assword :/
# Say "/nlogged in OK.../N "/
# The actual chat script:
Exec chat/
Timeout 5/
Echo on/
Abort '/nbusy/R '/
Abort '/nerror/R '/
Abort '/Nno answer/R '/
Abort '/Nno carrier/R '/
Abort '/Nno dialtone/R '/
Abort '/nringing/R/n/R/nringing/R '/
''At/
Timeout 12/
Say "Press CTRL-C to close the connection at any stage! "/
Say "/ndefining PDP context.../N "/
OK at + cgatt? /
OK at + cgatt = 1/
OK at + cgatt? /
OK 'at + cgdcont = 1, "ip "'/
OK at + cgqreq =/
OK at + cgact = 1, 1/
OK atdt * 99 *** 1 #/
Timeout 120/
Say "/nwaiting up to 2 mintues for connect.../N "/
Connect ""/
Say "/nconnected. Now logging in.../N "/
Say "/NIF the following PPP negotiations fail,/N "/
Say "Try restarting the phone./N"
# Note: the PDP context may vary depending on your cat. Check its manual.
#------------------------------------------------#
#! /Bin/sh
#
# File:
#/Etc/PPP/chat-GPRS-Disconnect
#
# Send break
Exec/usr/sbin/chat-v-s/
Abort "busy "/
Abort "error "/
Abort "No dialtone "/
Say "/nsending break to the modem/N "/
""/K "/
"++ Ath "/
Say "/NPDP context detached/N"
#------------------------------------------------#
# File:
#/Etc/PPP/chap-secrets
# Secrets for authentication using chap
# Client server secret IP addresses
####### RedHat-config-network will overwrite this part !!! (BEGIN )##########
####### RedHat-config-network will overwrite this part !!! (End )############
#------------------------------------------------#
# File:
#/Etc/PPP/PAP-secrets
# Secrets for authentication using pap
# Client server secret IP addresses
####### RedHat-config-network will overwrite this part !!! (BEGIN )##########
####### RedHat-config-network will overwrite this part !!! (End )############
Foo *""*
The remaining files are those about IP-down, IP-up, ip-down.ipv6to4, ip-up.ipv6to4, nothing to say,
Finally, I only wish you good luck.