Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

RTC ds1307 is not connecting rockpi4c+

Featured Replies

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

Solved by Werner

  • Author

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.

  • Author

It started working after running the following commands:

 

sudo modprobe rtc-ds1307
 

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

 

Thank you for 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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.