* [rtc-linux] Synchronization system time to rtc in Linux
@ 2015-09-18 4:07 Hao Nguyen
2015-09-20 20:39 ` Alexandre Belloni
0 siblings, 1 reply; 3+ messages in thread
From: Hao Nguyen @ 2015-09-18 4:07 UTC (permalink / raw)
To: rtc-linux
[-- Attachment #1.1: Type: text/plain, Size: 974 bytes --]
Hi everyone,
We're working on our custom board running Linux kernel v2.6.37.
Our board uses CBC34803 chip cho real time function. Everything is ok
except a problem.
The problem is when i change system time using "date" command with option
'-s', time doesn't automatically update to RTC CBC34803.
My question: which is responsible for update system time to rtc whenever
the system time changes?
Thanks you for your reading, hope to hear some answer!!
--
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1434 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rtc-linux] Synchronization system time to rtc in Linux
2015-09-18 4:07 [rtc-linux] Synchronization system time to rtc in Linux Hao Nguyen
@ 2015-09-20 20:39 ` Alexandre Belloni
2015-09-21 8:07 ` Hao Nguyen
0 siblings, 1 reply; 3+ messages in thread
From: Alexandre Belloni @ 2015-09-20 20:39 UTC (permalink / raw)
To: Hao Nguyen; +Cc: rtc-linux
Hi,
On 17/09/2015 at 21:07:19 -0700, Hao Nguyen wrote :
> We're working on our custom board running Linux kernel v2.6.37.
>
> Our board uses CBC34803 chip cho real time function. Everything is ok
> except a problem.
> The problem is when i change system time using "date" command with option
> '-s', time doesn't automatically update to RTC CBC34803.
> My question: which is responsible for update system time to rtc whenever
> the system time changes?
hwclock is the tool you are looking for.
--
Alexandre Belloni, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [rtc-linux] Synchronization system time to rtc in Linux
2015-09-20 20:39 ` Alexandre Belloni
@ 2015-09-21 8:07 ` Hao Nguyen
0 siblings, 0 replies; 3+ messages in thread
From: Hao Nguyen @ 2015-09-21 8:07 UTC (permalink / raw)
To: rtc-linux; +Cc: conghaobk, alexandre.belloni
[-- Attachment #1.1: Type: text/plain, Size: 1670 bytes --]
Hi Alexandre Belloni,
I know that hwclock can sync the system time to rtc with option -w.
But eveytime i change the system time, i need to use command "hwclock -w"
to update time to rtc.
I want the synchronization can be done automatically. This mean, everytime
i change the system time by "date" command, the time is updated to rtc
automatically.
Do you have any idea for this? Does linux support this?
On Monday, September 21, 2015 at 3:39:08 AM UTC+7, Alexandre Belloni wrote:
>
> Hi,
>
> On 17/09/2015 at 21:07:19 -0700, Hao Nguyen wrote :
> > We're working on our custom board running Linux kernel v2.6.37.
> >
> > Our board uses CBC34803 chip cho real time function. Everything is ok
> > except a problem.
> > The problem is when i change system time using "date" command with
> option
> > '-s', time doesn't automatically update to RTC CBC34803.
> > My question: which is responsible for update system time to rtc
> whenever
> > the system time changes?
>
> hwclock is the tool you are looking for.
>
> --
> Alexandre Belloni, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>
--
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2745 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-21 8:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-18 4:07 [rtc-linux] Synchronization system time to rtc in Linux Hao Nguyen
2015-09-20 20:39 ` Alexandre Belloni
2015-09-21 8:07 ` Hao Nguyen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox