Duh!

The answer was in the first google hit on "linux set time"
(http://www.linuxsa.org.au/tips/time.html):

Set the [soft] system clock with "date":

# date 042716452007
Fri Apr 27 16:44 UTC 2007

..and then set the RTC from the system clock:

# hwclock --systohc
Fri Apr 27 16:44:58 2007 -0.925760 seconds


RF

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Bob Furber
> Sent: April 26, 2007 5:06 PM
> To: uClinux development list
> Subject: [uClinux-dev] How to set RTC?
>
>
> I am having difficlty setting the [pcf8563] RTC on a WildFireMod, from
> uClinux-2.6.6:
>
> # hwclock --set --date="04/26/07 13:00:00"
> The date command issued by hwclock returned unexpected results
> The command was
>    date -d "04/26/07 13:00:00" + seconds-into-epoch=%s
> The response was
> No usable set-to-time    Cannot set clock
>
> # hwclock --set 042613002007
> ..fared no better.
>
>
> However, I am able to read the RTC:
>
> # hwclock --show
> Thu Apr 26 15:03:12 2007 -0.909022 seconds
>
> I should mention that I have no difficulty setting the RTC from dBUG, so I
> know it can be done.
>
> I have the feeling that is is a "Duh!" situation, but for the
> life of me, I
> do not see it.
>
> Thanks,
>
> RF
>
>
> _______________________________________________
> uClinux-dev mailing list
> [email protected]
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by [email protected]
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>


_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to