blob: da9ec459ad46a454d9d2f0a4f095e1b96d9eb2ed [file] [log] [blame]
Jon Loeligerb5501f72007-07-09 19:10:03 -05001To use SNTP support, add define CONFIG_CMD_SNTP to the
2configuration file of the board.
wdenkea287de2005-04-01 00:25:43 +00003
4The "sntp" command gets network time from NTP time server and
5syncronize RTC of the board. This command needs the command line
6parameter of server's IP address or environment variable
7"ntpserverip". The network time is sent as UTC. So if you want to
8set local time to RTC, set the offset in second from UTC to the
Thomas Weberc46bf092012-03-24 22:44:01 +00009environment variable "time offset".
wdenkea287de2005-04-01 00:25:43 +000010
11If the DHCP server provides time server's IP or time offset, you
12don't need to set the above environment variables yourself.
13
14Current limitations of SNTP support:
151. The roundtrip time is ignored.
162. Only the 1st NTP server IP, in the option ntp-servers of DHCP, will
17 be used.