2009-08-07 10:22:00     pppd and uclinux

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

2009-08-07 10:22:00     pppd and uclinux

Roland Laurès (FRANCE)

Message: 78510   

 

Hi,

 

I made a working config for my pc (ubuntu 9.04) to use a serial GPRS modem (Telit one). The scripts allow my pc to use internet, but when I use those scripts on the blackfin uclinux, the modem hangup directly after the conection has been established and some message gets exchanged :

 

root:/etc/ppp> pppd -d -detach call telit-sfr

Serial connection established.

using channel 14

Using interface ppp0

Connect: ppp0 <--> /dev/ttyBF1

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

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

rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>]

sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xa7d33c6b>]

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

No auth is possible

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

rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0xa7d33c6b>]

rcvd [LCP TermReq id=0x2 00 00 00 00 00 00]

sent [LCP TermAck id=0x2]

sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xa7d33c6b>]

 

 

 

Then it keeps on saying the last line (since the modem has hanged up, it doesn\'t reply anymore to ppp mesages).

 

I guess there is some option missing in the ppp I compiled. I follow this little tutorial of yours :

 

  docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:ppp#configure_pppd

 

The difference I made was to add BSD compression since my computer loaded this module to make the modem work.

 

pap-noflow

telit-sfr

QuoteReplyEditDelete

 

 

2009-08-10 03:14:58     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78544   

 

ok my answer was there :

 

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

No auth is possible

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

 

the blackfin is unable to use pap authentication... then the modem terminate the connection...

 

I\'ll have to find how to include the pap layer.

QuoteReplyEditDelete

 

 

2009-08-10 07:58:04     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78555   

 

Hi,

 

Can anybody help ? I updated to 2009R1-RC2 to allow me choosing the radius plugin to have the pap authentication. But ppp still refuse to use pap authentication... I don\'t know why, it doesn\'t seems to me that I have disabled it in my configuration. Then I do not understand why ppp doesn\'t want to use it...

QuoteReplyEditDelete

 

 

2009-08-10 14:54:29     Re: pppd and uclinux

Terry Markovich (UNITED STATES)

Message: 78576   

 

Can you post your /etc/ppp/options file?  And have you set up /etc/ppp/pap-secrets file?  I usually set up a /etc/ppp/pap-secrets and /etc/ppp/chap-secrets file.  I have not needed to set up RADIUS, as it is not needed for pap or chap.

 

Terry

QuoteReplyEditDelete

 

 

2009-08-10 14:58:09     Re: pppd and uclinux

Terry Markovich (UNITED STATES)

Message: 78577   

 

Ok, I see that you did post it.  Make sure that you have a "name XXXX" line in your ppp config file, and chmod 600 your pap-secrets file.

QuoteReplyEditDelete

 

 

2009-08-11 06:41:24     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78617   

 

Hi, thanks for your replies,

 

I did change my options file which was the default one. I copied the entries from my working configuration from my laptop. Which i just post in this message. I repost too my other configuration files then you can take a complete look on this configuration... This is giving this output :

 

root:/> pppd -d -detach call telit-sfr

Serial connection established.

using channel 1

Using interface ppp0

Connect: ppp0 <--> /dev/ttyBF1

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

rcvd [LCP ConfRej id=0x1 <pcomp> <accomp>]

sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xd0f5bdfc>]

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

No auth is possible

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

rcvd [LCP ConfAck id=0x2 <asyncmap 0x0> <magic 0xd0f5bdfc>]

rcvd [LCP TermReq id=0x2 00 00 00 00 00 00]

sent [LCP TermAck id=0x2]

sent [LCP ConfReq id=0x2 <asyncmap 0x0> <magic 0xd0f5bdfc>]

 

pap-secrets

pap-noflow

telit-sfr

options

QuoteReplyEditDelete

 

 

2009-08-11 06:42:49     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78618   

 

Is there no media to get more meaning to the Auth not possible thing ? I mean the reason why pppd decide that it is not possible ? I guess the clue is here :/

QuoteReplyEditDelete

 

 

2009-08-11 09:35:13     Re: pppd and uclinux

Terry Markovich (UNITED STATES)

Message: 78661   

 

Have you tried the debug option?  It usually gives a lot more info

QuoteReplyEditDelete

 

 

2009-08-11 12:33:00     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78669   

 

The output doesn't change at all with debug. I think the -d option I put in the command line had the same effect.

QuoteReplyEditDelete

 

 

2009-08-11 17:24:05     Re: pppd and uclinux

Terry Markovich (UNITED STATES)

Message: 78676   

 

So, dumb question, but does /usr/sbin/chat exist?

QuoteReplyEditDelete

 

 

2009-08-11 22:50:30     Re: pppd and uclinux

Yi Li (CHINA)

Message: 78691   

 

You can configure uclinux-dist to build "chat":

 

Miscellaneous Applications --->

  [*] chat

 

QuoteReplyEditDelete

 

 

2009-08-12 03:11:56     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78719   

 

Of course, chat is integrated. It is needed to establish the connection with AT commands. Without I wouldn't get LPC answer from my modem.

QuoteReplyEditDelete

 

 

2009-08-14 05:58:24     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78870   

 

Ok, I find out by looking at the sources :

 

The pppd version you include in your distribution doesn't support the <<user "toto@toto">> as both user and password definition. We need to add <<password "toto">> line to allow PAP authentication running correctly.

QuoteReplyEditDelete

 

 

2009-08-14 06:04:40     Re: pppd and uclinux

Yi Li (CHINA)

Message: 78871   

 

Great! What is the pppd version you are using? Maybe we need to upgrade pppd.

 

-Yi

QuoteReplyEditDelete

 

 

2009-08-14 13:41:36     Re: pppd and uclinux

Mike Frysinger (UNITED STATES)

Message: 78909   

 

we already have the latest release in our dist

QuoteReplyEditDelete

 

 

2009-08-17 04:10:11     Re: pppd and uclinux

Roland Laurès (FRANCE)

Message: 78943   

 

Ok the version on my PC is 2.4.5 and the version on the 2008R1.5-RC3 and on the 2009R1-RC2 is 2.4.4.

 

Sincerly, I do not think this is the point... I really don't know. Perhaps on my laptop, a password variable is defined and used... I don't know. Or perhaps an other element of the system tell pppd a password equivalent, which i didn't include on the compilation of the uClinux...

QuoteReplyEditDelete

 

 

2009-08-17 15:04:37     Re: pppd and uclinux

Mike Frysinger (UNITED STATES)

Message: 78961   

 

ppp 2.4.5 isnt released.  some distros have been taking live snapshots from upstream git repo and packaging that.

QuoteReplyEditDelete

 

 

2009-10-28 15:44:17     Re: pppd and uclinux

y b (FRANCE)

Message: 81826   

 

i had a similar problem with my telit module, i have added AT#GAUTH=0 in the chat script to make it work, explanations are  in the telit AT ref. guide. good luck

QuoteReplyEditDelete

Attachments

Outcomes