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.
#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.
#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?
#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 ethernet@ff550000 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 i2c@ff150000 okay

Give it a try, and see if you pick up the RTC now using i2cdetect -y 0
#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
#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
#17
Attached is the RTC Battery connection circuit, some modification to board is needed.


Attached Files Thumbnail(s)
   


Possibly Related Threads…
Thread Author Replies Views Last Post
  Trustzone support for Rock64 capablegh 1 122 07-17-2021, 10:15 AM
Last Post: capablegh
  Python GPIO Library for the Rock64 (R64.GPIO) Leapo 37 39,374 07-02-2021, 03:20 PM
Last Post: klausfelix
  rock64, compile problems "illegal instruction", "memory fault" -> ddr_333Mhz? klausfelix 0 117 07-02-2021, 03:13 PM
Last Post: klausfelix
Information Serial Console for the Rock64 MarkHaysHarris777 33 31,059 06-24-2021, 12:24 PM
Last Post: mikeklien
  lost eletronic component rock64 marvin1986 1 361 06-01-2021, 06:27 PM
Last Post: 8bit
Shocked Rock64 - Reboots after few minutes addezai 2 500 04-22-2021, 07:03 PM
Last Post: addezai
Question Hardware issues with Rock64 grobbs 10 1,736 04-08-2021, 05:24 AM
Last Post: t4_4t
  Rock64 Long Term stability ramprasad 4 2,006 03-16-2021, 07:23 PM
Last Post: Rocklobster
  Rock64 No Audio - Solved wbecks 11 15,597 03-15-2021, 03:15 PM
Last Post: lowry
  Safest way to send shutdown signal to headless Rock64 SMB server? bmurphr1 3 1,242 03-14-2021, 06:01 PM
Last Post: clach04

Forum Jump:


Users browsing this thread: 1 Guest(s)