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.

SNTP client for linux on AM1808

Other Parts Discussed in Thread: AM1808

Hello,

I am using AM1808 processors and have linux ported on it.

Can anyone suggest me where i can find SNTP client executable/source code.

There is a utility in linux called SNTP command/daemon. If i can get this utility for AM1808(linux), that will also help.

Thank you

sanket

  • Moving this to the AM1X forum.
  • Dear Sanket,
    You have to cross compile the NTP package to get "sntp" support.

    ./configure --host=arm-arago-linux-gnueabi --with-yielding-select=yes
    make
    make install DESTDIR=<install location>

    I'm able to cross compile and got the "sntpd" commands for AM1808 Linux (armv5)

    Please try it and let me know.
  • Hello stalin,

    thanx for the reply. i will try the same on a NTP package available with me.
    Meanwhile can you please provide the link for downloading the same package which you have tried and tested.

    sanket
  • Dear Sanket,
    I have used the NTP4.2 package.
    archive.ntp.org/ntp4/ntp-4.2/ntp-4.2.8p6.tar.gz
  • hello stalin,

    I am using the same package. I have compiled the package following your instructions and it got succcess. Now i am trying to run sntp by using following command

    ./sntp <server address>

    i am getting error as follows

    ./sntp: /lib/libc.so.6: version 'GLIBC_2.9' not found(required by ./sntp)

    i assume it is library required. i have arm-arago-linux-gnueabi- compiler package, but could not find this library.
    can you give the location of the above file

    sanket
  • hello stalin,

    i am having one more error

    "libgcc_s.so.1 must be installed for pthread_cancel to work"

    thank you
    sanket
  • Dear Sanket,
    Where you are running this app (sntp) ?
    Let me check what exact problem it is.
  • hello stalin,

    I have booted the device in flash. Here i am manually running the sntp executable. there are 2 more program which access the EMAC
    1) FTP server app running on AM1808 flash.
    2) My application code also uses network for communication. The protocol standard the IEC61850.

    i have also tried booting the device from NFS, but as soon as I run "sntp" the kernel crashes in NFS. Then i have to load NFS once again as nothing works after that.

    If you suggest me i can try another option.
    The above mentioned description is problem i am facing using NTP package compiled for AM1808.

    i will explain you my exact requirement.

    i have a code separate code written as SNTP client. the code is completely developed by me. This runs as separate process.

    test setup
    1) Ethernet switch
    2) My device connected to Ethernet switch
    3) SNTP server connected to ethernet switch
    4) other make device connected to ethernet switch

    testing
    1) both my device and any other make IED will communicate to time sync server and sync their respective time.
    2) other make device will pass data using IECGOOSE packet (publish). the data will be time stamped in the packet.
    3) my device will subscribe the packet and create time stamp event. time stamp is according to my clock.
    note- published IECGOOSE packet is asynchronous it might occur once in a minute, or 5 times a minute, once in a day.

    Here the problem is event which is time stamped in my device logs time 2/3 mSec before the actual published data(time stamped).
    the obvious reason is i cannot create a event on subscriber side unless i receive any from publisher, so the problem is in my SNTP.

    i am sure of this because two of my competitors (name not included) have demonstrated on the same test setup accurate results to one of our customers. (we were present at customer place for same demonstration)
    And at the same time my device logs event just before publish time stamp. Now i am in position of loosing future orders because of technical reason explained above.
  • Dear Sanket,
    Sorry for the delay in responding.
    Can you try to boot via some other boot mode say NAND/SPI/NOR/SD/MMC (except NFS) ?
    Check the CPU load & RAM usage while facing the problem.
    RAM size ?
    Are you getting any kernel error msg or from application (NTP,etc.,) ? It gives some clue about the problem.