Jump to content

RTC Module on ROC-RK3328-CC N00b help!


trillobite

Recommended Posts

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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