News:

LATEST RELEASE:  FPP 8.1 - Download from here - https://github.com/FalconChristmas/fpp/releases/tag/8.1

+-+-

+-User

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+-Site Stats

Members
Total Members: 16591
Latest: dolly
New This Month: 29
New This Week: 3
New Today: 1
Stats
Total Posts: 133603
Total Topics: 16633
Most Online Today: 94
Most Online Ever: 7634
(January 21, 2020, 02:14:03 AM)
Users Online
Members: 2
Guests: 46
Total: 48

Orange Pi One and external DS3231 RTC on rtc1

Started by Arti G, March 13, 2023, 09:29:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Arti G

    Hello

    There is a problem with external RTC on Orange Pi One board, because it has onboard RTC (rtc0) and if I use external one it doesn't work because FPP tries to read from rtc0. How can I change rtc0 to rtc1 and i2c1 to itc0?

    If anyone would try to use Orange Pi with RTC here is what I had to do to even have external DS3231 RTC working:

    • sudo armbian-config
    turn on i2c (default is off)
    • sudo nano /etc/modules
    write:
    g_serial
    rtc-ds1307
    • sudo nano  /etc/rc.local
    write before "exit":
    echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device hwclock -s

sudo i2cdetect -y -r 1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
 00:                         -- -- -- -- -- -- -- --
 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 70: -- -- -- -- -- -- -- --

sudo i2cdetect -y -r 0
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
 00:                         -- -- -- -- -- -- -- --
 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
 70: -- -- -- -- -- -- -- --

sudo hwclock -r -f /dev/rtc0
1970-01-01 01:01:55.479533+01:00

sudo hwclock -r -f /dev/rtc1                                                                                                                                                      
2023-03-12 21:46:39.992017+01:00

dsmeg
[    2.177274] sun6i-rtc 1f00000.rtc: registered as rtc0
[    2.177312] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T00:00:10 UTC (10)
[    2.177435] sun6i-rtc 1f00000.rtc: RTC enabled
[   61.883505] rtc-ds1307 0-0068: registered as rtc1
[   61.883788] i2c i2c-0: new_device: Instantiated device ds1307 at 0x68


I tried to edit:
/opt/fpp/scripts/piRTC
/opt/fpp/etc/update-RTC
but still FPP is loading time from rtc0. Any idea what file I should edit?

[/list]

Support FPP

+- Recent Topics

Fresh Install on RPi Zero WH Initial WiFi Connection for Headless Configuration by FalconGoody
Today at 01:47:57 PM

F16V5 WiFi by DaSarge
Today at 11:21:42 AM

Bottom of all my videos are distorted by breese
Today at 04:27:46 AM

FM Radio Not recgnized by Poporacer
October 14, 2024, 04:53:34 PM

Abnormal conditions Voltage to low by dkulp
October 14, 2024, 10:22:36 AM

Anyone else having FPP 8.0 issues with Remote Falcon? by JonD
October 14, 2024, 06:25:37 AM

FPP 8.2 Released! by zaicik
October 14, 2024, 05:31:01 AM

FPP Config for K16 -> Genius LR? by Poporacer
October 13, 2024, 03:24:27 PM

After Saving Cannot Upload Sequence by Poporacer
October 13, 2024, 12:05:46 PM

Multiple writes per second to fppd.log while any sequence is playing - Resolved by Poporacer
October 13, 2024, 12:01:42 PM

Powered by EzPortal
Powered by SMFPacks Menu Editor Mod