-
Notifications
You must be signed in to change notification settings - Fork 5k
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
bcm2711_defconfig: include CONFIG_RTC_HCTOSYS=y to automatically set system time from rtc on cm4io #4205
Comments
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
confused about 4413b6e |
defconfig files only contain differences from the norm, which is helpful when new options are added (but does have a few pitfalls). In the case of |
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
Your handling of this issue has been a delight - fast and knowledgeable: Thank you very much! |
That's the usual way things work here, but I can save you the trouble this time. |
kernel: drm/vc4: crtc: Reduce PV fifo threshold on hvs4 See: raspberrypi/linux#4207 kernel: vc4/drm: Adjustments to hdmi audio dma to reduce glitches See: raspberrypi/linux#4208 kernel: overlays: gpio-led: new overlay See: raspberrypi/linux#4206 kernel: bcm2835-codec tweaks See: raspberrypi/linux#4113 kernel: Assign crypto aliases to different AES implementation modules See: raspberrypi/linux#4198 kernel: media: bcm2835-unicam: Fix bug in buffer swapping logic See: raspberrypi/linux#4189 kernel: configs: Add CONFIG_RTS_HCTOSYS=y See: raspberrypi/linux#4205 kernel: overlays: Improve the i2c-rtc,i2c_csi_dsi option firmware: video_decode: For VC1/WMV with no signalled header bytes, use start of 1st buffer See: raspberrypi/linux#4113
kernel: drm/vc4: crtc: Reduce PV fifo threshold on hvs4 See: raspberrypi/linux#4207 kernel: vc4/drm: Adjustments to hdmi audio dma to reduce glitches See: raspberrypi/linux#4208 kernel: overlays: gpio-led: new overlay See: raspberrypi/linux#4206 kernel: bcm2835-codec tweaks See: raspberrypi/linux#4113 kernel: Assign crypto aliases to different AES implementation modules See: raspberrypi/linux#4198 kernel: media: bcm2835-unicam: Fix bug in buffer swapping logic See: raspberrypi/linux#4189 kernel: configs: Add CONFIG_RTS_HCTOSYS=y See: raspberrypi/linux#4205 kernel: overlays: Improve the i2c-rtc,i2c_csi_dsi option firmware: video_decode: For VC1/WMV with no signalled header bytes, use start of 1st buffer See: raspberrypi/linux#4113
I only had a quick look but you likely also want to add the matching config pair to this which is the option to sync from from the system to the hardware clock (no, I've no idea why it's not implemented as part of the same config option): |
Have a quick look at the .config file instead. |
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: #4205 Signed-off-by: Phil Elwell <[email protected]>
The recently improved RTC_HCTOSYS option now works with RTC drivers in modules, making it much more useful in that it removes the need to run hwclock -s in order to synchronise the system clock. See: raspberrypi#4205 Signed-off-by: Phil Elwell <[email protected]>
Considering f9b2a4d
I suggest to include
in the default kernel configuration. I have done so and compiled a kernel for CM4 (b03140 on a cm4io-board), which additionally has
dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi
inconfig.txt
This works very well and spares of
hwclock -r
- shenanigans.I have verified it works well on cm4 (note my kernel is additionally built with
CONFIG_RTC_DEBUG=y
for more verbose messages)and have verified it has no adverse effects on rpi without rtc, in this case rpi4b. There the first timejump is from systemd-timesyncd (without internet connection, from saved timestamp).
config diff for reference
@pelwell
The text was updated successfully, but these errors were encountered: