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.

NTP not working

We are using an AM335x board with the latest Arago built. when building the the kernel, NTP is enabled.

I cannot find any NTP Settings, what i am doing wrong? How can I enable NTP?

We would Need it to have a timestamp when writing files on the MMC.

  • Hi Sita,

    Could you specify which kernel version you are using?
    Also could you attach kernel config file?

    BR
    Tsvetolin Shulev
  • Hello Cvetolin,

    using kernel 4.1.18

    I was insofar wrong, not NTP is enabled (i didnt find anywhere in the config file NTP). RTC synchronize with NTP is enabled.

    I was not able to install NTP on this Argao Linux, is there anywhere a tutorial how to do that?

    Thank you

    0564.btp.config

  • Hi Sita,
    There is an example on how to build ntp from source at processors.wiki.ti.com/.../WL18xx_Clock_Synchronisation_with_NTP .
    You can ignore all the patches applied to it if you just want normal ntp. Once you have it running I'd update to the latest version.

    The section you want is:


    if [ ! -e ntp-downloaded ]
    then
    mkdir -p ntp
    # now download ntp
    cd ntp
    rm ntp-4.2.8p3.tar.gz
    wget www.eecis.udel.edu/.../ntp-4.2.8p3.tar.gz

    tar -xzf ntp-4.2.8p3.tar.gz
    cd ntp-4.2.8p3
    patch -p1 < ../../patches/ntp/0001-add-wl8-reference-clock.patch || exit
    patch -p1 < ../../patches/ntp/0002-update-for-drift-and-offset-now-in-debugfs.patch || exit
    patch -p1 < ../../patches/ntp/0003-remove-tsfoffset-from-debugfs-structure.patch || exit
    cd ../..
    touch ntp-downloaded
    fi

    #now configure it
    cd ntp/ntp-4.2.8p3 || exit
    ./configure --host=arm-linux-gnueabihf --with-yielding-select=yes CC=${TOOLCHAIN_PATH}/${CROSS_COMPILE}gcc AR=${TOOLCHAIN_PATH}/${CROSS_COMPILE}ar LD=${TOOLCHAIN_PATH}/${CROSS_COMPILE}ld

    # and build it
    make clean
    make
    sudo make install DESTDIR=${ROOTFS}
    cd ../..


    Iain
  • Iain,
    thank you very much for your answer and sorry for the Long delay of my answer.
    It works, again thank you.

    Regards
    Sita