Hello, I'd like to preserve time after rebooting, when no internet connection is present. Every time I reboot I get the same date, which i presume is the late date there was an internet connection. I'd like to update this system clock with the curren
root@stm32mp1:~# timedatectl status
Local time: Thu 2021-10-14 15:10:06 UTC
Universal time: Thu 2021-10-14 15:10:06 UTC
RTC time: Sat 2000-01-01 00:00:38
Time zone: UTC (UTC, +0000)
System clock synchronized: no
NTP service: active
RTC in local TZ: noMy RTC is out of sync.
This is the date loaded after every boot. Where does system clock get it?
This is the timesyncd service.
[[0;1;32m*[[0m systemd-timesyncd.service - Network Time Synchronization
Loaded: loaded (/lib/systemd/system/systemd-timesyncd.service; enabled; vendor preset: enabled)
Active: [[0;1;32mactive (running)[[0m since Thu 2021-10-14 15:09:43 UTC; 2min 23s ago
Docs: man:systemd-timesyncd.service(8)
Main PID: 373 (systemd-timesyn)
Status: "Idle."
Memory: 576.0K
CGroup: /system.slice/systemd-timesyncd.service
`-373 /lib/systemd/systemd-timesyncd
Sep 20 10:44:02 stm32mp1 systemd[1]: Starting Network Time Synchronization...
Sep 20 10:44:03 stm32mp1 systemd-timesyncd[373]: System clock time unset or jumped backwards, restoring from recorded timesta
mp: Thu 2021-10-14 15:09:43 UTC
Oct 14 15:09:43 stm32mp1 systemd[1]: Started Network Time Synchronization.I already tried:
hwclock -w, then rebooting, then hwclock -s, but it goes back to 2000s.
Can someone help me?
