lkml.org 
[lkml]   [2001]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Wrong data [was Re: Incorrect module init message..]
On Sat, Jan 01, 2000 at 01:49:41AM +0000, Pavel Machek wrote:
> > No, Pavel's clock is fine AFAIK. The message was sent in
> > January. However, it was just received AGAIN today. I don't
>
> Unfortunately, my clock is b0rken. This damn little machine just does
> not have ability to retain time across reboot. [For booting, I need
> winCE. WinCE will crash upon boot if something unexpected (like linux)
> is in memory. Therefore I need to remove main battery for reboot :-(.]
>
> It even does not have ability to retain time correctly during powersave
> mode, but that could be solved.
>
> Before someone says "NTP", this machine is usually not connected anywhere --
> it comunicates via ATA flash. Maybe I could scan flash for newest timestamp
> and use that for date...

On a similar system I use a little trick so the time is at least always
increasing:

- touch the file /etc/timestamp just before the system shuts down
- on bootup I set the time with:
CURRENTTIME=date -r /etc/timestamp
date -s "$CURRENTTIME"


Erik

--
J.A.K. (Erik) Mouw, Information and Communication Theory Group, Department
of Electrical Engineering, Faculty of Information Technology and Systems,
Delft University of Technology, PO BOX 5031, 2600 GA Delft, The Netherlands
Phone: +31-15-2783635 Fax: +31-15-2781843 Email: J.A.K.Mouw@its.tudelft.nl
WWW: http://www-ict.its.tudelft.nl/~erik/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.077 / U:0.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site