Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Based on the information provided, it seems like the issue is related to the Real-Time Clock (RTC) on your Verdin iMX8M Plus module when used with the Yavia carrier board and Torizon OS. Here are a few points to consider and potential steps to troubleshoot and resolve the issue:
-
Backup Battery for RTC:
- You mentioned that the Yavia board is used without the backup battery for RTC. The absence of a backup battery means that the RTC will lose its time settings when the power is removed. This could be contributing to the issue.
-
RTC Driver and Initialization:
- The error message
rtc-ds1307 0-0032: hctosys: unable to read the hardware clockindicates that the system is unable to read the RTC during boot. This could be due to a driver issue or an initialization problem. - Ensure that the RTC driver is correctly configured and loaded in the kernel. You might need to check the device tree configuration to ensure that the RTC is properly defined.
- The error message
-
Kernel Messages:
- The messages
pca953x 3-0021: failed writing registerandclk: failed to reparent hsio_axi to sys_pll2_500m: -16might be unrelated to the RTC issue but should be investigated as they could indicate other underlying problems.
- The messages
-
NTP Service:
- Since the system clock is not synchronized (
System clock synchronized: no), ensure that the NTP service is active and properly configured. This will help in setting the correct time after boot if the RTC is not functioning correctly.
- Since the system clock is not synchronized (
-
Software Reboot vs. Power Cycle:
- The fact that the RTC works after a software reboot from the Toradex Easy Installer but not after a power cycle suggests that there might be an issue with the initialization sequence during a cold boot.
Steps to Troubleshoot:
-
Check Device Tree Configuration:
- Verify that the device tree correctly defines the RTC. Look for the
rtcnode in the device tree source (DTS) file and ensure it matches the hardware configuration.
- Verify that the device tree correctly defines the RTC. Look for the
-
Kernel Configuration:
- Ensure that the kernel is configured to support the RTC. Check the kernel configuration (
.configfile) for options related to the RTC (e.g.,CONFIG_RTC_CLASS,CONFIG_RTC_DRV_DS1307).
- Ensure that the kernel is configured to support the RTC. Check the kernel configuration (
-
Add Backup Battery:
- If possible, add a backup battery to the Yavia board to maintain the RTC settings across power cycles.
-
Check Logs:
- Review the complete boot logs for any additional clues. Look for any messages related to the RTC or I2C communication errors.
-
Update Software:
- Ensure that you are using the latest version of TorizonCore and U-Boot. There might be fixes or improvements in newer versions that address this issue.
-
Contact Toradex Support:
- If the issue persists, consider reaching out to Toradex technical support for further assistance. Provide them with detailed logs and steps to reproduce the issue.
Conclusion:
The issue seems to be related to the RTC initialization during a cold boot. By checking the device tree configuration, kernel settings, and ensuring proper hardware setup, you might be able to resolve the issue. If these steps do not help, contacting Toradex support with detailed information would be the next best step.
Please, also check if these links can help you solve your problem: