<div dir="ltr">I'm unfamiliar with Barreleye. Does the host use the BMC as an RTC? Are the commands in the first post being run on the host or on the BMC?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 7, 2016 at 11:23 AM, Patrick Williams <span dir="ltr"><<a href="mailto:patrick@stwcx.xyz" target="_blank">patrick@stwcx.xyz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Jul 07, 2016 at 09:52:36AM -0700, Rick Altherr wrote:<br>
> If ntpd or systemd-timesyncd is running, this makes perfect sense. Linux<br>
> maintains current time in the kernel. The hardware RTC is only used to<br>
> load an initial time at boot and is written during shutdown. When an NTP<br>
> daemon is running and an NTP server is reachable, it will adjust the<br>
> kernel's current time to match NTP time. I believe with timesyncd, it<br>
> simply steps time instead of slewing like ntpd does.<br>
><br>
> What are you trying to accomplish? There is likely a way to do it if you<br>
> can describe what you want to have happen.<br>
<br>
</span>It looks like maybe this is related to Github issue openbmc/openbmc#310.<br>
<br>
<a href="https://github.com/openbmc/openbmc/issues/310" rel="noreferrer" target="_blank">https://github.com/openbmc/openbmc/issues/310</a><br>
<div class="HOEnZb"><div class="h5"><br>
> On Thu, Jul 7, 2016 at 6:06 AM, Vishwanatha Subbanna <<a href="mailto:vishwanath@in.ibm.com">vishwanath@in.ibm.com</a>><br>
> wrote:<br>
><br>
> > hey Joel,<br>
> ><br>
> > Here is what I am seeing on one the Barreleye box that is running<br>
> > "4.4.12-openbmc-20160606-1 : kernel". I can see that time gets set but<br>
> > reverts immediately. Syncing what's in hwclock does not have any effect<br>
> > too. Any thoughts ?<br>
> ><br>
> > root@barreleye:~# date -s '2016-12-25 12:34:56' ; hwclock -w<br>
> > Sun Dec 25 12:34:56 UTC 2016<br>
> ><br>
> > root@barreleye:~# date<br>
> > Thu Jul 7 13:07:37 UTC 2016<br>
> ><br>
> > root@barreleye:~# hwclock -r<br>
> > Sun Dec 25 12:35:01 2016 0.000000 seconds<br>
> ><br>
> > root@barreleye:~# hwclock -s<br>
> ><br>
> > root@barreleye:~# date<br>
> > Thu Jul 7 13:07:52 UTC 2016<br>
> > root@barreleye:~#<br>
> ><br>
> > Thanks<br>
> ><br>
> ><br>
> > -------------------------------------------------------------------------------------<br>
> > Thanks and Regards,<br>
> > Vishwanath.<br>
> > Advisory Software Engineer,<br>
> > Power Firmware Development,<br>
> > Systems &Technology Lab,<br>
> > MG2-6F-255 , Manyata Embassy Business Park,<br>
> > Bangalore , KA , 560045<br>
> > Ph: <a href="tel:%2B91-80-46678255" value="+918046678255">+91-80-46678255</a><br>
> > E-mail: <a href="mailto:vishwanath@in.ibm.com">vishwanath@in.ibm.com</a><br>
> ><br>
> > ----------------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > openbmc mailing list<br>
> > <a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br>
> > <a href="https://lists.ozlabs.org/listinfo/openbmc" rel="noreferrer" target="_blank">https://lists.ozlabs.org/listinfo/openbmc</a><br>
> ><br>
> ><br>
<br>
> _______________________________________________<br>
> openbmc mailing list<br>
> <a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><br>
> <a href="https://lists.ozlabs.org/listinfo/openbmc" rel="noreferrer" target="_blank">https://lists.ozlabs.org/listinfo/openbmc</a><br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Patrick Williams<br>
</font></span></blockquote></div><br></div>