We have the the Layerscape LS1028ARDB reference board and have successfully loaded the Ubuntu-based Linux image per the LS1028A BSP User Guide, Rev. 0.3, 04/2019. When we try to query the real-time clock, we get the following error:
root@NXP-1:~# hwclock -r
[12259.192870] rtc-pcf2127-i2c 4-0051: pcf2127_rtc_read_time: read error
[12259.199734] rtc-pcf2127-i2c 4-0051: pcf2127_rtc_read_time: read error
[12259.206779] rtc-pcf2127-i2c 4-0051: pcf2127_rtc_read_time: read error
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: No such device or address
root@NXP-1:~#
The result is the same on both units we have tested so far.We expected get either an error about lack a battery / lack of time in the RTC, or a successful read. The "no such device errror" seems like a hardware or driver problem. Please advise on how to fix. Thank you.
Hello Jeremy Impson,
Is it possible for you to upgrade to LSDK 19.09? RTC is supported on LS1028ARDB since LSDK 19.09 release.
You could download LSDK 19.09 from Layerscape SDK | NXP .
Thanks,
Yiping