question

strider avatar image
strider asked

RTC with Venus OS on Raspberry

Hi, can anybody help me to integrate the RTC module DS3231 on Raspberry VenusOS.

i found an how to, but for Raspbian. this is not the same.

so is there any documentation how to add a RTC module to VenusOS?


thanks

Venus OS
3 comments
2 |3000

Up to 8 attachments (including images) can be used with a maximum of 190.8 MiB each and 286.6 MiB total.

benc-ipind avatar image benc-ipind commented ·

See my post from today:


https://community.victronenergy.com/questions/145288/gaps-in-logging-on-rpi-venus-os.html?childToView=146159#comment-146159


0 Likes 0 ·
kevgermany avatar image kevgermany ♦♦ commented ·
Moved to modifications space
0 Likes 0 ·
johnny-brusevold avatar image johnny-brusevold commented ·

I am using rtc ds1307 on a pi with venus-os 2.90-14 which is never online.

Downloaded https://github.com/raspberrypi/firmware/blob/master/boot/overlays/i2c-rtc.dtbo to /u-boot/overlays/

Added to config.txt

dtparam=i2c_arm=on
dtoverlay=i2c-rtc,ds1307

Haven't done anything else and everything works perfectly, with hw clock sync on reboot.


Since my pi is never online due to no coverage, I have set ntp time sync to manual by adding in /data/var/lib/connman/settings

[global]

TimeUpdates = manual


EDIT (added)

date  (show system time)
date -s '2022-07-23 14:44:11' (set system date/time manually)
hwclock -r  (read time from hwclock)
hwclock -s  (write hwclock time to system)
hwclock -w  (write system time to hwclock)
0 Likes 0 ·
0 Answers

Related Resources