| 1 | == NTP Configuration == |
| 2 | * Download and unzip packages |
| 3 | * Install software |
| 4 | {{{ |
| 5 | opkg install *.ipk |
| 6 | }}} |
| 7 | * Edit /etc/ntp.conf as described bellow |
| 8 | * Restart service after editing configuration |
| 9 | {{{ |
| 10 | /etc/init.d/ntpd restart |
| 11 | }}} |
| 12 | * Synchronization takes some time. Check status in about 10 minutes |
| 13 | |
| 14 | == Configuration Files == |
| 15 | * /etc/ntp.conf |
| 16 | {{{ |
| 17 | driftfile /var/lib/ntp/drift |
| 18 | server 141.52.8.18 # Replace it with internal NTP server |
| 19 | server 127.127.1.0 |
| 20 | fudge 127.127.1.0 stratum 14 |
| 21 | restrict default |
| 22 | }}} |
| 23 | |
| 24 | == Check Status == |
| 25 | * ntpq -c rv |
| 26 | * 'offset' field gives the current offset from the server in milliseconds |
| 27 | |
| 28 | {{{ |
| 29 | associd=0 status=0618 leap_none, sync_ntp, 1 event, no_sys_peer, |
| 30 | version="ntpd 4.2.6p5@1.2349 Mon Feb 29 15:53:06 UTC 2016 (2)", |
| 31 | processor="armv7l", system="Linux/3.14.46-rt46-ni-3.5.0f0", leap=00, |
| 32 | stratum=3, precision=-20, rootdelay=11.507, rootdisp=56.695, |
| 33 | refid=141.52.8.18, |
| 34 | reftime=e15974f3.391383ab Tue, Oct 22 2019 12:30:43.222, |
| 35 | clock=e159773f.c358b9d9 Tue, Oct 22 2019 12:40:31.763, peer=35314, tc=7, |
| 36 | mintc=3, offset=0.134, frequency=-1.954, sys_jitter=0.000, |
| 37 | clk_jitter=0.046, clk_wander=0.015 |
| 38 | }}} |
| 39 | * ntpq -pn (offset also included here) |
| 40 | |
| 41 | {{{ |
| 42 | remote refid st t when poll reach delay offset jitter |
| 43 | ============================================================================== |
| 44 | *141.52.8.18 36.224.68.195 2 u 19 128 377 0.231 0.134 0.034 |
| 45 | 127.127.1.0 .LOCL. 14 l 44m 64 0 0.000 0.000 0.000 |
| 46 | }}} |
| 47 | |
| 48 | == Documentation == |
| 49 | * [https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000kFymSAE&l=en-US NI instructions] |
| 50 | |
| 51 | == List of packages == |
| 52 | * ntp |
| 53 | {{{ |
| 54 | ntp_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk |
| 55 | ntpdate_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk |
| 56 | ntp-utils_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk |
| 57 | ntp-tickadj_4.2.6p5-r6.0.9_cortexa9-vfpv3.ipk |
| 58 | libbsd0_0.7.0-r0.11_cortexa9-vfpv3.ipk |
| 59 | libevent_2.0.21-r1.14_cortexa9-vfpv3.ipk |
| 60 | }}} |
| 61 | * mc |
| 62 | {{{ |
| 63 | mc_4.8.12-r0.10_cortexa9-vfpv3.ipk |
| 64 | ncurses-terminfo_5.9-r15.1.129_cortexa9-vfpv3.ipk |
| 65 | libncurses5_5.9-r15.1.129_cortexa9-vfpv3.ipk |
| 66 | libncursesw5_5.9-r15.1.129_cortexa9-vfpv3.ipk |
| 67 | }}} |
| 68 | |