Author Topic: C7x0 C8x0 Series And Time Issue  (Read 1666 times)

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
C7x0 C8x0 Series And Time Issue
« on: December 09, 2004, 01:11:23 am »
Ok, this was the first thing I ever saw when I first installed OZ on my pda. The fact that the date was 1970.

This is because the chipset simply has no hardware clock. However there is a 'kinda' fix that is quite easy to install into OZ.

First, install the 'slutils' ipk from the feed (might be called sltools, can't remember). This installs 'sltime' into /usr/bin.

Now, the way sltime works is as follows:-
  - If you run 'sltime -set' then the current time is stored somewhere on the flash (I havn't worked out where yet actually ;-).
  - If you run 'sltime' then the time that was stored in flash is set to the current clock.

So, I did the following: -
  1. Edited /etc/init.d/hwlock.sh so that it also runs 'sltime -set' when a 'START' even occurs, and 'sltime' when a STOP event occurs.
  2. Symlinked hwlock.sh to /etc/rcS.d/S90hwclock
  3. Symlinked hwlock.sh to /etc/rc0.d/K10hwclock

I didn't do the following, but would recommend:
  1. Add a cron job that executes 'sltime -set' every 30 minutes.
  2. AND/OR executes 'sltime -set' each time the unit is unsuspended/suspended

 - Bundabrg
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]