[U-Boot-Users] FWD: SNTP support patch

Wolfgang Denk wd at denx.de
Wed Mar 30 22:54:41 CEST 2005

[Forwarded on behalf of Masami Komiya.]

------- Forwarded Message

Date:    Wed, 30 Mar 2005 16:42:03 +0900
From:    Masami Komiya <mkomiya at sonare.it>
To:      Wolfgang Denk <wd at denx.de>
cc:      "Sonare IT - Komiya" <mkomiya at sonare.it>
Subject: SNTP support patch

Dear Wolfgang,

No time see you.

I make a patch to add SNTP support and expand time server and time offset
fields of DHCP support. (The roundtrip delay is ignored :-)

I want to send this patch to ML, but the mail server of SourceForge
does not accept from me ;_;) If you think this is useful for U-BOOT,
please forward to ML.

To use SNTP support, please add the define CFG_CMD_SNTP to CONFIG_COMMANDS
in 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 "timeserverip". 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".

If DHCP server provides time server's IP or time offset, you don't need to set the above
environment variables yourself.

Any advice or comment are wellcome!!

Best regards.

Masami Komiya

------- End of Forwarded Message

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-sntp-00.gz
Type: application/x-gzip
Size: 3725 bytes
Desc: patch-sntp-00.gz
Url : http://lists.denx.de/pipermail/u-boot/attachments/20050330/b82c6cc9/attachment.bin 

More information about the U-Boot mailing list