wiki:NIntp

NTP Configuration

  • Download and unzip packages
         tar xf ntp_packages.tar
    
  • Install software
         opkg install *.ipk
    
  • Edit /etc/ntp.conf as described bellow
  • Restart service after editing configuration
        /etc/init.d/ntpd restart
    
  • Synchronization takes some time. Check status in about 10 minutes

Configuration Files

  • /etc/ntp.conf
    driftfile /var/lib/ntp/drift
    server 141.52.8.18              # Replace it with internal NTP server
    server 127.127.1.0
    fudge 127.127.1.0 stratum 14
    restrict default
    

Check Status

  • ntpq -c rv
    • 'offset' field gives the current offset from the server in milliseconds
associd=0 status=0618 leap_none, sync_ntp, 1 event, no_sys_peer,
version="ntpd 4.2.6p5@1.2349 Mon Feb 29 15:53:06 UTC 2016 (2)",
processor="armv7l", system="Linux/3.14.46-rt46-ni-3.5.0f0", leap=00,
stratum=3, precision=-20, rootdelay=11.507, rootdisp=56.695,
refid=141.52.8.18,
reftime=e15974f3.391383ab  Tue, Oct 22 2019 12:30:43.222,
clock=e159773f.c358b9d9  Tue, Oct 22 2019 12:40:31.763, peer=35314, tc=7,
mintc=3, offset=0.134, frequency=-1.954, sys_jitter=0.000,
clk_jitter=0.046, clk_wander=0.015
  • ntpq -pn (offset also included here)
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*141.52.8.18     36.224.68.195    2 u   19  128  377    0.231    0.134   0.034
 127.127.1.0     .LOCL.          14 l  44m   64    0    0.000    0.000   0.000

Documentation

List of packages

  • ntp
    ntp_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
    ntpdate_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
    ntp-utils_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
    ntp-tickadj_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk
    libbsd0_0.7.0-r0.11_cortexa9-vfpv3.ipk
    libevent_2.0.21-r1.14_cortexa9-vfpv3.ipk
    
  • mc
    mc_4.8.12-r0.10_cortexa9-vfpv3.ipk
    ncurses-terminfo_5.9-r15.1.129_cortexa9-vfpv3.ipk
    libncurses5_5.9-r15.1.129_cortexa9-vfpv3.ipk
    libncursesw5_5.9-r15.1.129_cortexa9-vfpv3.ipk
    
Last modified 4 years ago Last modified on Oct 22, 2019, 12:51:08 PM

Attachments (1)

Download all attachments as: .zip