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.

External RTC DS1307 usage

Featured Replies

Hi
I am having issues getting an external RTC (DS1307) to work properly on the OrangePi + 2E
I am using the current version of ARMBIAN 5.6.5 (Stretch)
The hardware side of things works perfectly.

If I use i2cdetect -y 0, I see the I2C bus transaction on an oscilloscope and I also see the device as shown

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

The problem is when I try and attach a driver to this device permanently, it seems to work until I have to reboot or power down. When I reboot, the device is again displaying as above. I do not see "UU" as I would expect.
I followed the steps here, but it doesn't work. It does seem to work, however on older versions of Armbian.

https://forum.armbian.com/topic/4074-real-time-clock-ds3231/

 

I have done all the steps as per the thread, I also made changes to rc.local, but none of these work. All that happens is the OrangePi boots up to some arbitrary time until it can get the correct time via NTP.

 

So obviously the driver is not being loaded at boot and the rest of the system fails to get time from it so it falls back to NTP.

 

Any suggestions or perhaps the correct way of doing this?

 

did you insert

rtc-ds1307

in /etc/modules?

and 

echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-0/new_device 

hwclock -s

in /etc/rc.local?

  • Author

Thank you

There's the first mistake...
/etc/modules is missing.. I didn't know it had to go in there.

Will change that and then test again

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.