hi

> hwclock --htctosys 
> is not working anymore
>
> -->> hwclock: settimeofday() failed: Invalid argument
>
> I have hint about the fact it could be a glibc-2.31 related problem
>
> https://forum.artixlinux.org/index.php/topic,1311.msg9179.html
>
> Could someone concur about hwclck malfunction?
>
> is there a bypass/patch about this?
>

it's not clear to me if this is a real workaround/fix, but changing the
hwclock call to:

  hwclock --systz

works without error

man hwclock says:

       --systz
              This  is  an  alternate  to the --hctosys function that does not
              read the Hardware Clock nor set the System  Clock;  consequently
              there is not any drift correction.  It is intended to be used in
              a startup script on systems with kernels above version 2.6 where
              you  know  the System Clock has been set from the Hardware Clock
              by the kernel during boot.

So what I seem to understand is that with recent kernels, the job of
syncing the system clock with the hardware clock is done at boot by the
kernel (you must have configured the kernel with CONFIG_RTC_HCTOSYS=y and
CONFIG_RTC_SYSTOHC=y). "hwclock --systz" performs additional tasks
(system clock correction to UTC, setting kernel's NTP '11 minute mode'
timescale (?), setting kernel's timezone).

As a matter of fact, I'm runnig with "hwclock --systz" in my setclock
bootscript since quite a bit and didn't notice any problem

ciao
-gabriele
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to