[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 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 than manually doing
/sys changes? Is there no i2c command for wrapping /sys i2c changes?

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

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


Reply to: