I’m using an alternative RTC that is attached via I2C to the Iris-Board. The driver is working correctly and automatically loaded on startup. Reading and writing to the RTC using hwclock works fine. I also managed to redirect the symlink /dev/rtc to my new rtc using a udev rule. My new rtc is always available as /dev/rtc2.
However I did not manage to configure my system in a manner that it uses my new RTC to sync the systemclock on startup. I can do it manually using hwclock -s. But I think this should be done using timesyncd, right? How can I tell timedatectl to use my RTC?
2nd question: How do I change the default settings of timedatectl using yocto? Is there a configuration file in /etc? I would like to disable NTP sync and use my RTC in localtime.