The ntpd doesn’t work properly on my BeagleBoard. The time lags behind by about 4 seconds per minute. I assume that this is related to the latest kernel, because I did not have the problem with a previous kernel. Is anybody able to replicate the problem?
cpuinfo: ARMv7 Processor rev. 2 (v7l)
version: 3.8.13
gcc Version 4.7.3
ntpd 4.2.6p5
Setting the time with
ntpd -q -g
works perfectly.
/etc/init.d/ntpd start
starts the ntdp with the process
/usr/bin/ntpd -p /var/run/ntp.pid -g
Now the system time lags consistently behind
The following configuration files exist:
/etc/ntp.conf
This is the most basic ntp configuration file
The driftfile must remain in a place specific to this
machine - it records the machine specific clock error
driftfile /etc/ntp.drift
logfile /var/log/ntpd.log
NTP Servers for Germany
server de.pool.ntp.org
Using local hardware clock as fallback
Disable this when using ntpd -q -g -x as ntpdate or it will sync to itself
server 127.127.1.0
fudge 127.127.1.0 stratum 14
Defining a default security setting
restrict default
The following two files are apparently only used for automatic start at boot.
/lib/systemd/system/ntpdate.service
[Unit]
Description=Network Time Service (one-shot ntpdate mode)
Before=ntpd.service
[Service]
Type=oneshot
ExecStart=/usr/bin/ntpd -q -g
ExecStart=/sbin/hwclock --systohc
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
/lib/systemd/system/ntpd.service
[Unit]
Description=Network Time Service
After=network.target
[Service]
Type=forking
PIDFile=/var/run/ntpd.pid
ExecStart=/usr/bin/ntpd -p /var/run/ntpd.pid
[Install]
WantedBy=multi-user.target