Does rock64 have a RTC
#11
thanks. I also have a raspberry pi and have no problem getting the RTC to work with it. I even wrote a guide on the OMV forum to help others.

https://forum.openmediavault.org/index.p...4-Stretch/

The issue with rock64 is:

1. i'm not sure which end of the GPIO board is which. I have tried putting it at all four ends.
2 There is no config.txt file in the /boot directory on the rock64

Basically, the board does not seem to detect the RTC.
  Reply
#12
(06-15-2018, 03:50 PM)jata Wrote: 1. i'm not sure which end of the GPIO board is which. I have tried putting it at all four ends.
2  There is no config.txt file in the /boot directory on the rock64

Basically, the board does not seem to detect the RTC.

Pin 1 (as marked on the board itself) on the rock64 is the same as pin 1 on the raspberry pi...

No, there is no config.txt because it isn't configured the same as the RPi, so a RPi guide will only get you so far. /boot/efi/extlinux/extlinux.conf will let you set any kernel boot time arguments that you need though. I believe you also need to actually enable I2C now via the dts overlays? Since as of 0.6.27 all devices (except SPDIF) exposed via the GPIO pins are disabled by default.
  Reply
#13
Thanks. That is helpful. I think you are correct about dts overlays - as they are set in config.txt on the RPI.

I just have no idea how to set them on the rock64. Does anyone have any idea?
  Reply
#14
(06-15-2018, 05:04 PM)jata Wrote: I just have no idea how to set them on the rock64. Does anyone have any idea?

Just in case you didn't realise, there was a link in my earlier reply that may have answered that question. Wink

The example given on that page (which you run from the command line) is

Code:
enable_dtoverlay eth1 [email protected] okay

... and is an example of enabling eth1 (which would be the second Ethernet port available via the DAC shield for the rock64). 

Following that syntax and the instruction to look at the DTS include file for the device names, I would suggest that to enable I2C bus 0 (which looks to be on pins 3 & 5 from the GPIO doc, the below should work...

Code:
enable_dtoverlay i2c0 [email protected] okay

Give it a try, and see if you pick up the RTC now using i2cdetect -y 0
  Reply
#15
Thanks for all the help everyone. I was only trying to make the I2C RTC work on rock64 as an experiment/test. Got quite close but have given up for now as my RTC module does not fit well on the board - battery touches other pins and got very hot so I immediately stopped my experiment :-)

Thanks again
  Reply
#16
(06-19-2018, 05:05 PM)jata Wrote: Thanks for all the help everyone. I was only trying to make the I2C RTC work on rock64 as an experiment/test. Got quite close but have given up for now as my RTC module does not fit well on the board - battery touches other pins and got very hot so I immediately stopped my experiment :-)

Thanks again

Cellotape or scotch tape  on the underside of the board might help in a pinch, although if you have some proper electrical insulating tape that would be better as it is thicker. Kapton tape is another option. Wink

Good call on stopping... getting hot is not a good thing, especially if it is the battery warming up! Big Grin
  Reply
#17
Attached is the RTC Battery connection circuit, some modification to board is needed.


Attached Files Thumbnail(s)
   
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Rock64 problems with external Hard Drive and powering mjd 1 34 8 hours ago
Last Post: helsinki92
  ROCK64 as VPN Gateway Talkabout 18 387 Today, 03:42 AM
Last Post: Talkabout
  Rock64 Long Term stability ramprasad 1 63 12-09-2019, 04:34 PM
Last Post: evilbunny
  Selling Rock64's dugalbug 6 341 10-19-2019, 12:12 PM
Last Post: dugalbug
Exclamation Rock64 v2 freeze help! JuanDTM 5 249 10-16-2019, 06:37 PM
Last Post: Rocklobster
  Rock64 for video surveillance martinschm 6 478 09-19-2019, 01:56 AM
Last Post: Jozek
  ROCK64 not booting TheGiolly 10 496 09-09-2019, 06:57 AM
Last Post: Rocklobster
  Rock64 v3 - POE P1V 3 625 08-18-2019, 05:51 AM
Last Post: mcerveny
  Rock64 board seems defective, how to confirm? Josk 1 189 08-15-2019, 08:24 PM
Last Post: tllim
  Purchase Rock64 V3? richardk 6 722 08-03-2019, 12:56 PM
Last Post: mcerveny

Forum Jump:


Users browsing this thread: 1 Guest(s)