Is there a recipe that works to install the RTC (DS3231/1307)? I googled and tried a lot of things but can not make it work. I succeeded on older Debian versions but now I am lost.
I have Debian 2018-10-07. The hw works as proved by i2cdetect -y -r 2. At address 0x68. “echo ds1307 0x68 >/sys/class/i2c-adapter/i2c-2/new_device” gives: permission denied.
Looks like I need to do something with overlay files? But uEnv.txt does not need to be modified, right? ls -al /dev/rtc*: only gives two entries for rtc0.
Please help.
Many thanks in advance,
Harke
Thanks Robert for your attention. I replaced the line in uEnv.txt and it indeed installs the rtc. But it also uninstalled my display (4D Systems), so I outcommented it.
This is what I see with the line as recommended active:
debian@beaglebone:~$ ls -al /dev/rtc*
lrwxrwxrwx 1 root root 4 Feb 5 16:20 /dev/rtc → rtc1
crw------- 1 root root 252, 0 Feb 5 16:20 /dev/rtc0
crw------- 1 root root 252, 1 Feb 5 16:46 /dev/rtc1
debian@beaglebone:~$ sudo nano /boot/uEnv.txt-------> line outcommented
After reboot:
debian@beaglebone:~$ ls -al /dev/rtc*
lrwxrwxrwx 1 root root 4 Nov 3 2016 /dev/rtc → rtc0
crw------- 1 root root 252, 0 Nov 3 2016 /dev/rtc0
Thanks Robert for your attention. I replaced the line in uEnv.txt and it indeed installs the rtc. But it also uninstalled my display (4D Systems), so I outcommented it.
This is what I see with the line as recommended active:
debian@beaglebone:~$ ls -al /dev/rtc*
lrwxrwxrwx 1 root root 4 Feb 5 16:20 /dev/rtc -> rtc1
crw------- 1 root root 252, 0 Feb 5 16:20 /dev/rtc0
crw------- 1 root root 252, 1 Feb 5 16:46 /dev/rtc1
debian@beaglebone:~$ sudo nano /boot/uEnv.txt-------> line outcommented
After reboot:
debian@beaglebone:~$ ls -al /dev/rtc*
lrwxrwxrwx 1 root root 4 Nov 3 2016 /dev/rtc -> rtc0
crw------- 1 root root 252, 0 Nov 3 2016 /dev/rtc0
Robert, following all of your advise: it works. Thanks a lot! I have installed rtc’s on about 7 BBB’s the last 5 years and it always was a challenge. Mainly because the procedure changed a lot. In addition, I added an rtc service and the Beagle now shows the right time even when not connected to the internet. I still feel a newbie, though.
Thanks again, best regards,
Harke