[SOLVED} Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-05-12 Thread Rick Thomas
Turns out that the PiHut has a tutorial webpage for just this problem! https://thepihut.com/blogs/raspberry-pi-tutorials/17209332-adding-a-real-time-clock-to-your-raspberry-pi Thanks for all the help! Rick On Tue, Apr 18, 2023, at 11:06 PM, Rick Thomas wrote: > Thanks very much, Pabs! I wi

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-18 Thread Rick Thomas
Thanks very much, Pabs! I will follow up on those links and hopefully get a better understanding of what is going on and why. Perhaps the next time someone has a question like mine, I'll be able to be as helpful to them as the folks here have been to me! Rick On Tue, Apr 18, 2023, at 4:57 PM

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-18 Thread Paul Wise
On Mon, 2023-04-17 at 22:21 -0700, Rick Thomas wrote: > What would have been even greater is if the error messages include > references to some documentation that explained the problem and gave > some clues to the larger context in which the problem arose. The messages I sent that patch adding ar

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-18 Thread Uwe Kleine-König
On 4/16/23 10:01, Diederik de Haas wrote: On Sunday, 16 April 2023 04:47:37 CEST Rick Thomas wrote: I've got a Raspberry Pi 4B (4GB) with a DS3231 RTC module. I can make the combo work with Ubuntu and RaspberryPI-OS. I'd like to try it with the plain-vanilla Debian from

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-18 Thread Georg Gast
I searched for other ways but this was the only way to do it from userspace without device tree changes ... The online device tree overlays don't work without kernel support and a DT that got compiled with the "-@" option. That is not the case with stock Debian kernels. In my opinion, dtcs are n

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-17 Thread Rick Thomas
On Mon, Apr 17, 2023, at 7:55 PM, Paul Wise wrote: > On Mon, 2023-04-17 at 13:39 +0300, Reco wrote: >> On Mon, Apr 17, 2023 at 02:48:44AM -0700, Rick Thomas wrote: >> > Sadly,   when I do: >> >     i2cdetect -l >> > I get nothing back.  Leading me to conclude that there are no busses >> > availabl

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-17 Thread Paul Wise
On Mon, 2023-04-17 at 13:39 +0300, Reco wrote: > On Mon, Apr 17, 2023 at 02:48:44AM -0700, Rick Thomas wrote: > > Sadly,   when I do: > >     i2cdetect -l > > I get nothing back.  Leading me to conclude that there are no busses > > available. > > "modprobe i2c-dev" should fix that. This seems li

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-17 Thread Paul Wise
On Sun, 2023-04-16 at 11:17 +0200, Georg Gast wrote: > ExecStart=/bin/sh -c "modprobe i2c_bcm2835 && modprobe i2c_bcm2708 && > modprobe rtc_ds1307 && sleep 1 && echo ds1307 0x68 > > /sys/class/i2c-adapter/i2c-1/new_device && /sbin/hwclock -s" I feel like there should be a better way to do this th

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-17 Thread Rick Thomas
That helps some... root@pi:~# i2cdetect -l i2c-3 i2c bcm2835 (i2c@7e804000) I2C adapter i2c-1 i2c Broadcom STB : I2C adapter i2c-2 i2c bcm2835 (i2c@7e205000) I2C adap

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-17 Thread Reco
Hi. On Mon, Apr 17, 2023 at 02:48:44AM -0700, Rick Thomas wrote: > Sadly, when I do: > i2cdetect -l > I get nothing back. Leading me to conclude that there are no busses > available. "modprobe i2c-dev" should fix that. Reco

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-17 Thread Rick Thomas
Sadly, when I do: i2cdetect -l I get nothing back. Leading me to conclude that there are no busses available. FWIW, when I do: /sbin/hwclock -vr I get: hwclock from util-linux 2.36.1 System Time: 1681724077.614748 Trying to open: /dev/rtc0 Trying to open: /dev/rtc Tr

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-17 Thread Reco
Hi. On Sun, Apr 16, 2023 at 06:41:53PM -0700, Rick Thomas wrote: > I found this in journalctl : > Apr 16 18:23:33 pi kernel: rtc-ds1307: probe of 1-0068 failed with error > -121 > Apr 16 18:23:33 pi kernel: i2c i2c-1: new_device: Instantiated device > ds1307 at 0x68 > > Is rtc_d

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-16 Thread Rick Thomas
Thanks for your response, Georg! Is there somewhere that these modules are documented that I can read-up for a more detailed understanding? As an experiment, I tried running the following (It didn't work, but maybe you can suggest a modification that will. I'm probably not fully understanding

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-16 Thread Diederik de Haas
On Sunday, 16 April 2023 11:17:43 CEST Georg Gast wrote: > ExecStart=/bin/sh -c "modprobe i2c_bcm2835 && modprobe i2c_bcm2708 && > modprobe rtc_ds1307 && sleep 1 && echo ds1307 0x68 > > /sys/class/i2c-adapter/i2c-1/new_device && /sbin/hwclock -s" Nice :-) I wonder whether this (essentially) is wha

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian(not Raspbian)

2023-04-16 Thread gene heskett
On 4/16/23 04:01, Diederik de Haas wrote: On Sunday, 16 April 2023 04:47:37 CEST Rick Thomas wrote: I've got a Raspberry Pi 4B (4GB) with a DS3231 RTC module. I can make the combo work with Ubuntu and RaspberryPI-OS. I'd like to try it with the plain-vanilla Debian from

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-16 Thread Georg Gast
Am Sun, 16 Apr 2023 10:01:08 +0200 schrieb Diederik de Haas : > On Sunday, 16 April 2023 04:47:37 CEST Rick Thomas wrote: > > I've got a Raspberry Pi 4B (4GB) with a DS3231 RTC module. I can > > make the combo work with Ubuntu and RaspberryPI-OS. I'd like to > > try it with the plain-vanilla Deb

Re: Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-16 Thread Diederik de Haas
On Sunday, 16 April 2023 04:47:37 CEST Rick Thomas wrote: > I've got a Raspberry Pi 4B (4GB) with a DS3231 RTC module. I can make the > combo work with Ubuntu and RaspberryPI-OS. I'd like to try it with the > plain-vanilla Debian from but I > can't find i

Activate a Real Time Clock chip on I2C in Raspberry Pi 4B with Debian (not Raspbian)

2023-04-15 Thread Rick Thomas
I've got a Raspberry Pi 4B (4GB) with a DS3231 RTC module. I can make the combo work with Ubuntu and RaspberryPI-OS. I'd like to try it with the plain-vanilla Debian from but I can't find instructions for activating the I2C and RTC hardware in that OS.