On Tue, Jun 10, 2014 at 9:24 PM, Justin Morgan <jdm...@gmail.com> wrote:
> I am using a BBB running the new Debian image. I have connected a DS1307 RTC
> (via a "Tiny RTC I2C modules" breakout board) to I2C2, and have added
> "cape_enable=capemgr.enable_partno=BB-BONE-RTC" to uEnv.txt such that my BBB
> does see this RTC as /dev/rtc1.
>
> I want to synchronize the system clock from this RTC on boot (and not the
> BBB's rtc-omap that is registered as /dev/rtc0), so I modified
> /etc/init.d/hwclock.sh such that HCTOSYS_DEVICE=rtc1. I thought that should
> do it... after all, I was able to get a Raspberry Pi running Raspian to
> synchronize with a DS1307 on boot following these instructions:
> http://blog.elevendroids.com/2012/12/setting-up-hardware-rtc-in-raspbian/
>
> However, my BBB keeps synchronizing with rtc-omap on boot... and doesn't
> seem to be running hwclock.sh, either (time after boot is back in May, not
> the current time as I confirm by sudo hwclock -r -f /dev/rtc1).
>
> So where is Debian actually synchronizing the time in the boot process, and
> how do I tell it I want to use my battery-backed clock?

So we have an init script to get the clock in the 'ball park'

https://github.com/beagleboard/image-builder/blob/master/target/init_scripts/generic-debian.sh#L19

It's located at /etc/init.d/boot_scripts.sh

You can either remove "/etc/timestamp" and it'll ignore resetting the
clock on bootup.

Regards,

-- 
Robert Nelson
http://www.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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to