Hi Team,
a) I have connected good battery.
b) confirmed rtc is mapped with rtc0 ( check from /dev/ )
c)CONFIG_RTC_HCTOSYS_DEVICE=“rtc0” in tegra_defconfig
with above modification (c) build and flashed .
once board is up disabled auto date update from date setting GUI.
changed the date up to date. waited 2 minutes and
power cycled the board.
once Orin NX module up observed board date was September 08 2022
Hi @DaveYYY , Internet connected but auto date update is disabled.
before power cycle executed mentioned command and response as below.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
nvidia@nvidia-desktop:~$ timedatectl
Local time: Thu 2023-06-15 16:23:57 IST
Universal time: Thu 2023-06-15 10:53:57 UTC
RTC time: Thu 2023-06-15 10:53:57
Time zone: Asia/Kolkata (IST, +0530)
System clock synchronized: yes
NTP service: inactive
RTC in local TZ: no
nvidia@nvidia-desktop:~$ hwclock -r
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --verbose option to see the details of our search for an access method.
nvidia@nvidia-desktop:~$ sudo hwclock -r
[sudo] password for nvidia:
2023-06-15 16:24:30.971405+05:30
nvidia@nvidia-desktop:~$
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
We’ve seen similar cases before, and looks like the issue of system time falling back to a default value upon reboot is caused by the design of Ubuntu itself.
You may rely on sudo hwclock -r to get the timestamp if you manually set it.