-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rtc-hym8563 5-0051:no valid clock/calendar values available. #16
Comments
Since the default kernel rtc device is rtc0, and when we use external rtc in Allwinner platform, the external rtc is usually initialized to rtc1, so we also need to modify the following kernel configuration to set the value to rtc1: |
diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig |
Since the default kernel rtc device is rtc0, and when we use external rtc in Allwinner platform, the external rtc is usually initialized to rtc1, so we also need to modify the following kernel configuration to set the value to rtc1: CONFIG_RTC_HCTOSYS_DEVICE="rtc1" diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig |
Alternatively, you can just blacklist the |
how just blacklist the rtc_rk808 kernel module? |
The nanopi-r5c and r5s are Rockchip based devices. I am unclear on your Allwinner reference here. Additionally the nanopi images here load the RTC correctly:
|
This article does a good job of describing how to blacklist a module: https://www.networkworld.com/article/3270624/blacklisting-modules-on-linux.html I am interested to see the output of |
@kongjun0 I suppose that you are seeing these errors in the log because you have not installed the RTC battery. |
Good call, I had not even thought about this. These are the batteries I use: https://www.amazon.com/gp/product/B08QCGKCZL |
Most RTC batteries which have 1.25mm between pins on the connector should work. |
rtc button battery installed,The official explanation is that the kernel defaults to rtc0 time. The 8563 with the battery installed is rtc1, or it is selected as rtc1 when compiling the kernel, otherwise it will always report an error. If you can install rtc and point to rtc1 after booting, it should be no problem. You can query rtc1 with the command time, rtc0 does not work. |
Fixed my Nanopi R5C issue at last where rk808 sometimes registered before hym8563 and used as default rtc0. |
Error reported, is there a solution
rtc-hym8563 5-0051:no valid clock/calendar values available.
The text was updated successfully, but these errors were encountered: