Re: [bugreport] "hwclock -w" reset time instead of setting the right time

From: Alexandre Belloni
Date: Fri Jan 03 2020 - 05:02:37 EST


Hi,

On 02/01/2020 22:17:26+0500, Mikhail Gavrilov wrote:
> On Thu, 2 Jan 2020 at 21:59, J William Piggott <elseifthen@xxxxxxx> wrote:
> >
> > You've demonstrated that 'hwclock -w' does not 'reset' the RTC.
> >
> > Does your new motherboard use a battery backup for the RTC?
> > Is the battery good?
> >
>
> If you look carefully demonstration the RTC 'reset' happens after
> reboot __only__ when 'hwclock -w' have been entered before reboot.
> So if I reboot the computer without 'hwclock -w' the RTC will be not reset.
>

What is your kernel version?

--
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com