RTC for ROCK 5C

Recently I’ve bought few units ROCK 5C and installed Debian lite. I found out the hwclock command didn’t function and i add in i2c RTC hardware module. I tried add this command echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-0/new_device but still cannot function. Appreciate if you can help me to solve the problem. Thanks.

please try the fllowing cmd:

echo ds3231 0x68 | sudo tee /sys/class/i2c-adapter/i2c-0/new_device

if not work, please describe your step in detail.

Hi! Nasca, thanks for your fast response. I’ve tried but still the same. Please find the attachment for your reference.

rtc ds3231 is not recognised, please check the connection.

I’m using the same RTC module as I am in raspberry pi3. Please find the attachment for your reference.
rtc2

then, how you connect this module with rock 5c ? please describe in detail.

Hi! Nasca, this is my simple drawing connection RTC3231 with Rock 5C.
rtc3

if you connect to ROCK 5C PIN_3 with SDA and PIN_5 with CLK which means that you connect the rtc with ROCK 5C I2C-8, then you are supposed to use the I2C-8, and you need to enable I2C-8 first by system tool rsetup.

I’ve done the configuration in rsetup and reboot. The i2cdetect still cannot display the address. Please find the attachment.

what you enable and connect is i2c-8, so please try the fllowing cmd,

i2cdetect -r -y 8

Thank you very much. I managed activate using this command:echo ds3231 0x68 | sudo tee /sys/class/i2c-adapter/i2c-8/new_device