Wow! Quick reply, thanks.PhilE wrote:I'm guessing you are using the i2c-rtc overlay? By doing so you are telling the I2C subsystem that the device at 0x68 is owned by the ds1307 driver. If you run "i2cdetect -y 1" you will see that the slot for the 68 address contains "UU" - used.
What you are trying to do is interfere with that device under the feet of the driver, which is not allowed. I think you would get the same result if you took the non-DT route - keep (or add) dtparam=i2c_arm=on, remove dtoverlay=i2c-rtc, reboot then run:
Code: Select all
sudo sh -c "echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device"
I have dtparam=i2c_arm=on in /boot/config.txt. Should dtoverlay also be there or is it in another file?