Jump to content

RTC ds1307 is not connecting rockpi4c+


Go to solution Solved by Werner,

Recommended Posts

Posted

Hello everyone,
I’m trying also to connect the RTC ds1307 in RockPi4C+, but it isn’t detecting by I2C.

Informations:

  • RTC ds1307 used: https://www.seeedstudio.com/Pi-RTC-DS1307.html
  • Armbian OS version: 25.2
  • Kernel version: 6.12.10-current-rockchip64
  • i2c-7 enabled on armbian-config (> System > Kernel > SY210 > rockchip-rk3399-i2c7)
  • When I run the command: sudo i2cdetect -y 7 shows the error Error: Could not open file /dev/i2c-7' or /dev/i2c/7’: No such file or directory
  • When I run the command: sudo i2cdetect -l shows:
  • i2c-0 i2c rk3x-i2c I2C adapter
  • i2c-3 i2c rk3x-i2c I2C adapter

Is someone can help to solve this problem?

Thanks

<
  • Solution
Posted

Check /boot/armbianEnv.txt

 

overlays=i2c1 i2c2 rockchip-rk3399-i2c7

 

 

Try this instead:

overlays=i2c1 i2c2 rk3399-i2c7

 

Posted

Can you provide me with the output of  ls /boot/dtb/rockchip/overlay ?

Posted

It already detected i2c-7.

I think the problem was in the line  "overlay_prefix=rockchip", it was commented in the file /boot/armbianEnv.txt.

 

After that, the i2c-7 already detected, but the rtc module doesn't set datetime when the rock4cplus boots without Internet. 

 

Do you have any suggestion?

 

Thank you for your help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines