[Buildroot] [PATCH] package/ntp: use ntpd to set initial time

Matthew Weber matthew.weber at rockwellcollins.com
Fri Nov 2 02:56:05 UTC 2018


Oscar,

On Wed, Oct 31, 2018 at 7:44 AM Matthew Weber
<matthew.weber at rockwellcollins.com> wrote:
>
> Oscar,
>
> On Wed, Oct 31, 2018 at 3:38 AM Oscar Gomez Fuente
> <oscargomezf at gmail.com> wrote:
> >
> > Hi everyone,
> >
> > I was checking it on my Raspberry Pi 3B+ and it works perfectly.
> >
> > The only weird thing is the log related to the other ntp servers, but
> > I think they are normal. It sees to be that they are duplicated, the
> > alternative servers exist in case one of them it was down, so it is
> > ok.
> >
> > ----->
> > # date --set "1970-01-01 10:10:00"
> > Thu Jan  1 10:10:00 UTC 1970
> >
> > # sntp -K /tmp/kod -sS -M 128 0.pool.ntp.org 1.pool.ntp.org
> > 2.pool.ntp.org 3.pool.ntp.org
> > sntp 4.2.8p12 at 1.3728-o Wed Oct 31 08:22:38 UTC 2018 (1)
> > 213.251.52.234:123 0.pool.ntp.org duplicate address from 1.pool.ntp.org ignored.
> > 37.139.121.60:123 0.pool.ntp.org duplicate address from 1.pool.ntp.org ignored.
> > 185.132.136.116:123 0.pool.ntp.org duplicate address from
> > 1.pool.ntp.org ignored.
> > 81.19.96.148:123 0.pool.ntp.org duplicate address from 1.pool.ntp.org ignored.
> > 213.251.52.234:123 0.pool.ntp.org duplicate address from 2.pool.ntp.org ignored.
> > 81.19.96.148:123 0.pool.ntp.org duplicate address from 2.pool.ntp.org ignored.
> > 185.132.136.116:123 0.pool.ntp.org duplicate address from
> > 2.pool.ntp.org ignored.
> > 37.139.121.60:123 0.pool.ntp.org duplicate address from 2.pool.ntp.org ignored.
> > Send to [2001:720:1014:a205::2]:123 failed, Network is unreachable
> > 213.251.52.234:123 0.pool.ntp.org duplicate address from 3.pool.ntp.org ignored.
> > 81.19.96.148:123 0.pool.ntp.org duplicate address from 3.pool.ntp.org ignored.
> > 185.132.136.116:123 0.pool.ntp.org duplicate address from
> > 3.pool.ntp.org ignored.
> > 37.139.121.60:123 0.pool.ntp.org duplicate address from 3.pool.ntp.org ignored.
> > Send to [2001:720:1014:a202::2]:123 failed, Network is unreachable
> > 1970-01-01 10:10:05.624784 (+0000) +1540938259.059756 +/-
> > 1027292172.738343 0.pool.ntp.org 213.251.52.234 s2 no-leap
> >
> > # date
> > Wed Oct 31 08:34:26 UTC 2018
> > ----->
>
> I debated keeping all the pool servers in the list.  When the sntp
> agent resolves any of the "0/1/2/3.pool.ntp.org or pool.ntp.org", the
> DNS response is 4 server IPs.  The sntp agent then uses all 4 in
> serial or a -c flag can be set to concurrently check them.  So
> realistically just pool.ntp.org could be set as the sole server,
> assuming there are 4 servers provided when it resolves.
>

Would you mind testing my v4 patch which defaults to one server and if
all looks good, provide your tested-by on that patch's email?
https://patchwork.ozlabs.org/patch/992167/


More information about the buildroot mailing list