RTC issue on Verdin iMX8M-Plus + Yavia

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


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:

  1. 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.
  2. RTC Driver and Initialization:

    • The error message rtc-ds1307 0-0032: hctosys: unable to read the hardware clock indicates 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.
  3. Kernel Messages:

    • The messages pca953x 3-0021: failed writing register and clk: failed to reparent hsio_axi to sys_pll2_500m: -16 might be unrelated to the RTC issue but should be investigated as they could indicate other underlying problems.
  4. 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.
  5. 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:

  1. Check Device Tree Configuration:

    • Verify that the device tree correctly defines the RTC. Look for the rtc node in the device tree source (DTS) file and ensure it matches the hardware configuration.
  2. Kernel Configuration:

    • Ensure that the kernel is configured to support the RTC. Check the kernel configuration (.config file) for options related to the RTC (e.g., CONFIG_RTC_CLASS, CONFIG_RTC_DRV_DS1307).
  3. Add Backup Battery:

    • If possible, add a backup battery to the Yavia board to maintain the RTC settings across power cycles.
  4. Check Logs:

    • Review the complete boot logs for any additional clues. Look for any messages related to the RTC or I2C communication errors.
  5. 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.
  6. 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:

Verdin IMX8MP does not boot when charging battery.