2011-03-18 22:48:02     Help: pppd question on BF561?

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

2011-03-18 22:48:02     Help: pppd question on BF561?

HappyBlackfin Blackfin (CHINA)

Message: 99053   

 

DSP: BF561 0.5

 

OS: uclinux-2009R1RC5

 

I want to connect DSP Board & PC Host via serial port.

 

On my board using a ST16C2552 as uart external resouce.

 

Ref the   docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:ppp, but connect failed.

 

Boot message:

 

Serial: 8250/16550 driver1 ports, IRQ sharing disabled

serial8250.0: ttyS0 at MMIO 0x2c000000 (irq = 84) is a 16550A

Serial: Blackfin serial driver

bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART

 

Test the device ttyS0 it's work.

 

 

Host Linux pppd option file:

 

lock

nocrtscts

10.0.0.2:10.0.0.209

linkname ppp0

local

nodefaultroute

/dev/ttyUSB1

115200

debug

-detach

 

BF561 Board pppd option file:

 

lock

nocrtscts

10.0.0.209:10.0.0.2

linkname ppp0

local

nodefaultroute

/dev/ttyS0

115200

debug

-detach

 

Step1: Start the pppd on BF561 Board

 

Step2: Start the pppd on Host Linux

 

The message:

 

BF561 Board:

 

root:/> pppd

using channel 1

Using interface ppp0

Connect: ppp0 <--> /dev/ttyS0

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

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

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

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

rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth pap> <magic 0x6264a89f> <pcomp> <accomp>]

No auth is possible

sent [LCP ConfRej id=0x1 <auth pap>]

rcvd [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x6264a89f> <pcomp> <accomp>]

sent [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x6264a89f> <pcomp> <accomp>]

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

rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4df0d9cb> <pcomp> <accomp>]

sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.0.0.209>]

rcvd [LCP TermReq id=0x3 "peer refused to authenticate"]

LCP terminated by peer (peer refused to authenticate)

sent [LCP TermAck id=0x3]

Connection terminated.

Modem hangup

 

 

Host Linux:

 

tony@T410i:~$ pppd

using channel 1

Using interface ppp0

Connect: ppp0 <--> /dev/ttyUSB1

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

rcvd [LCP ConfRej id=0x1 <auth pap>]

sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0x6264a89f> <pcomp> <accomp>]

rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0x6264a89f> <pcomp> <accomp>]

rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x4df0d9cb> <pcomp> <accomp>]

sent [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x4df0d9cb> <pcomp> <accomp>]

peer refused to authenticate: terminating link

sent [LCP TermReq id=0x3 "peer refused to authenticate"]

rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 10.0.0.209>]

Discarded non-LCP packet when LCP not open

rcvd [LCP TermAck id=0x3]

Connection terminated.

 

Why & How to do ?

 

Thanks!

QuoteReplyEditDelete

 

 

2011-03-18 23:25:37     Re: Help: pppd question on BF561?

Mike Frysinger (UNITED STATES)

Message: 99054   

 

how are you connecting to the Blackfin board ?  are you talking to it over the console on ttyBF0 ?

QuoteReplyEditDelete

 

 

2011-03-19 04:39:26     Re: Help: pppd question on BF561?

HappyBlackfin Blackfin (CHINA)

Message: 99065   

 

ttyBF0 as the console, pppd using the ttyS0(UART CHIP Channel A).

QuoteReplyEditDelete

 

 

2011-03-21 00:28:15     Re: Help: pppd question on BF561?

Mike Frysinger (UNITED STATES)

Message: 99080   

 

and you're sure that ttyS0 is stable ?  you can read/write data to it and send/recv it without errors ?

 

pppd must be run as root.  non-root users cannot create/modify network interfaces like ppp0.

Attachments

    Outcomes