HI,
I am currently working on OMAPl137 board & i am trying to make pppd work on OMAPl137 board using linux platform.
I have compiled the ppp-2.4.5 deamon for linux 2.6.33 using CodeSourcery toolset & i have also compiled kernel with following PPP options
CONFIG_PPP=y
CONFIG_PPP_MULTILINK=y
CONFIG_PPP_FILTER=y
CONFIG_PPP_ASYNC=y
CONFIG_PPP_SYNC_TTY=y
CONFIG_PPP_DEFLATE=y
CONFIG_PPP_BSDCOMP=y
CONFIG_PPP_MPPE=y
CONFIG_PPPOE=y
CONFIG_PPPOATM=y
CONFIG_PPPOL2TP=y
CONFIG_HDLC=y
CONFIG_HDLC_RAW=y
CONFIG_HDLC_RAW_ETH=y
CONFIG_HDLC_CISCO=y
CONFIG_HDLC_FR=y
CONFIG_HDLC_PPP=y
CONFIG_HDLC_X25=y
CONFIG_ISDN=y
CONFIG_ISDN_I4L=y
CONFIG_ISDN_PPP=y
CONFIG_ISDN_PPP_VJ=y
CONFIG_ISDN_MPP=y
CONFIG_IPPP_FILTER=y
CONFIG_ISDN_PPP_BSDCOMP=y
CONFIG_ISDN_AUDIO=y
CONFIG_ISDN_TTY_FAX=y
CONFIG_ISDN_X25=y
I am using SIM300 GPRS modem which is connected to the serial port of the OMAPl137 board. By running pppd on OMAPl137 board i am trying to establish ppp link between the OMAL137 board & SIM300 modem. The PPPD configuration used to establish connection is given below.
The pppd options used by me are given below
################################################### PPPD options start ##################################
/dev/ttyS2
115200
ipcp-accept-remote
connect 'chat -v -t3 -f /etc/ppp/peers/gprsconnect'
nodetach
debug
#novjccomp
#nopcomp
#nobsdcomp
novj
noipdefault
#noaccomp
#novj
#nobsdcomp
#novjccomp
#nopcomp
#noaccomp
noccp
defaultroute
#usepeerdns
asyncmap 0
lock
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
################################################### PPPD options end ##################################
The gprsconnect script used to connect to the SIM300 modem is given below
################################################ gprsconnect script start ################################
ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'ERROR'
'' AT
OK AT+CGATT=1
OK AT+CGDCONT=1,"IP","airtelgprs.com"
OK ATDT*99***1#
################################################ gprsconnect script end ################################
when i run pppd on OMAPl137 board, the ppp connection is terminated by peer
The ppp dump is as follows:
root@arago:/# /usr/sbin/pppd call gprs
Serial connection established.
using channel 12
Using interface ppp0
Connect: ppp0 <--> /dev/ttyS2
rcvd [LCP ConfReq id=0x1 <mru 1600> <auth pap> <magic 0xc3c65c9> <asyncmap 0x0> <pcomp> <accomp>]
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xf71658d4> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <mru 1600> <auth pap> <magic 0xc3c65c9> <asyncmap 0x0> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xf71658d4> <pcomp> <accomp>]
sent [LCP EchoReq id=0x0 magic=0xf71658d4]
Warning - secret file /etc/ppp/pap-secrets has world and/or group access
sent [PAP AuthReq id=0x1 user="arago" password=""]
rcvd [PAP AuthAck id=0x1 "TTP Com PPP - Password Verified OK"]
Remote message: TTP Com PPP - Password Verified OK
PAP authentication succeeded
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>]
rcvd [LCP TermReq id=0x0 "Normal Termination by NCP"]
LCP terminated by peer (Normal Termination by NCP)
sent [LCP TermAck id=0x0]
Connection terminated.
Modem hangup
BUT When i run the above pppd options & script on my Linux PC then ppp link is established, but on OMAPl137 board the above given case occurs & connection get terminated.
If anyone knows how to solve the above problem, Please reply
Regards