针对你遇到的错误“ioctl(rtc_rd_time) to /dev/rtc0 to read the time failed: invalid argument”,以下是一些可能的解决步骤和建议: 检查ioctl 调用语法是否正确: ioctl 系统调用的语法通常涉及三个参数:文件描述符、命令和命令参数。确保你的调用中这些参数都是正确的。例如,如果你使用的是 C 语言,调用可能...
In short: the rtc-pcf8523 driver checks if the REG_SECONDS_OS flag is set. If it is set, theInvalid argumenterror is produced. According to thedatasheet, the REG_SECONDS_OS flag indicates that The OS flag is set whenever the oscillator is stopped. ...