Hi Sir:
We use the Revpi core3+,but we find the time is incorrect after each restart,the system is stretch 9.8.Now we cannot access the hardware clock.read time faild: Invalid argument.
Do you know the reason?
RTC:The time is incorrect after each restart
-
- Posts: 30
- Joined: 03 Sep 2018, 10:01
RTC:The time is incorrect after each restart
- Attachments
-
- 3.jpg (548.85 KiB) Viewed 7979 times
-
- 2.jpg (705.4 KiB) Viewed 7979 times
-
- 1.jpg (594.57 KiB) Viewed 7979 times
Re: RTC:The time is incorrect after each restart
Hi Huanghuapan,
this happens while linux is trying to read the time on the rtc device.
It might be caused by the damage of the devicetree, or fault of hardware.
Could you please post the output of following commands for the further debugging:
cat /proc/devices
cat /proc/driver/rtc
ls -l /dev/rtc*
sudo timedatectl
dmesg # executed after timedatectl and cat
tree /proc/device-tree/
this happens while linux is trying to read the time on the rtc device.
It might be caused by the damage of the devicetree, or fault of hardware.
Could you please post the output of following commands for the further debugging:
cat /proc/devices
cat /proc/driver/rtc
ls -l /dev/rtc*
sudo timedatectl
dmesg # executed after timedatectl and cat
tree /proc/device-tree/
Simon
Re: RTC:The time is incorrect after each restart
Hi Simon,
I think I have a somewhat related issue with the hwclock. I cannot discern whether it is a software or hardware issue.
This I get when trying to access the hwclock:
The kernel buffer has the following entries:
And running the suggested commands from the previous post yields the following:
https://support.plassertheurer.com/ws/? ... c24f5fd374
I think I have a somewhat related issue with the hwclock. I cannot discern whether it is a software or hardware issue.
This I get when trying to access the hwclock:
Code: Select all
pt_linux@RevPi35313:~ $ sudo hwclock --verbose
hwclock from util-linux 2.33.1
System Time: 1668522779.433151
Trying to open: /dev/rtc0
Trying to open: /dev/rtc
Trying to open: /dev/misc/rtc
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
Code: Select all
pt_linux@RevPi35313:~ $ sudo dmesg | grep rtc
[ 2.199580] rtc-pcf2127-i2c 1-0051: pcf2127_rtc_read_time: read error
[ 2.201225] rtc-pcf2127-i2c 1-0051: rtc core: registered rtc-pcf2127-i2c as rtc0
[ 2.204321] rtc-pcf2127-i2c 1-0051: pcf2127_rtc_read_time: read error
[ 2.205838] rtc-pcf2127-i2c 1-0051: hctosys: unable to read the hardware clock
[ 2.209365] rtc-pcf2127-i2c: probe of 1-0051 failed with error -121
https://support.plassertheurer.com/ws/? ... c24f5fd374
Re: RTC:The time is incorrect after each restart
Does this error persist, after the system was powered up for a while? If not this is probably because of the super capacitor was not charged fast enough (mostly due to longer time off).
Nicolai
Nicolai