Hi,
I used a Pi4 with this board: https://www.waveshare.com/wiki/Compute_ ... _POE_Board
On the board there is a place for a RTC, i use it.
So i would like when starting Pi4 to synchronize the system clock with the hardware clock.
But during reading the man page of hwclock i see: https://man7.org/linux/man-pages/man8/hwclock.8.html
where i can run the command "hwclock -s" (in which file)
thanks
I used a Pi4 with this board: https://www.waveshare.com/wiki/Compute_ ... _POE_Board
On the board there is a place for a RTC, i use it.
So i would like when starting Pi4 to synchronize the system clock with the hardware clock.
But during reading the man page of hwclock i see: https://man7.org/linux/man-pages/man8/hwclock.8.html
So my question, what is the best practice to do that ?This is a good function to use in one of the system startup scripts before the file systems are mounted read/write.
This function should never be used on a running system. Jumping system time will cause problems, such as corrupted
filesystem timestamps. Also, if something has changed the Hardware Clock, like NTP’s '11 minute mode', then --hctosys
will set the time incorrectly by including drift compensation.
where i can run the command "hwclock -s" (in which file)
thanks
Statistics: Posted by yaume91 — Wed Feb 26, 2025 9:53 pm — Replies 1 — Views 12