* [U-Boot-Users] FWD: SNTP support patch
@ 2005-03-30 20:54 Wolfgang Denk
2005-03-31 8:07 ` [U-Boot-Users] " Masami Komiya
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Wolfgang Denk @ 2005-03-30 20:54 UTC (permalink / raw)
To: u-boot
[Forwarded on behalf of Masami Komiya.]
------- Forwarded Message
Date: Wed, 30 Mar 2005 16:42:03 +0900
From: Masami Komiya <mkomiya@sonare.it>
To: Wolfgang Denk <wd@denx.de>
cc: "Sonare IT - Komiya" <mkomiya@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
^ permalink raw reply [flat|nested] 6+ messages in thread* [U-Boot-Users] SNTP support patch 2005-03-30 20:54 [U-Boot-Users] FWD: SNTP support patch Wolfgang Denk @ 2005-03-31 8:07 ` Masami Komiya 2005-03-31 23:59 ` Wolfgang Denk 2005-03-31 23:54 ` [U-Boot-Users] FWD: " Wolfgang Denk 2005-04-05 14:51 ` [U-Boot-Users] " Ladislav Michl 2 siblings, 1 reply; 6+ messages in thread From: Masami Komiya @ 2005-03-31 8:07 UTC (permalink / raw) To: u-boot There are some wrong code about DHCP expansion in the last patch to add SNTP support. Please apply attached patch too. The name of environment variable for NTP time server IP address is changed to "ntpserverip". The current limitation of SNTP support is : 1. The roundtrip time is ignored. 2. Only 1st NTP server IP, in the option ntp-servers of DHCP, is effective. Thank you for your any advice. Masami Komiya Wolfgang Denk wrote: > [Forwarded on behalf of Masami Komiya.] > > ------- Forwarded Message > > Date: Wed, 30 Mar 2005 16:42:03 +0900 > From: Masami Komiya <mkomiya@sonare.it> > To: Wolfgang Denk <wd@denx.de> > cc: "Sonare IT - Komiya" <mkomiya@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-01.gz Type: application/x-gzip Size: 1570 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20050331/148ee52c/attachment.bin ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] SNTP support patch 2005-03-31 8:07 ` [U-Boot-Users] " Masami Komiya @ 2005-03-31 23:59 ` Wolfgang Denk 0 siblings, 0 replies; 6+ messages in thread From: Wolfgang Denk @ 2005-03-31 23:59 UTC (permalink / raw) To: u-boot In message <424BAFC4.7030009@sonare.it> you wrote: > > There are some wrong code about DHCP expansion in the last patch > to add SNTP support. Please apply attached patch too. Done. Thanks. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Our OS who art in CPU, UNIX be thy name. Thy programs run, thy syscalls done, In kernel as it is in user! ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] FWD: SNTP support patch 2005-03-30 20:54 [U-Boot-Users] FWD: SNTP support patch Wolfgang Denk 2005-03-31 8:07 ` [U-Boot-Users] " Masami Komiya @ 2005-03-31 23:54 ` Wolfgang Denk 2005-04-05 14:51 ` [U-Boot-Users] " Ladislav Michl 2 siblings, 0 replies; 6+ messages in thread From: Wolfgang Denk @ 2005-03-31 23:54 UTC (permalink / raw) To: u-boot In message <20050330205446.E062AC108D@atlas.denx.de> you wrote: > > I make a patch to add SNTP support and expand time server and time offset > fields of DHCP support. (The roundtrip delay is ignored :-) Added, thanks. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I wish I had a bronze torc for every user who didn't read the manual. - Terry Pratchett, _The Light Fantastic_ ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Re: FWD: SNTP support patch 2005-03-30 20:54 [U-Boot-Users] FWD: SNTP support patch Wolfgang Denk 2005-03-31 8:07 ` [U-Boot-Users] " Masami Komiya 2005-03-31 23:54 ` [U-Boot-Users] FWD: " Wolfgang Denk @ 2005-04-05 14:51 ` Ladislav Michl 2005-04-05 22:54 ` Wolfgang Denk 2 siblings, 1 reply; 6+ messages in thread From: Ladislav Michl @ 2005-04-05 14:51 UTC (permalink / raw) To: u-boot On Wed, Mar 30, 2005 at 10:54:41PM +0200, Wolfgang Denk wrote: > [Forwarded on behalf of Masami Komiya.] > > ------- Forwarded Message > > Date: Wed, 30 Mar 2005 16:42:03 +0900 > From: Masami Komiya <mkomiya@sonare.it> > To: Wolfgang Denk <wd@denx.de> > cc: "Sonare IT - Komiya" <mkomiya@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 :-) Extenting proto_t enum rings bell here. Please consider applying following inliner. Index: common/cmd_net.c =================================================================== RCS file: /cvsroot/u-boot/u-boot/common/cmd_net.c,v retrieving revision 1.15 diff -u -r1.15 cmd_net.c --- common/cmd_net.c 2 Apr 2005 22:37:55 -0000 1.15 +++ common/cmd_net.c 5 Apr 2005 14:44:42 -0000 @@ -33,7 +33,7 @@ extern int do_bootm (cmd_tbl_t *, int, int, char *[]); -static int netboot_common (int, cmd_tbl_t *, int , char *[]); +static int netboot_common (proto_t, cmd_tbl_t *, int , char *[]); int do_bootp (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { @@ -152,7 +152,7 @@ } static int -netboot_common (int proto, cmd_tbl_t *cmdtp, int argc, char *argv[]) +netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[]) { char *s; int rcode = 0; ^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Re: FWD: SNTP support patch 2005-04-05 14:51 ` [U-Boot-Users] " Ladislav Michl @ 2005-04-05 22:54 ` Wolfgang Denk 0 siblings, 0 replies; 6+ messages in thread From: Wolfgang Denk @ 2005-04-05 22:54 UTC (permalink / raw) To: u-boot In message <20050405145127.GA9944@orphique> you wrote: > > Extenting proto_t enum rings bell here. Please consider applying > following inliner. Thanks, added. But please provide a proper patch next time (CHANGELOG entry). Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Many Myths are based on truth -- Spock, "The Way to Eden", stardate 5832.3 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-04-05 22:54 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-03-30 20:54 [U-Boot-Users] FWD: SNTP support patch Wolfgang Denk 2005-03-31 8:07 ` [U-Boot-Users] " Masami Komiya 2005-03-31 23:59 ` Wolfgang Denk 2005-03-31 23:54 ` [U-Boot-Users] FWD: " Wolfgang Denk 2005-04-05 14:51 ` [U-Boot-Users] " Ladislav Michl 2005-04-05 22:54 ` Wolfgang Denk
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox