Justin Morgan
2014-06-11 02:24:02 UTC
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/*
<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?
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/*
<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?
--
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/d/optout.