All of lore.kernel.org
 help / color / mirror / Atom feed
From: Felipe Ferreri Tonello <eu@felipetonello.com>
To: poky@yoctoproject.org
Subject: Re: [PATCH] initscripts: added save-rtc to runlevel S
Date: Wed, 09 Jan 2013 09:58:27 -0800	[thread overview]
Message-ID: <50EDAFC3.8090100@felipetonello.com> (raw)
In-Reply-To: <50ED275C.2030605@windriver.com>


Hi Chen,

Thank you for your answer.

On 01/09/2013 12:16 AM, ChenQi wrote:
 > On 01/09/2013 01:35 PM, Felipe Ferreri Tonello wrote:
 >> Hi Chen,
 >>
 >> On 01/08/2013 06:16 PM, ChenQi wrote:
 >>> On 01/09/2013 08:18 AM, eu@felipetonello.com wrote:
 >>>> From: "Felipe F. Tonello" <ftonello@cercacor.com>
 >>>>
 >>>> It is necessary to add save-rtc.sh to runlevel S so the system is
 >>>> updated when
 >>>> it boots up.
 >>> Hi ftonello,
 >>> What do you mean by "system is updated"?
 >> I meant system clock.
 >>
 >> What is happening now is that when you turn off the device, without
 >> system halt, the next time the device is booted up the system clock is
 >> not in sync with the rtc.
 > Hi Felipe,
 >
 > I'm sorry, but I really don't see why this patch works.
 > Below is my understanding for the system clock, hardware clock and
 > /etc/timestamp.
 > (The file name 'save-rtc.sh' is somewhat misleading, 'save-timestamp.sh'
 > would be a more reasonable one.)
 >
 > /etc/timestamp is used to provide a reasonable reference for system time.
 > The initial contents in this file is the building time of the image.
 >
 > The system clock should always be in sync with the rtc as long as the
 > /etc/init.d/hwclock.sh is present, whose main purpose is to sync system
 > clock and hardware clock.
 > No matter whether the system is shutdown normally or crashes, the system
 > clock is according to the hardware clock by hwclock.sh.

Is there anything special to enable hwclock.sh?

I understand what you say, but here that patch was the only way to have 
system clock (down to minutes, also, or even seconds, don't recall) sync 
up with the rtc.

Btw, this patch I did few months ago. So I don't remember exactly what 
was happening.

Do you know by the top of your mind how is this process? Because, as I 
remember, save-rtc.sh was never been called. I'm not sure.

Felipe



  reply	other threads:[~2013-01-09 17:57 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-09  0:18 [PATCH] initscripts: added save-rtc to runlevel S eu
2013-01-09  2:16 ` ChenQi
2013-01-09  5:35   ` Felipe Ferreri Tonello
2013-01-09  8:16     ` ChenQi
2013-01-09 17:58       ` Felipe Ferreri Tonello [this message]
2013-01-09  8:27     ` ChenQi

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=50EDAFC3.8090100@felipetonello.com \
    --to=eu@felipetonello.com \
    --cc=poky@yoctoproject.org \
    /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.