[beagleboard] PPP error

Hi,
while I was trying to do a pppd dial-up through a 3G modem, the following messages
keep poping up on my console.
and ifconfig did not show any ppp0 interface (think the dial-up fail but I don’t know how to check).

[ 67.203918] slhc: exports duplicate symbol slhc_toss (owned by kernel)
[ 67.230133] ppp_generic: exports duplicate symbol ppp_unregister_compressor (owned by kernel)
[ 67.278167] slhc: exports duplicate symbol slhc_toss (owned by kernel)
[ 67.304260] ppp_generic: exports duplicate symbol ppp_unregister_compressor (owned by kernel)
[ 67.343627] slhc: exports duplicate symbol slhc_toss (owned by kernel)
[ 67.366790] ppp_generic: exports duplicate symbol ppp_unregister_compressor (owned by kernel)
[ 70.404815] slhc: exports duplicate symbol slhc_toss (owned by kernel)

can anyone help ?

I am using kernel 2.6.29 with Angstrom distribution.
Thanks!

  • Thomas

I don't know anything about the messages you posted. I know that pppd has
the ability to create a log file. If you didn't already it might be worth
it to make sure the log file is being generated and check it for more
information.

David.

In fact, that is another issue I face.

In my ubuntu pc, I can use plog to see the pppd progress, or look at the log at /var/log/syslog.

In beagleboard however, there’s no plog, and I could not find the syslog as well.

Any idea how to enable one of those ?

p/s: I was using OE to build this Angstrom distribution.

  • Thomas

No idea how to enable those. I also did this under Angstrom. What I did
was to use the command line to tell pppd where I wanted it to put its log
then view the log with cat ppplog.txt |more

David.

Just wanted to clarify that the log was called ppplog.txt because that is
what I told pppd to name it. Not sure what it is by default.

David.

thanks David.

here are my screen dump after “enabling” the pppd log:

A Google search for "LCP terminated by peer" turned up some stuff that may
or may not help you. You might have to wait until someone that knows more
about the kernel modules can tell you if that is the problem.

You can try lsmod to see if the ppp_generic and slhc modules are there.
You can also try to look in /proc/config.gz to see if they were compiled
into the kernel, but I don't think they would be by default.

That's about all I know.

David.

Try turning on debug via the command line i.e.
pppd debug logfile /tmp/pppd.trace nodetach call FOOBAR

Take a look at /tmp/pppd.trace afterwards and see what it is unhappy about.

You could also take a peek at the slides I did for a quick talk on PPP
debugging. They are in my downloads section of my webpage.

it look like the server is not happy about the dns request, and terminate the connection right after.
did I miss any thing?

it look like the server is not happy about the dns request, and terminate
the connection right after.
did I miss any thing?

That is one possibly. Remove the "usepeerdns" and see if it helps.

Based on your trace, the other possibilities are -

Your init string is wrong and you've connected to a service you are not
authorized for. Check your chat script and compare it to a working setup.

The username/password you have use may not be setup for IP traffic. Or you
have manage to confuse the other end with your choice of to refuse CHAP.

Unfortunately, there are no standards for these things; each carrier is
different. Even within a carrier there are differences depending on your
billing details and/or history. (i.e. for Tmobile US, there are different
settings depending on what plan you are on; for ATT US, it can vary depending
on if you were an orange or a blue customer originally, etc.)

Hi,
thanks guys! the pppd finally works on my beagleboard with usb connection to a Huawei E220 modem.
It was indeed some misconfiguration in my chat connect script that cause the remote server to refuse the connection.
I may send my chat config files to you if anyone of you are interested.

And the kernel messages reported earlier does not seem to cause any harm… at least for now :slight_smile:

[ 67.203918] slhc: exports duplicate symbol slhc_toss (owned by kernel)
[ 67.230133] ppp_generic: exports duplicate symbol ppp_unregister_compressor (owned by kernel)

  • Thomas

I'm trying to same thing with leopardboard
could you please send me your ppp configuration

regards

I used the 4 scripts below.
Hope this helps. Let me know if you have any improvements :slight_smile:

/etc/ppp/options

Thanks alot Tomas,
Today I'm just able to communicate over UART with 3g SIMCOM SIM5218E
module with my leopardboard.

Below is the output, however no response to any keypress/data from the
SIM5218E module.

/ # uname -
a
Linux dm350 2.6.29-ridgerun-davinci1 #4 PREEMPT Mon Dec 21 21:16:14
EET 2009 ax
/ # stty 115200 < /dev/
ttyS1
/ # microcom -s 115200 /dev/
ttyS1
Opened
Device
put device to raw
mode
set device speed
115200
put stdin to raw mode (if stdin is a
TTY),

START

+CME ERROR: SIM
failure

+CME ERROR: SIM

This is not a Beagle board problem.

Your SIM has a "PIN lock".

You should add a command like AT+CPIN=2311 before continuing with ATD command (change 2311 to your PIN).

