[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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 what a DTO does.
I'm pretty sure that based on the 'compatible' the appropriate kernel module 
gets loaded (rtc_ds1307 in this case) and what you described above, seems 
reasonable to be the rest of what it does/triggers.

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: