X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=doc%2FREADME.SNTP;h=da9ec459ad46a454d9d2f0a4f095e1b96d9eb2ed;hb=01cafcedbfbefef6c975d7bbe704994bf3357ebd;hp=fd6f2098f9843c4092e80d844cb54b321b43f5d8;hpb=ea287debe1980182adbe8c63b71bb82193dad5b7;p=u-boot diff --git a/doc/README.SNTP b/doc/README.SNTP index fd6f2098f9..da9ec459ad 100644 --- a/doc/README.SNTP +++ b/doc/README.SNTP @@ -1,12 +1,12 @@ -To use SNTP support, add a define CFG_CMD_SNTP to CONFIG_COMMANDS in -the configuration file of the board. +To use SNTP support, add define CONFIG_CMD_SNTP to the +configuration file of the board. The "sntp" command gets network time from NTP time server and syncronize RTC of the board. This command needs the command line parameter of server's IP address or environment variable "ntpserverip". The network time is sent as UTC. So if you want to set local time to RTC, set the offset in second from UTC to the -enviroment variable "time offset". +environment variable "time offset". If the DHCP server provides time server's IP or time offset, you don't need to set the above environment variables yourself.