Dear Lloyd, I do not have any rtc hardware clock in my foxboard, but I'll use the foxboard in a lan with a every time available ntp server, also i need to do some tasks synch to UT time, and ntp is the right solution for me. Anyway ntpdate, and ntpd are not present into the foxboard wmware sdk. Do you have compiled them for foxboard ?
best regards Andrea Maccaferri --- In [email protected], Lloyd Bailey <[EMAIL PROTECTED]> wrote: > > Hi Andrea, > > I think this is a better way to sync the time using a ntp daemon. > > /etc/init.d/rc > > #! /bin/sh > > . /etc/init.d/functions.sh > > case "$1" in > start) > begin "Initializing ntp" > /bin/ntpdate -s -b 10.45.2.50 > > begin "Sync RTC" > /sbin/hwclock -w -u > > begin "Starting ntpd" > start-stop-daemon --start -x /bin/ntpd -- -g > end $? > ;; > stop) > begin "Stopping ntpd" > start-stop-daemon --stop -n ntpd > end $? > ;; > *) > error "Usage: $0 start|stop" > ;; > esac > > Also check that the RTC is supported. > > # dmesg | grep rtc > > should return > > rtc_time : 11:59:07 > rtc_date : 2008-03-31 > > > Regards, > > Lloyd. > > -- > IT Department > Pharma Nord (UK) Ltd > Telford Court > Morpeth > Northumberland > NE61 2DB > Tel:. +44 1670 519 989 > Fax:. +44 1670 534 903 >
