针对你提出的“hwclock: ioctl(rtc_rd_time) to /dev/rtc0 to read the time failed: invalid argument”错误信息,这里是一些可能的解决步骤和建议: 分析错误信息: 错误信息表明hwclock命令在尝试通过ioctl系统调用读取/dev/rtc0设备的时间时遇到了问题,具体错误是“invalid argument”(无效参数)。这通常意味着提...
1、先写入一次RTC时间hwclock -w; 2、再读取即可hwclock -r; 如果掉电重启还是这样,就检查 RTC 电路电池是否有电,时钟是否起振,时钟起振不正常或者不起振会导致掉电后,RTC芯片里面的值出错,就会出现这种现象。
The purpose of a battery-backupped hw clock however is to keep time, especially on power loss. Diagnosis 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: ...
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...
As you've discovered, that shouldn't stop the basic RTC functions working. boatbodger changed the title (ds1307/ds3231) hwclock: ioctl(RTC_RD_TIME) to /dev/rtc0 to read the time failed: Invalid argument (ds1307/ds3231) hwclock: ioctl(3, RTC_UIE_ON, 0): Invalid argument Oct 12, ...