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
  Rock64 No Audio @ Debian 12 dmitrymyadzelets 2 1,232 04-08-2024, 06:47 AM
Last Post: dmitrymyadzelets
  OpenWRT on the Rock64 CanadianBacon 14 11,360 04-03-2024, 08:48 AM
Last Post: helpmerock
  Rock64 bricked shawwwn 7 7,299 03-17-2024, 12:22 PM
Last Post: dmitrymyadzelets
  Rock64 won't boot luminosity7 10 6,388 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 826 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 2,907 04-29-2023, 04:24 AM
Last Post: newestssd
  Rock64 board not working, no HDMI no Ethernet. EDited 3 4,408 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 3,143 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 1,145 11-28-2022, 02:18 PM
Last Post: Macgyver
  my rock64 dosen't work rookie_267 0 1,316 10-07-2022, 07:50 PM
Last Post: rookie_267

Forum Jump:


Users browsing this thread: 1 Guest(s)