alf

Dear Thomas & Dear Alfonso

Thanks to your comments not I'm able to make it work to some extend
However there is a little problem and the connection drops.
with the following message

Jan 1 00:03:42 dm350 daemon.warn pppd[355]: IPCP: timeout sending
Config-
Requests
Jan 1 00:03:42 dm350 daemon.debug pppd[355]: sent [LCP TermReq id=0x2
"No network protocols
running"]
Jan 1 00:03:45 dm350 daemon.debug pppd[355]: sent [LCP TermReq id=0x3
"No network protocols
running"]
Jan 1 00:03:48 dm350 daemon.notice pppd[355]: Connection
terminated.

Any of your comments are most valuable

Regards
Tunca

I paste the log messages from /var/log/messages on the leopardboard.

I encountered this issue previously when the modem was not hang up properly from previous connection.

Same thing may have happened in your case:

Jan 1 00:03:53 dm350 daemon.warn pppd[355]: disconnect script failed

You may want to make sure the modem was neatly hangup before attempting to dial up again.

Good luck !

  • Thomas

I recenly able to connect to internet with my leopardboard.
There was 2 problems, first was I somehow disabled RF transmission on
the modem, and the second was OK AT+CGDCONT=1,"IP","mgd" was wrong. I
changed it to "mgd" then everything worked like a charm.

Thanks a lot thomas for the ppp config scripts.

Hi Thomas,
I am also trying to connect 3g usb modem to Beagle Board -Xm Angstrom distribution running on it. With help of your script it worked fine. After working few day it was not connecting through pppd connection. Same USB 3G modem working fine on the other BB-Xm with same setting on the SD Card.

it was loading ppp drivers fine…

root@beagleboard:/etc/ppp/peers# ls /dev/
autofs network_latency tty13 tty52
block network_throughput tty14 tty53
bsg null tty15 tty54
btrfs-control ppp tty16 tty55
bus psaux tty17 tty56
cdrom ptmx tty18 tty57
char pts tty19 tty58
cmem ram0 tty2 tty59
console ram1 tty20 tty6
core ram10 tty21 tty60
cpu_dma_latency ram11 tty22 tty61
disk ram12 tty23 tty62
dsplink ram13 tty24 tty63
fb0 ram14 tty25 tty7
fb1 ram15 tty26 tty8
fd ram2 tty27 tty9
full ram3 tty28 ttyO0
fuse ram4 tty29 ttyO1
i2c-1 ram5 tty3 ttyO2
i2c-2 ram6 tty30 ttyO3
i2c-3 ram7 tty31 ttyS0
initctl ram8 tty32 ttyS1
input ram9 tty33 ttyS2
kmem random tty34 ttyS3
kmsg rfkill tty35 ttyUSB0
log rtc0 tty36 ttyUSB1
loop-control sda tty37 ttyUSB2
loop0 sdma tty38 ttyUSB3
loop1 serial tty39 uinput
loop2 sg0 tty4 urandom
loop3 sg1 tty40 usbdev1.1
loop4 shm tty41 usbdev1.2
loop5 snd tty42 usbdev1.3
loop6 sr0 tty43 usbdev1.4
loop7 stderr tty44 usbdev1.6
lpm0 stdin tty45 usbmon0
mapper stdout tty46 usbmon1
mem tty tty47 tty0 tty48 1
mmcblk0p1 tty1 tty49 vcsa
mmcblk0p2 tty10 tty5 vcsa1
mqueue tty11 tty50 watchdog
net tty12 tty51 zero

root@beagleboard:~# pppd logfile pppd.txt call provider
[ 231.446746] PPP generic driver version 2.4.2

root@beagleboard:/etc/ppp/peers# lsmod

Module Size Used by
ppp_generic 23429 0

root@beagleboard:~# cat pppd.txt
pppd options in effect:
debug # (from /etc/ppp/peers/provider)
nodetach # (from /etc/ppp/peers/provider)
idle 0 # (from /etc/ppp/peers/provider)
logfile pppd.txt # (from command line)
dump # (from /etc/ppp/peers/provider)
noauth # (from /etc/ppp/peers/provider)
user 6597462958 # (from /etc/ppp/peers/provider)
usehostname # (from /etc/ppp/peers/provider)
/dev/ttyUSB3 # (from /etc/ppp/peers/provider)
115200 # (from /etc/ppp/peers/provider)
lock # (from /etc/ppp/options)
connect /usr/sbin/chat -v -f /etc/ppp/peers/chat.connect # (from)
disconnect /usr/sbin/chat -v -f /etc/ppp/peers/chat.disconnect # (from)
crtscts # (from /etc/ppp/peers/provider)
modem # (from /etc/ppp/peers/provider)
asyncmap 0 # (from /etc/ppp/options)
lcp-echo-failure 4 # (from /etc/ppp/options)
lcp-echo-interval 30 # (from /etc/ppp/options)
hide-password # (from /etc/ppp/options)
noipdefault # (from /etc/ppp/peers/provider)
defaultroute # (from /etc/ppp/peers/provider)
proxyarp # (from /etc/ppp/options)
usepeerdns # (from /etc/ppp/peers/provider)
noipx # (from /etc/ppp/options)
Can’t read pid from lock file /var/lock/LCK…ttyUSB3
pppd options in effect:
debug # (from /etc/ppp/peers/provider)
nodetach # (from /etc/ppp/peers/provider)
idle 0 # (from /etc/ppp/peers/provider)
logfile pppd.txt # (from command line)
dump # (from /etc/ppp/peers/provider)
noauth # (from /etc/ppp/peers/provider)
user 6597462958 # (from /etc/ppp/peers/provider)
usehostname # (from /etc/ppp/peers/provider)
/dev/ttyUSB3 # (from /etc/ppp/peers/provider)
115200 # (from /etc/ppp/peers/provider)
lock # (from /etc/ppp/options)
connect /usr/sbin/chat -v -f /etc/ppp/peers/chat.connect # (from)
disconnect /usr/sbin/chat -v -f /etc/ppp/peers/chat.disconnect # (from)
crtscts # (from /etc/ppp/peers/provider)
modem # (from /etc/ppp/peers/provider)
asyncmap 0 # (from /etc/ppp/options)
lcp-echo-failure 4 # (from /etc/ppp/options)
lcp-echo-interval 30 # (from /etc/ppp/options)
hide-password # (from /etc/ppp/options)
noipdefault # (from /etc/ppp/peers/provider)
defaultroute # (from /etc/ppp/peers/provider)
proxyarp # (from /etc/ppp/options)
usepeerdns # (from /etc/ppp/peers/provider)
noipx # (from /etc/ppp/options)
Can’t read pid from lock file /var/lock/LCK…ttyUSB3
pppd options in effect:
debug # (from /etc/ppp/peers/provider)
nodetach # (from /etc/ppp/peers/provider)
idle 0 # (from /etc/ppp/peers/provider)
logfile pppd.txt # (from command line)
dump # (from /etc/ppp/peers/provider)
noauth # (from /etc/ppp/peers/provider)
user 6597462958 # (from /etc/ppp/peers/provider)
usehostname # (from /etc/ppp/peers/provider)
/dev/ttyUSB3 # (from /etc/ppp/peers/provider)
115200 # (from /etc/ppp/peers/provider)
lock # (from /etc/ppp/options)
connect /usr/sbin/chat -v -f /etc/ppp/peers/chat.connect # (from)
disconnect /usr/sbin/chat -v -f /etc/ppp/peers/chat.disconnect # (from)
crtscts # (from /etc/ppp/peers/provider)
modem # (from /etc/ppp/peers/provider)
asyncmap 0 # (from /etc/ppp/options)
lcp-echo-failure 4 # (from /etc/ppp/options)
lcp-echo-interval 30 # (from /etc/ppp/options)
hide-password # (from /etc/ppp/options)
noipdefault # (from /etc/ppp/peers/provider)
defaultroute # (from /etc/ppp/peers/provider)
proxyarp # (from /etc/ppp/options)
usepeerdns # (from /etc/ppp/peers/provider)
noipx # (from /etc/ppp/options)
Can’t read pid from lock file /var/lock/LCK…ttyUSB3

can you help what is this eroor indicate …

root@beagleboard:/etc/ppp# cat options
lock
asyncmap 0
lcp-echo-failure 4
lcp-echo-interval 30
hide-password
proxyarp
noipx

root@beagleboard:/etc/ppp/peers# ls
chat.connect host wvdial
chat.disconnect provider wvdial-pipe
root@beagleboard:/etc/ppp/peers# cat provider
connect “/usr/sbin/chat -v -f /etc/ppp/peers/chat.connect”
disconnect “/usr/sbin/chat -v -f /etc/ppp/peers/chat.disconnect”
/dev/ttyUSB3
115200
debug
nodetach
dump
noauth
idle 0
user
usehostname
crtscts
modem
noipdefault
defaultroute
usepeerdns

root@beagleboard:/etc/ppp/peers# cat chat.connect
ABORT BUSY ABORT ‘NO CARRIER’ ABORT VOICE ABORT ‘NO DIALTONE’ ABORT 'NO DIAL TOD
‘’ ATZ
OK ATE1
OK AT+CGATT=0
OK AT+CGDCONT=1,“IP”,“tatadocomo3g”
OK AT+CGATT=1
OK-AT-OK ATDT*99#
CONNECT ’ ’

root@beagleboard:/etc/ppp/peers# cat chat.disconnect
TIMEOUT 5
‘NO CARRIER’ ATH
OK AT+CGATT=0
OK ATZ

same script and same USB 3G modem working fine on the other board…

thank you…