Skip to content
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

missing rtc modules for RPi CM4 #17

Closed
ogra1 opened this issue May 3, 2021 · 3 comments
Closed

missing rtc modules for RPi CM4 #17

ogra1 opened this issue May 3, 2021 · 3 comments

Comments

@ogra1
Copy link

ogra1 commented May 3, 2021

To set the clock from /dev/rtc0 on a CM4 the rtc-pcf85063 module needs to be in the pi-kernel initrd ... since there are issues with calling hctosys from the kernel at module load time there probably also needs to be a udev rule like:

$ cat /etc/udev/rules.d/60-rtc.rules
ACTION=="add", SUBSYSTEM=="rtc", ATTRS{hctosys}=="0", RUN+="/usr/sbin/hwclock -s --utc"

and the hwclock binary to set the clock before trying to decrypt/mount the rootfs disk

a corresponding kernel bug has been opened as:

https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1926911

@rzr
Copy link

rzr commented May 17, 2021

May I suggest to also support "rtc-pcf8563.ko" module

I've been trying this module on Pi3:
https://www.olimex.com/Products/Modules/Time/MOD-RTC/open-source-hardware

Relate-to: https://forum.snapcraft.io/t/built-uc20-rasperry-pi-image-hangs-on-boot/23891/25?u=rzr

@xnox
Copy link
Contributor

xnox commented May 21, 2021

"since there are issues with calling hctosys from the kernel at module load time" is not quite right and the udev rule is quite harmful.

If the rtc is working correctly and it is the only rtc available calling hctosys from the kernel at module load time works correctly.

I am kind of inclined to include all the rtc modules that might be available in the initrd.

@rzr
Copy link

rzr commented May 21, 2021

Hi,
Thanks for feedback but I don't need RTC support anymore
since date is updated from image timestamps
https://forum.snapcraft.io/t/built-uc20-rasperry-pi-image-hangs-on-boot/23891/28?u=rzr

@xnox xnox closed this as completed Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants