From: Markus Gothe <markus.gothe@27m.se>
To: Attila Kinali <attila@kinali.ch>
Cc: linux-mips@linux-mips.org
Subject: Re: Power loss and system time when not having a battery backed RTC
Date: Wed, 28 Mar 2007 16:47:48 +0200 [thread overview]
Message-ID: <460A8014.1020100@27m.se> (raw)
In-Reply-To: <20070328163914.b7187fcb.attila@kinali.ch>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Attila Kinali wrote:
> Moin,
>
> I have a little bit more general question than usual. I have here a
> system that should be deployed in Joe Average's house as a small
> appliance. While it is powered it will gather information and store
> them on its flash.
>
> Now, this system does not contain a battery backed RTC (not enough
> space) and thus does not know what date/time it is after boot. At a
> later time the device will be able to get a time quote from a time
> server using a wireless connection. But as the wireless connection
> is triggered by a user action, it can happen hours after boot. This
> means that there is a quite long period whithin which the device
> does not know what time it is and hence assumes it's 1970.
>
> My problem lies now in the back jumps that the device makes, when
> unplugged and replugged. On the filesystem there will be files from
> 2007, while the system still thinks it's 1970.
>
> How do you handle this issue with the back jumps, if you cannot
> stick in a batter backed RTC?
>
>
> Thanks for your help
>
> Attila Kinali
Be creative or use the battery, you could for example set a timestamp
in a file at shutdown and use it to set the date on power up, alas
this would be incorrect, so go for the battery.
- --
_______________________________________
Mr Markus Gothe
Software Engineer
Phone: +46 (0)13 21 81 20 (ext. 1046)
Fax: +46 (0)13 21 21 15
Mobile: +46 (0)73 718 72 80
Diskettgatan 11, SE-583 35 Linköping, Sweden
www.27m.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGCoAR6I0XmJx2NrwRCNbtAJ9jMBSxe0WOvv3o844TCqbHKbmgOwCeNmOR
Uot4Bwa7+EYx3/8b7h4bVcM=
=X6k4
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2007-03-28 14:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-28 14:39 Power loss and system time when not having a battery backed RTC Attila Kinali
2007-03-28 14:47 ` Markus Gothe [this message]
2007-03-28 15:22 ` Attila Kinali
2007-03-28 20:55 ` Ralf Baechle
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=460A8014.1020100@27m.se \
--to=markus.gothe@27m.se \
--cc=attila@kinali.ch \
--cc=linux-mips@linux-mips.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.