1、先写入一次RTC时间hwclock -w; 2、再读取即可hwclock -r; 如果掉电重启还是这样,就检查 RTC 电路电池是否有电,时钟是否起振,时钟起振不正常或者不起振会导致掉电后,RTC芯片里面的值出错,就会出现这种现象。
s3c2410-rtc s3c2410-rtc: rtc only supports 100 years hwclock: RTC_SET_TIME: Invalid argument 以上错误信息都是因为 year 设置不当引起的。没有设置 RTC , RTC 也不会启动计时。 下面首先设置正确的系统时间,然后将系统时间传递给 RTC 。 [root@ltls /]# date 040612282008.20 Sun Apr 6 12:28:20 UT...
Origin of theioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Invalid argumenterror. The origin can be tracked down tothis commitand these 2 lines of code: https://github.com/raspberrypi/linux/blob/961aa2356a25ad04528e91761e7081a25dc983dc/drivers/rtc/rtc-pcf8523.c#L181-L182...
pi@voyager ~ $ sudo hwclock -r hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Input/output error But, if I issued two hwclock commands quickly, the first failed but the second responded Code: Select all pi@voyager ~ $ sudo hwclock -r hwclock: ioctl(RTC_RD_TIM...