Author Topic: Cx60 Sltime Not Working (3.5.4)  (Read 1886 times)

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Cx60 Sltime Not Working (3.5.4)
« on: June 30, 2006, 04:55:25 am »
Ok, back to the same old problem I had last time I installed OZ. Every restart my Z resets its time to some abituary time (but not 1970, so its reading some stored time from somewhere)

I installed slutils, which normally fixed the problem, but under the new OZ (3.5.4) I get the following error if I set or read the so called 'hardware' clock: -
Code: [Select]
ioctl(MEMWRITELADDR): Inappropriate ioctl for device
I'm assuming the new kernel doesn't allow this anymore. How do I store the time, and how do I read it?

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

Bundabrg

  • Full Member
  • ***
  • Posts: 183
    • View Profile
Cx60 Sltime Not Working (3.5.4)
« Reply #1 on: June 30, 2006, 05:04:43 am »
Answering myself. I see /etc/init.d/bootmish.sh sets the time from /etc/timestamp, and /etc/init.d/halt writes the time to /etc/timestamp. I'm guessing slutils was not portable/possible.

But under certain conditions (in fact all the time for me) it writes out the wrong date. Manually setting the date using the 'date' command, then running the scripts works fine. Setting the date via Opie DateTime doesn't. I'll investigate further to see if I've stuffed something up or its a bug.

 - Bundabrg
« Last Edit: June 30, 2006, 05:05:30 am by Bundabrg »
[img]http://www.worldguard.com.au/brendan-ambi.png\" border=\"0\" class=\"linked-sig-image\" /]