RTC issue on Rockpi e

Hello,

I would like to install RTC , downloaded I2C tool and added in RC.LOCAL (echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
hwclock -s)

rock@rockpie:/etc$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: – -- – -- – -- – -- – -- – -- –
10: – -- – -- – -- – -- UU – -- – -- – -- –
20: – -- – -- – -- – -- – -- – -- – -- – --
30: – -- – -- – -- – -- – -- – -- – -- – --
40: – -- – -- – -- – -- – -- – -- – -- – --
50: 50 – -- – -- – -- – -- – -- – -- – -- –
60: – -- – -- – -- – -- 68 – -- – -- – -- –
70: – -- – -- – -- – --

This is the result i get after this cmd:
rock@rockpie : /etc $ sudo date; hwclock -r
Fri Dec 16 21:03:59 +01 2022
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.

Can anybody help why the hardware clock is not accessible?

RockPi S how to configure RTC clock - Using ROCK Pi S - Radxa Forum

UPDATE 3 - working bash script.

it works for me.