[U-Boot] [PATCH 10/33] rtc: mc146818: Set up RTC at start of day

Simon Glass sjg at chromium.org
Wed Nov 12 16:25:29 CET 2014


Hi Wolfgang,

On 12 November 2014 01:12, Wolfgang Denk <wd at denx.de> wrote:
> Dear Simon,
>
> In message <1415751501-23407-11-git-send-email-sjg at chromium.org> you wrote:
>> If the RTC needs to be cleared, write the U-Boot build date to it. In any
>> case make sure the settings are correct.
>
> Is this really a good idea?  Why writing the build date?  It is as
> wrong as any other arbitrarily chose point of time, and when each
> device comes up with a different (incorrect) time this could be pretty
> much confusing.
>
> If you need a sane time for initialization, would it not make more
> sense to chose a fixed date?  If you don't want to use the epoch (say,
> to avoid y2038 issues), you could use 2010-01-01 00:00 or similar
> instead.
>
> If I see the clock comes up at such a date I will notice that this is
> an uninitialized time. It it comes up with something as "Tue, 11 Nov
> 2014 17:17:58"  I will assume this is a real time, and wonder what's
> gone wrong that i's in the past.

OK I think going with a 2010 date makes more sense, so I'll drop the
build date patch.

Regards,
Simon


More information about the U-Boot mailing list