I use the ntpclient from Dolittle to have the fox synched to ntp server.
All looks ok if the ntpclient is running from almost 20 minutes and I
have made a resync to server using ntplient -s -c server.
The problem arise if I need to reboot the board.
I can setup with adjtimex the last frequency setting from the log
before reboot, immediatly after rebooted the board,
but from log I can see that time start to accumulate a big error,
and without any manual adjust, it take hours to sync again to ntp
server.
to be more clear I start ntpclient in /etc/init.d/rc
and this is the log
# box [( -4.085 , -726.2 ) ( 2.839 , 708.2 )] delta_f 0.058
computed_freq 1548204
39536 42593.068 1090.0 34.0 -9.0 427.2 1552036
# box [( -3.768 , -732.5 ) ( 2.590 , 656.5 )] delta_f 0.061
computed_freq 1544211
39536 42623.079 1113.0 35.0 -38.0 381.5 1548204
I setup the boot script /etc/init.d/rc in this way:
/bin/mount -t vfat /dev/sda /mnt/1
/mnt/1/fox/adjtimex -f 1524916
/mnt/1/fox/ntpclient -s -h 192.167.189.69
/mnt/1/fox/ntpclient -l -i 30 -h 192.167.189.69
but after reboot I get this in ntpclient.log
just few minutes after soft reboot this is the status:
[EMAIL PROTECTED] /root]120# /mnt/1/fox/adjtimex
mode: 0
-o offset: 0
-f frequency: 1524916
maxerror: 16384000
esterror: 16384000
status: 64 ( UNSYNC )
-p timeconstant: 2
precision: 1
tolerance: 33554432
-t tick: 10000
time.tv_sec: 1206964878
time.tv_usec: 844311
return value: 5 (clock not synchronized)
[EMAIL PROTECTED] /root]120# cat /var/log/ntpclient.log
39536 43171.626 1243.0 31.0 51502.0 427.2 1524916
39536 43201.626 1387.0 39.0 851588.0 412.0 1524916
39536 43231.627 1135.0 37.0 1601592.0 366.2 1524916
39536 43261.627 1126.0 40.0 2351585.0 335.7 1524916
[EMAIL PROTECTED] /root]120#
Anybody else use ntpclient and has the same problems?
I use a fimage built with kernel 2.6.x, vhdl support etc..
best regards
Andrea Maccaferri