Please see the original article discussing this topic located at:
Adding a Real Time Clock to the GoPiGo
Though this may seem like re-posting the same question to a different thread, (obviously bad), I am creating a new thread because:
- The original thread is somewhat old and most fora tend to get annoying when you resurrect old threads.
- This question is sufficiently different, that I believe an entirely separate question is in order.
If I have inadvertently offended, please accept my apologies.
Dexter OS does not have any semblance to a reasonable clock, (at least as of version 2.2.2, I have not yet powered up Charlie with 2.4.4.) The result of this is that both file time-stamps and (more importantly) log file entries make no sense due to the time being off by insane amounts.
I have purchased (several) hardware Real Time Clock modules from Adafruit, and they have a nice tutorial on how to add true hardware RTC support to the Raspberry Pi.
Viz.: Adding a Real Time Clock to the Raspberry Pi
The article is several pages long, but at the end of it all you have a version of Raspbian that has true hardware RTC support.
Even within a classroom environment (<<== Hey Bosses!! Hint! Hint!), the ability to troubleshoot using log files is essential - maybe not for the students, (at least not at the beginning), but it can be essential for an instructor trying to make sense out of a classroom full of non-functional GoPiGo robots.
This issues is compounded by the fact that due to any kind of RTC support and/or internet connectivity, time stamps can be difficult to use.
Dexter OS does not support any kind of “root” access, at least without a lot of painful hacks that might cause more trouble than they are worth. So, the normal “sudo-this-and-that” approach is unavailable.
- Is it possible (in the current 2.4.4 version of Dexter OS), to run commands as root via sudo?
- Absent that, is it possible to gain access to the content of the O/S on an external Linux system and edit certain files to:
a. Disable the “fake-hwclock” feature
b. Enable the real hardware RTC using equivalent techniques as noted in Adafruit’s article?
I strongly suspect that adding RTC support in Raspbian for Robots is essentially the same as any other version of Raspbian. However, I would like to know - both for myself and for others - how to enable this in Dexter OS and/or Cinch. Preferably both.