Skip to contentSkip to conversation

pppd fails when init connection with kernel 2-6-28.10

DISCUSSION Sonia Martinez 2 participants 3 messages Apr 6, 2010 – Apr 8, 2010 PPP protocol drivers and compressors

lore
Share & tools
lore
#0 lore raw

Hi all,

I was using linux kernel 2.6.22 with pppd 2.4.4 in an embedded hardware (powerpc architecture) with a GPRS serial module. I was able to make a GPRS connection, but now I've upgraded kernel version to 2-6-28.10 and pppd to 2.4.5 and it doesn't work. These are the log messages after sending the ATD*99***1# command, when pppd is started:

2000/03/21,18:51:26 daemon.warn pppd[772]: Warning: couldn't open ppp database /var/run/ppp/pppd2.tdb
2000/03/21,18:51:26 daemon.notice pppd[772]: pppd 2.4.5 started by root, uid 0
2000/03/21,18:51:26 daemon.err pppd[773]: Fatal signal 11 2000/03/21,18:51:26 daemon.info pppd[773]: Exit. 2000/03/21,18:51:26 daemon.err pppd[772]: Couldn't get channe: Input/output error
2000/03/21,18:51:26 daemon.debug pppd[772]: Script pppd (charshunt) finished (pid 773), status = 0x7f
2000/03/21,18:51:26 daemon.info pppd[772]: Exit. 2000/03/21,18:51:26 user.err iod: process: The process 772 returned an
error: 1

The configuration file is:

notty
local
lock
debug
ipcp-accept-local
ipcp-accept-remote
noipdefault
novj
noccp
nopcomp
default-asyncmap
receive-all
ifname cell0
child-timeout 0
user "JOHN"
usepeerdns
defaultroute
lcp-echo-interval 30
lcp-echo-failure 2

Has somebody the same problem with this kernel? I've tested the 2.4.4 and has the same problem, so I guess is the kernel version.

Thank you very much in advanced,

Best regards,

Sonia

Signature · 2 lines
View this message in context: http://old.nabble.com/pppd-fails-when-init-connection-with-kernel-2-6-28.10-tp28152335p28152335.html
Sent from the linux-ppp mailing list archive at Nabble.com.
#1 lore raw
Quoted 12 lines · Sonia Martinez

I was using linux kernel 2.6.22 with pppd 2.4.4 in an embedded hardware (powerpc architecture) with a GPRS serial module. I was able to make a GPRS connection, but now I've upgraded kernel version to 2-6-28.10 and pppd to 2.4.5 and it doesn't work. These are the log messages after sending the ATD*99***1# command, when pppd is started:

2000/03/21,18:51:26 daemon.warn pppd[772]: Warning: couldn't open ppp database /var/run/ppp/pppd2.tdb
2000/03/21,18:51:26 daemon.notice pppd[772]: pppd 2.4.5 started by root, uid 0
2000/03/21,18:51:26 daemon.err pppd[773]: Fatal signal 11 2000/03/21,18:51:26 daemon.info pppd[773]: Exit.

...

Quoted 3 lines

Has somebody the same problem with this kernel? I've tested the 2.4.4 and has the same problem, so I guess is the kernel version.

http://en.wikipedia.org/wiki/Signal_11

The problem is not the kernel - you either have faulty hardware, or a bug in pppd, or in one of the libraries it uses (or in the compiler you are using).

author
#2 lore raw
In reply to Sonia Martinez

Adding traces to pppd all I can see is a warning in pppd/main.c

pppdb = tdb_open(_PATH_PPPDB, 0, 0, O_RDWR|O_CREAT, 0644);
Warning: couldn't open ppp database /var/run/ppp/pppd2.tdb

Although the file exists in the file system:

# ls -l /var/run/ppp/
-rw-r--r--    1         0 pppd2.tdb

And the error getting the channel with ioctl in pppd/sys_linux.c in function generic_establish_ppp:

if (ioctl(fd, PPPIOCGCHAN, &chindex) = -1) {
	    error("Couldn't get channel %d from %d",chindex,fd );
	    goto err;
	}

But I don't know if this error is causing the signal or only an effect of the signal,

Thank you in advance,

Sonia

Quoted 42 lines · Charlie Brady

De: Charlie Brady <[email protected]>
Asunto: Re: pppd fails when init connection with kernel 2-6-28.10
Para: "Sonia Martinez" <[email protected]>
CC: [email protected]
Fecha: martes, 6 de abril, 2010 18:47

Quoted 1 line · Sonia Martinez

I was using linux kernel 2.6.22 with pppd 2.4.4 in an

embedded hardware

Quoted 1 line

(powerpc architecture) with a GPRS serial module. I

was able to make a GPRS

Quoted 1 line

connection, but now I've upgraded kernel version to

2-6-28.10 and pppd to

Quoted 1 line

2.4.5 and it doesn't work. These are the log messages

after sending the

Quoted 3 lines

ATD*99***1# command, when pppd is started:

2000/03/21,18:51:26  daemon.warn pppd[772]:

Warning: couldn't open ppp

Quoted 2 lines

database /var/run/ppp/pppd2.tdb
2000/03/21,18:51:26 daemon.notice pppd[772]: pppd

2.4.5 started by root, uid

Quoted 2 lines

0
2000/03/21,18:51:26 daemon.err pppd[773]: Fatal signal

11

Quoted 1 line

2000/03/21,18:51:26 daemon.info pppd[773]: Exit.

...

Quoted 2 lines

Has somebody the same problem with this kernel? I've

tested the 2.4.4 and

Quoted 1 line

has the same problem, so I guess is the kernel

version.

http://en.wikipedia.org/wiki/Signal_11

The problem is not the kernel - you either have faulty hardware, or a bug
in pppd, or in one of the libraries it uses (or in the compiler you are
using).