This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: PPP support in rootfs

Part Number: AM3358


Tool/software: Linux

Hi,

I have interfaced 3g quectal UC 20 with USB1 port of the Ti 3358 evm board.

I could get up the /dev/ttyUSB interfaces up.

I copied pppd,chat binariesand scripts required for ppp connection ,but when trying to create ppp connection i get following error

root@am335x-evm:~# /usr/sbin/pppd
Script /etc/ppp/net-connect finished (pid 995), status = 0x0
Serial connection established.
using channel 2
Using interface ppp0
Connect: ppp0 <--> /dev/ttyUSB3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup

I am using tisdk-rootfs-image-am335x-evm.tar.xz filesystem from am335x-evm-linux-sdk-bin-05.03.00.07.tar.xz 

Please let me know how to add the ppp support in the root file system and build the root filesystem.

  • Hi,

    Did you configure PPP and SLIP in the kernel config? Did you make any changes to the DTS for the board?

    Is this the board that you are using?

    Link to AM3358 GP-EVM

    Best Regards,

    Schuyler

  • I am using Link to AM3358 GP-EVM  board

    I have enable the ppp configuration in the kernel .

    I have configure usb1 as host in dts file and that is why i am getting the devices up.

    previous i was using ppp configured kernel and root file system which had bare minimum files ,so i was facing the network issue (i.e i was not able to ping localhost itself), but ppp connection was getting up and connect the server using ipaddress but not using names for example

    I was able to ping  8.8.8.8

    but was not able to ping

    I change the root file system  tisdk-rootfs-image-am335x-evm.tar.xz filesystem from am335x-evm-linux-sdk-bin-05.03.00.07.tar.xz  ,

    I was not able to get the devices files /dev/ttyUSB,so I copied my previous kernel to boot folder of the new root file system.

    After coping the kernel,devices are up but not get the ppp connection up.

    Getting following error

    root@am335x-evm:~# /usr/sbin/pppd
    Script /etc/ppp/net-connect finished (pid 995), status = 0x0
    Serial connection established.
    using channel 2
    Using interface ppp0
    Connect: ppp0 <--> /dev/ttyUSB3
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x453e8e8> <pcomp> <accomp>]
    LCP: timeout sending Config-Requests
    Connection terminated.
    Modem hangup

  • Hi,

    keerti jain said:

    I change the root file system  tisdk-rootfs-image-am335x-evm.tar.xz filesystem from am335x-evm-linux-sdk-bin-05.03.00.07.tar.xz  ,

    I was not able to get the devices files /dev/ttyUSB

    Please check if the 3G module kernel driver is enabled. It could be the cause of not seeing /dev/ttyUSB device node.

  • I am able to see the devices but not able to establish ppp connection

  • Hi,

    When you rebuilt the kernel did also you rebuild and install the modules due to the kernel configuration change? The updated modules will need to be installed into the file system that you transitioned to. You will also have to copy the updated DTS file that modified. Could you please provide the changes to the DTS file that you did for USB? Is the 3g quectal UC 20 driver in the kernel or file system?

    We will not be able to assist why you can't use domain names instead of IP addresses. One suggestion though is that you may need to setup name server addresses in /etc/resolv.conf.  Such as editing and adding the IP address you mentioned earlier in the post, nameserver 8.8.8.8.

    Best Regards,

    Schuyler

  • Hi ,

    I copied the modules install and kernel and dts file .

    dts has usb1 configured as host.

    I have the latest kernel,modules ,pppd 2.4.6  binaries but not able to establish ppp connection.

    usb devices are getting up /dev/ttyUSB3.

    I have ppp related .so ppp files in /lib/pppd/2.4.6/ 

    root@am335x-evm:/# cd /lib/pppd/2.4.6/
    root@am335x-evm:/lib/pppd/2.4.6# ls -l
    total 304
    -rwxr-xr-x    1 root     root         17932 Jun 27  2019 minconn.so
    -rwxr-xr-x    1 root     root         26580 Jun 27  2019 openl2tp.so
    -rwxr-xr-x    1 root     root         20300 Jun 27  2019 passprompt.so
    -rwxr-xr-x    1 root     root         18760 Jun 27  2019 passwordfd.so
    -r-xr-x---    1 root     root         58844 Jun 27  2019 pppoatm.so
    -rwxr-xr-x    1 root     root         35872 Jun 27  2019 pppol2tp.so
    -rwxr-xr-x    1 root     root          5456 Jun 27  2019 radattr.so
    -rwxr-xr-x    1 root     root         36384 Jun 27  2019 radius.so
    -rwxr-xr-x    1 root     root          9644 Jun 27  2019 radrealms.so
    -r-xr-x---    1 root     root         17484 Jun 17  2019 rp-pppoe.so
    -rwxr-xr-x    1 root     root         38760 Jun 27  2019 winbind.so
    root@am335x-evm:/lib/pppd/2.4.6#

    I have driver related .ko file as follows

    root@am335x-evm:/lib/modules/4.14.79-ge669d52447# find ./ -name *nf*.ko
    ./kernel/net/netfilter/nf_nat_tftp.ko
    ./kernel/net/netfilter/nf_nat_ftp.ko
    ./kernel/net/netfilter/nf_conntrack.ko
    ./kernel/net/netfilter/nf_conntrack_tftp.ko
    ./kernel/net/netfilter/nf_conntrack_ftp.ko
    ./kernel/net/netfilter/nf_nat.ko
    ./kernel/net/ipv4/netfilter/nf_nat_masquerade_ipv4.ko
    ./kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
    ./kernel/net/ipv4/netfilter/nf_conntrack_ipv4.ko
    ./kernel/net/ipv4/netfilter/nf_defrag_ipv4.ko
    ./kernel/net/bridge/netfilter/ebt_nflog.ko
    root@am335x-evm:/lib/modules/4.14.79-ge669d52447#

    Please let me know configurations for ppp connections establishment in evaluation board.

    I am getting following error while running pppd

    root@am335x-evm:/etc/ppp# pppd
    Script /etc/ppp/net-connect finished (pid 846), status = 0x0
    Serial connection established.
    using channel 3
    Using interface ppp0
    Connect: ppp0 <--> /dev/ttyUSB3
    Warning - secret file /etc/ppp/pap-secrets has world and/or group access
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xb5731db5> <pcomp> <accomp>]
    LCP: timeout sending Config-Requests
    Connection terminated.
    Modem hangup
    
    

  • Hi,

    Unfortunately it doesn't look the symptoms have changed with the kernel and driver update. Since we don't support these modems our support is limited here. At the moment the only recommendation I can make is to see if there is a way to put the modem driver into a debug mode to make sure the modem is responding to commands.  Searching on the web for the LCP message, while I am not sure who is printing this out in terms of pppd or some other daemon, but others have found there may need to be more linux kernel support enabled. 

    Best Regards,

    Schuyler