Re: [beagleboard] Using Real Time clock overlay

2018-02-23 Thread Robert Nelson
On Fri, Feb 23, 2018 at 4:35 PM,   wrote:
> I am trying to use a RTC click overlay. I installed the file in uEnv.txt,
> however I don't know how to utilize the RTC. Is there some way to set the
> time and use it as the hardware time so that every time the pocketbeagle
> boots it uses the RTC time?

So one thing the RTC click overlays does, it swap's the am335x rtc
(normally found on /dev/rtc0) with the click RTC (which would normally
be /dev/rtc1)

So as long as you have any network plugged in, systemd-timesyncd will
pretty much properly set /dev/rtc0 for you..

ARCh has a good doc here:

https://wiki.archlinux.org/index.php/time#Set_system_clock

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYj7H6Sksk1yfMkwh%2Bh-9Y2ULY7kFVeLVL%2BqpfB-fBTByA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Using Real Time clock overlay

2018-02-23 Thread John Syne
There is a very good book that explains everything you will need in embedded 
systems using Linux. I has a complete chapter on RTC.

Linux Device Drivers Development by John Madieu, published by Packt Publishing 
2017.
This book doesn’t cover BBB directly, but it covers all Linux subsystems, such 
as SPI, I2C, RTC, DMA, etc

If you are looking for a book that covers BBB and the build cycle and root file 
system, then this book is very helpful:

Mastering Embedded Linux Programming - Second Edition by Chris Simmons, 
published by Packt Publishing 2017.

These two books will get you up and running so you are able to help yourself. I 
wish I had these books 10 years ago. These are the only two books that deal 
with the latest kernels and Device Tree. 


Regards,
John




> On Feb 23, 2018, at 2:35 PM, zacharyp...@gmail.com wrote:
> 
> I am trying to use a RTC click overlay. I installed the file in uEnv.txt, 
> however I don't know how to utilize the RTC. Is there some way to set the 
> time and use it as the hardware time so that every time the pocketbeagle 
> boots it uses the RTC time?
> 
> -- 
> For more options, visit http://beagleboard.org/discuss 
> 
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to beagleboard+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/57c6fac3-8c18-4728-aac5-86b2a1930845%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/3D41FA47-D82F-47C4-9C00-8A1F59159812%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Using Real Time clock overlay

2018-02-23 Thread zacharypina
I am trying to use a RTC click overlay. I installed the file in uEnv.txt, 
however I don't know how to utilize the RTC. Is there some way to set the 
time and use it as the hardware time so that every time the pocketbeagle 
boots it uses the RTC time?

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/57c6fac3-8c18-4728-aac5-86b2a1930845%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.