Time Keeping on a Psion 5MX


The problem: With every reboot of the psion (linux back to EPOC,
or EPOC to linux) the clock gets reset to 5 pm 1 January 1999. The clock
needs to be reset every time. Having the clock/time go backwards in linux
presents a variety of problems; the situation is unhappy. I don't believe
that the psion has a hardware clock like PC's have.

An awk script to interactively set the date in linux can be downloaded HERE.

The plan: With the time properly set in either linux or EPOC, have the
system write the date and time to a file at shutdown/reboot, and then
have the new system read the file and set the time from it. A few seconds
will be lost between reboots, but it is better than the alternative. (One could
get clever and add a few seconds before writing the time to the file, but that
may be just asking for trouble.)

I will call the file with the single line that keeps track of the time"date.txt"
and it is located on the msdos partition of the compactflash. It is thus
accessible from either linux or EPOC. My msdos partition is /msdos in linux,
and it is merely the "D:" disk in EPOC.

In linux:
In EPOC:
I think that's all I wanted to say.... B. Dushaw 2/3/02, revised 3/17/02

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Mikko's e-mail can be found HERE.