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

RTC ds3231 vs ds3232 kernel modules #675

Open
wjcarpenter opened this issue Aug 22, 2024 · 1 comment
Open

RTC ds3231 vs ds3232 kernel modules #675

wjcarpenter opened this issue Aug 22, 2024 · 1 comment

Comments

@wjcarpenter
Copy link
Contributor

wjcarpenter commented Aug 22, 2024

  • What crankshaft version? 66525ef, build date 2022-09-11

  • Steps to reproduce the bug, if you're planning to report a bug. Please indicate whether the bug is always repoducible.

    • set RTC to ds3231
    • reboot
    • RTC not found
  • Please provide any further information that you might find helpful if available.

The problem is that the build image does not have kernel module rtc-ds3231. It does have kernel module rtc-ds3232. As a workaround, I tried that and it worked. I first set RTC to ds3231 and then manually edited /etc/modules-load.d/modules.conf to change to loaded module from rtc-ds3231 to rtc-ds3232. The RTC was read correctly on reboot. (Manual edit was needed because neither the GUI nor csmt will allow setting ds3232.)

@wjcarpenter
Copy link
Contributor Author

Hmm. I don't know if this happened before (probably not), but after I built CS locally and booted it, my ds3231 still fails to load a kernel module, but the kernel log shows this:

Sep  2 11:06:35 CRANKSHAFT-NG kernel: [   16.855240] rtc-ds1307 1-0068: registered as rtc0
Sep  2 11:06:35 CRANKSHAFT-NG kernel: [   16.856262] rtc-ds1307 1-0068: setting system clock to 2024-09-02T18:06:34 UTC (1725300394)

So, somehow autodetected as the wrong chip, but it still works. I'm pretty sure this was not the case with the released image since the displayed clock definitely did not show the correct time after a reboot.

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

1 participant