paul-onolan
April 5th, 2021, 01:54 AM
I'm trying to get Ubuntu Core 20.04 working with a DS3132 RTC on a Raspberry Pi 3/4. Have done this without difficulty using RaspiOS in the past. I've got it detecting the hardware but systemd service is not working as expected. So far the most useful things I've found are:
https://spellfoundry.com/docs/setting-up-the-real-time-clock-on-raspbian-jessie-or-stretch/
https://www.raspberrypi.org/forums/viewtopic.php?p=1320052
https://www.willhughes.name/post/ds3231_raspi3/#an-2
First contains instructions on installing i2c-tools, which are not included in Ubuntu, and on editing /lib/udev/hwclock-set. The systemd unit in the second link doesn't work (and the hardware isn't detected). With that in the 3rd link the hardware is detected and readable but the systemd service doesn't work. Pointers / advice welcome. Thanks.
My /boot/config.sys
dtparam=i2c_arm=on
dtoverlay=i2c-rtc,ds3231
Modprobe results
ubuntu@pi4:~$ sudo modprobe rtc-ds1307
ubuntu@pi4:~$ sudo modprobe rtc-ds3231
modprobe: FATAL: Module rtc-ds3231 not found in directory /lib/modules/5.4.0-1032-rasp
Not sure how to interpret this. There's a ds3232 driver in both /lib/modules/5.4.0-1028-raspi/kernel/drivers/rtc and /lib/modules/5.4.0-1032-raspi/kernel/drivers/rtc :confused:
https://spellfoundry.com/docs/setting-up-the-real-time-clock-on-raspbian-jessie-or-stretch/
https://www.raspberrypi.org/forums/viewtopic.php?p=1320052
https://www.willhughes.name/post/ds3231_raspi3/#an-2
First contains instructions on installing i2c-tools, which are not included in Ubuntu, and on editing /lib/udev/hwclock-set. The systemd unit in the second link doesn't work (and the hardware isn't detected). With that in the 3rd link the hardware is detected and readable but the systemd service doesn't work. Pointers / advice welcome. Thanks.
My /boot/config.sys
dtparam=i2c_arm=on
dtoverlay=i2c-rtc,ds3231
Modprobe results
ubuntu@pi4:~$ sudo modprobe rtc-ds1307
ubuntu@pi4:~$ sudo modprobe rtc-ds3231
modprobe: FATAL: Module rtc-ds3231 not found in directory /lib/modules/5.4.0-1032-rasp
Not sure how to interpret this. There's a ds3232 driver in both /lib/modules/5.4.0-1028-raspi/kernel/drivers/rtc and /lib/modules/5.4.0-1032-raspi/kernel/drivers/rtc :confused: