"rtc hw" returns an error

Hi

I think this is a BIOS / Hardware issue, but perhaps not, or perhaps
somebody has already experienced/solved it :
Sometimes, the hardware clock of my embedded system goes back to 1970/01/01.
Afterwards, it will restart at 1970/01/01 at each reboot.
When I try the following command :
rtc hw
I have the following message :
rtc: clock not running, Must be set first 0x40
→ What does this message mean ?

For information, after the following command :
rtc -s hw
everything goes back to normal !
can someone enlighten me ?

Regards,
Cyril.

Hi Cyril,

What kind of harware do you have? Is it very old board or something custom?
RTC clock can be disabled programaticly, or your RTC chip might has some
differences from standard ones. Now it is very general question to answer.
I hope someone else will explain the behaviour of rtc utility.

Cheers,
ed1k.

Cyril OTHENIN-GIRARD <cothenin@bcisa.com> wrote in article
<arb9fp$igm$1@inn.qnx.com>…

Hi

I think this is a BIOS / Hardware issue, but perhaps not, or perhaps
somebody has already experienced/solved it :
Sometimes, the hardware clock of my embedded system goes back to
1970/01/01.
Afterwards, it will restart at 1970/01/01 at each reboot.
When I try the following command :
rtc hw
I have the following message :
rtc: clock not running, Must be set first 0x40
→ What does this message mean ?

For information, after the following command :
rtc -s hw
everything goes back to normal !
can someone enlighten me ?

Regards,
Cyril.