linux - NTPD on arm box version 4.2.6p5 -
i have managed cross compile ntpd 4.2.6p5 arm box. have custom toolchain provided manufacturer.
box running busybox + variant of debian linux.
so have no installation of ntp , did manual copy, created conf file ntpd , tried run it.
ntpd returns when in debug mode: ~/ntp # ./ntpd -c ntp.conf -d
ntpd 4.2.6p5@1.2349 mon apr 7 19:58:25 utc 2014 (1) 9 apr 07:39:44 ntpd[3592]: signal_no_reset: signal 13 had flags 4000000 9 apr 07:39:44 ntpd[3592]: proto: precision = 91.000 usec event @ 0 0.0.0.0 c01d 0d kern kernel time sync enabled finished parsing!! 9 apr 07:39:44 ntpd[3592]: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 9 apr 07:39:44 ntpd[3592]: listen , drop on 0 v4wildcard 0.0.0.0 udp 123 9 apr 07:39:44 ntpd[3592]: unable bind wildcard address :: - process may running - exiting
before had add /etc/services
ntp 123/udp
my ntp.conf looks like:
~/ntp # cat ntp.conf server 193.2.4.6 server 193.2.4.2 driftfile ntp.drift
so have checked netstat , nothing running on port 123, no ntpdate etc...
~/ntp # netstat -rn kernel ip routing table destination gateway genmask flags mss window irtt iface 0.0.0.0 192.168.3.1 0.0.0.0 ug 0 0 0 eth0 192.168.3.0 0.0.0.0 255.255.255.0 u 0 0 0 eth0 ~ # netstat -a | grep 123 ~ #
therefore must config, or arm box not have configured...
oh , running manually ntpdate works:
~/ntp # ./ntpdate 193.2.4.6 9 apr 07:49:16 ntpdate[3614]: step time server 193.2.4.6 offset -0.755704 sec ~/ntp #
so yes use ntpdate in cron, not intent!
any idea?
thank , best regards!
the following error indicates ntp had trouble binding ipv6 wildcard:
9 apr 07:39:44 ntpd[3592]: unable bind wildcard address :: - process may running - exiting
i think problem ipv6 hard tell because diagnosticinformation not good. netstat -a |grep 123
command useless because netstat substitute ntp port 123. try again with:
netstat -a -n | grep 123
along lines netstat -rn
works ipv4, try again -6:
netstat -r -n -6
your test ntpdate used ipv4 host. server support ipv6? happens when run:
$ sntp -d -6 time.nist.gov
i used sntp because not know if ntpdate has -6
option , sntp does.
Comments
Post a Comment