All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baruch Siach <baruch@tkos.co.il>
To: Gerber Patrick <Patrick.Gerber@heig-vd.ch>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: RTC backup on omap3 (overo)
Date: Tue, 5 Jul 2011 18:36:24 +0300	[thread overview]
Message-ID: <20110705153624.GA2331@tarshish> (raw)
In-Reply-To: <AD1D79D65ED429499381113CFECBBE48128DA6CF@EINTMBX02.einet.ad.eivd.ch>

Hi Patrick,

On Tue, Jul 05, 2011 at 02:35:12PM +0000, Gerber Patrick wrote:
> I am using an over Fire with an omap3530. I have added a small Lithium 
> backup battery to the TWL4030 for RTC backup as recommanded by Gumstix.
> I have tried to set the time with date command and shutdown the overo and 
> remove power. After restart the date is not the one that I have set but a 
> default one (always the same).
> 
> Does anybody have already experienced this ? Do you have any idea ?

Do 'hwclock -w' to set the RTC clock from the system clock. This should do the 
trick, assuming that you have the RTC driver compiled, or loaded as a module.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

WARNING: multiple messages have this Message-ID (diff)
From: baruch@tkos.co.il (Baruch Siach)
To: linux-arm-kernel@lists.infradead.org
Subject: RTC backup on omap3 (overo)
Date: Tue, 5 Jul 2011 18:36:24 +0300	[thread overview]
Message-ID: <20110705153624.GA2331@tarshish> (raw)
In-Reply-To: <AD1D79D65ED429499381113CFECBBE48128DA6CF@EINTMBX02.einet.ad.eivd.ch>

Hi Patrick,

On Tue, Jul 05, 2011 at 02:35:12PM +0000, Gerber Patrick wrote:
> I am using an over Fire with an omap3530. I have added a small Lithium 
> backup battery to the TWL4030 for RTC backup as recommanded by Gumstix.
> I have tried to set the time with date command and shutdown the overo and 
> remove power. After restart the date is not the one that I have set but a 
> default one (always the same).
> 
> Does anybody have already experienced this ? Do you have any idea ?

Do 'hwclock -w' to set the RTC clock from the system clock. This should do the 
trick, assuming that you have the RTC driver compiled, or loaded as a module.

baruch

-- 
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

  reply	other threads:[~2011-07-05 15:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-05 14:35 RTC backup on omap3 (overo) Gerber Patrick
2011-07-05 14:35 ` Gerber Patrick
2011-07-05 15:36 ` Baruch Siach [this message]
2011-07-05 15:36   ` Baruch Siach

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=20110705153624.GA2331@tarshish \
    --to=baruch@tkos.co.il \
    --cc=Patrick.Gerber@heig-vd.ch \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-omap@vger.kernel.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.