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 Module on ROC-RK3328-CC N00b help!

Featured Replies

I was able to install an ebay 18650 UPS on my ROC-RK3328-CC, and found out in the instructions that it also has an RTC Module. I would like to utilize that feature, if possible, but I am not entirely sure how to go about it. I have used the armbian-config to enable i2c7, and... that's pretty much as far as I got.

 

Viewing the instructions under "How to setup and check the RTC module:" https://wiki.52pi.com/index.php/UPS_(With_RTC_%26_Coulometer)_For_Raspberry_Pi_SKU:_EP-0118

 

The instructions call to use modprobe i2c-bcm2835 however, it doesn't appear that my copy of Armbian 20.08.7 Buster has this driver.

 

Is there another way to setup an RTC Module? I2C is a completely new topic for me, and not something I have worked with before, thanks in advance :)

  • Author

It appears that I have these drivers:

 

$ ls /lib/modules/$(uname -r)/kernel/drivers/i2c/busses
i2c-cadence.ko  i2c-cbus-gpio.ko  i2c-diolan-u2c.ko  i2c-meson.ko  i2c-mv64xxx.ko  i2c-robotfuzz-osif.ko  i2c-taos-evm.ko  i2c-tiny-usb.ko

 

$ls /lib/modules/$(uname -r)/kernel/drivers/rtc
rtc-ac100.ko    rtc-cadence.ko  rtc-ds1347.ko  rtc-fm3130.ko           rtc-m41t93.ko   rtc-mcp795.ko      rtc-pcf85063.ko  rtc-pcf8583.ko  rtc-rs5c348.ko   rtc-rx4581.ko  rtc-rx8581.ko   rtc-x1205.ko
rtc-as3722.ko   rtc-ds1302.ko   rtc-ds1390.ko  rtc-hid-sensor-time.ko  rtc-m41t94.ko   rtc-meson-vrtc.ko  rtc-pcf8523.ko   rtc-r9701.ko    rtc-rv3028.ko    rtc-rx6110.ko  rtc-s35390a.ko
rtc-bd70528.ko  rtc-ds1305.ko   rtc-ds3232.ko  rtc-isl12026.ko         rtc-max6902.ko  rtc-pcf2123.ko     rtc-pcf85363.ko  rtc-rc5t583.ko  rtc-rv3029c2.ko  rtc-rx8010.ko  rtc-s5m.ko
rtc-bq32k.ko    rtc-ds1343.ko   rtc-em3027.ko  rtc-m41t80.ko           rtc-max6916.ko  rtc-pcf2127.ko     rtc-pcf8563.ko   rtc-rc5t619.ko  rtc-rv8803.ko    rtc-rx8025.ko  rtc-sd3078.ko

Remember the bcm2835 is the RPi SoC, you'll find no drivers for that mess in an Armbian distro for another SoC.  You need to see if I2C is enabled via overlay for your board, and if you have an overlay for the specific RTC, in this case looking at your documentation rtc-ds1307.

 

If you don't want the kernel to be using it, you should be able to probe for it on I2C0 and use some reference materials on the web to operate it:

 

image.png.2630eff3b5105cac5edacd3ac8116dc2.png

Guest
This topic is now closed to further replies.

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.