RTC can’t hold the after system rebooted in L4T 35.1 version AGX Xavier developer kit
I confirmed it worked fine in L4T 32.71 with same developer kit.
Here is my steps:
(1) Set system date and RTC time and read it back.
I have done the same experiment on the same AGX Xavier developer kit with L4T 32.7.1.
RTC0 and RTC1 both worked fine.
So I don’t think the battery is the problem.
You can see the following images about the experiment result.
I am surprised the RTC1 won’t get fixed.
So the tegra_defconfig’s option CONFIG_RTC_HCTOSYS_DEVICE=“rtc1” will change as rtc0 in NVidia’s next version?
(1) Set system date and RTC time and read it back. ( L4T 32.7.1)
(2) System reboot. Then read system date and RTC time again. ( L4T 32.7.1)
Confirmed your workaround can’t work.
Because the workaround is only create an symbolic /dev/rtc to /dev/rtc0.
That only can make timedatectl show a correct RTC time from rtc0.
But the system time sync mechanism is done by kernel driver.
You can check the dmesg to see it.
Provide a correct workaround: Set the option CONFIG_RTC_HCTOSYS_DEVICE as rtc0 in tegra_defconfig
After changed the option, the local, universal, and rtc time are all correct.
@ShaneCCC that didn’t work. I will able to continue working on it next week only. (but posting this message to hold the topic closure 14 days after the last reply)
is there way to ensure that the modification on the defconfig been applyed?
By the way, using the “proper” way to change the defconfig (‘make menuconfig’) there seems to be some problems on the Kconfig definitions because some lines are removed for example ‘CONFIG_NVVRS_PSEQ_RTC’.
But more major issue is the CONFIG_RTC_HCTOSYS_DEVICE is remove from the defconfig