2009-07-10 02:32:42     ppp simple serial link problem

Document created by Aaronwu Employee on Aug 16, 2013
Version 1Show Document
  • View in full screen mode

2009-07-10 02:32:42     ppp simple serial link problem

Claudio Cunha (SWITZERLAND)

Message: 76997   

 

Hello,

 

I'm trying to make a serial link like discribed on http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:ppp but it doesn't work.

 

I've modified the linux-kernel and uclinux dist options and I've make the files options that I've put in /etc/ppp folder and in .../uclinux-dist/romfs/etc/ppp folder.

 

In options file /etc/ppp (in the host):

 

lock

crtscts

10.0.0.2:10.0.0.209

linkname ppp0

local

debug

nodefaultroute

/dev/ttyUSB1

57600

-detach 

 

In options file uclinux-dist/romfs/etc/ppp (in the board) :

 

lock

crtscts

10.0.0.209:10.0.0.2

linkname ppp0

local

debug

nodefaultroute

/dev/ttySS0

57600

-detach

 

My hardware setup is a board very similar to the Blackfin BF533 Ez-Kit, with sport emulated uart. And I use the sport0 at 57600 bauds, in the other side there is a pc linux with usb-serial converter...

 

 

When I try to make the link from the board this message apperars:

 

root:/> pppd                                                                  

using channel 7                                                               

Using interface ppp0                                                          

Connect: ppp0 <--> /dev/ttySS0                                                

Warning - secret file /etc/ppp/pap-secrets has world and/or group access      

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb58e9a94> <pcomp> <accomp>]  

LCP: timeout sending Config-Requests                                          

Connection terminated.                                                        

Modem hangup              

 

And when I try to make the link from the host this message appears:

 

y007lx05:/etc/ppp# pppd

using channel 7

Using interface ppp0

Connect: ppp0 <--> /dev/ttyUSB1

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x99d35906> <pcomp> <accomp>]

LCP: timeout sending Config-Requests

Connection terminated.

Modem hangup

 

 

Could you help me please ?

 

My kernel version is : kernel:    Linux release 2.6.28.9-ADI-2009R1-pre-gb4ee7d3-dirty, build #37 Thu 9

toolchain: bfin-linux-uclibc-gcc release gcc version 4.1.2 (ADI svn)          

user-dist: release 2008R1, build #12 Thu Jul 9 13:53:31 CEST 2009  

 

 

Thanks in advance!

 

Best regards

 

Claudio

TranslateQuoteReplyEditDelete

 

 

2009-07-10 02:47:24     Re: ppp simple serial link problem

Mike Frysinger (UNITED STATES)

Message: 76998   

 

disable the cts/rts option

QuoteReplyEditDelete

 

 

2009-07-10 03:21:27     Re: ppp simple serial link problem

Claudio Cunha (SWITZERLAND)

Message: 76999   

 

Hi Mike,

 

I've put the option noctsrcts and i've deleted ctsrcts option but in these two cases the same problem apperas...

 

Thanks to suggest me other solutions, please...

 

 

 

Best regards,

 

Claudio

TranslateQuoteReplyEditDelete

 

 

2009-07-10 03:39:26     Re: ppp simple serial link problem

Mike Frysinger (UNITED STATES)

Message: 77001   

 

the messages are probably comming from the debug option you enabled

 

the SPORT UART might not be stable enough to support this.  try first with the normal UART to make sure things are working properly.

 

also make sure your software versions are in sync like the FAQ says.

QuoteReplyEditDelete

 

 

2009-07-14 04:36:52     Re: ppp simple serial link problem

Jean-Christian de Rivaz (SWITZERLAND)

Message: 77193   

 

Claudio,

 

If you only start the pppd on the board you should see the PPP packets on the host with minicom. A PPP packet look like this:

 

~9}#ÀZ}!}!} }9}"}k} }r} }'}%}zt2-·}'}"}

 

The pppd will try 10 times to negociate the link with the LCP protocol as you have see in your log. If you don't see the PPP packets, then your link is probably broken.

 

Regards,

 

Jean-Christian

QuoteReplyEditDelete

 

 

2009-07-14 09:23:39     Re: ppp simple serial link problem

Claudio Cunha (SWITZERLAND)

Message: 77219   

 

Hello Mr. Jean-Christian,

 

I've resolved the problem. I had a mistake in the config of the Linux kernel. I don't know why, but the SPORT-UART transmission rate was at 9600 bauds instead of 57600...

 

Thanks a lot for your help!

 

Best regards and Good holydays.

 

Claudio

TranslateQuoteReplyEditDelete

 

 

2009-07-14 23:16:45     Re: ppp simple serial link problem

Sonic Zhang (CHINA)

Message: 77280   

 

You can change the baud rate of sport_uart by "stty -F /dev/ttySS0 ispeed 57600 ospeed 57600"

Attachments

    Outcomes