All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Hao Nguyen <conghaobk@gmail.com>
Cc: rtc-linux <rtc-linux@googlegroups.com>
Subject: Re: [rtc-linux] Synchronization system time to rtc in Linux
Date: Sun, 20 Sep 2015 22:39:06 +0200	[thread overview]
Message-ID: <20150920203906.GL4287@piout.net> (raw)
In-Reply-To: <e108d983-f05c-409a-9f98-e86487e6099f@googlegroups.com>

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

  reply	other threads:[~2015-09-20 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-18  4:07 [rtc-linux] Synchronization system time to rtc in Linux Hao Nguyen
2015-09-20 20:39 ` Alexandre Belloni [this message]
2015-09-21  8:07   ` Hao Nguyen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150920203906.GL4287@piout.net \
    --to=alexandre.belloni@free-electrons.com \
    --cc=conghaobk@gmail.com \
    --cc=rtc-linux@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.