Skip to contentSkip to conversation

NTP and the real time clock

parisc-linux Ralf Hildebrandt 3 participants 5 messages May 6, 2002

lore
Share & tools
lore
#0 lore raw

Whenever I turn off my 712/80 and turn it back on, NTP (ntpq) reports an offset of about 1200.
Question: Could it be that at shutdown the time is not stored in the on-board real-time-clock?

Signature · 4 lines
Ralf Hildebrandt (Im Auftrag des Referat V A)   [email protected]
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
Gates' Law: Every 18 months, the speed of software halves.
#1 lore raw

Am 06.05.2002 um 08:44:02 +0200 schrieb Ralf Hildebrandt folgendes:

Quoted 4 lines

Whenever I turn off my 712/80 and turn it back on, NTP (ntpq) reports an offset of about 1200.
Question: Could it be that at shutdown the time is not stored in the on-board real-time-clock?

I find this intriguing:

gecko:~# hwclock --show
Mon May  6 08:46:27 2002  -0.994167 seconds
gecko:~# hwclock --systohc
gecko:~# hwclock --show
Mon May  6 08:46:33 2002  -0.999854 seconds

So the hardwareclock is never set.
Which setting in "Character Devices" do I need so hwclock can access the on-board real-time-clock?
< > /dev/nvram support
< > Enhanced Real Time Clock Support

Signature · 5 lines
Ralf Hildebrandt (Im Auftrag des Referat V A)   [email protected]
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
There are two ways to write error-free programs. Only the third one
works.
#2 lore raw

You'll need to set this option: CONFIG_GENRTC=y

----- Original Message -----
From: "Ralf Hildebrandt" <[email protected]>
To: "Ralf Hildebrandt" <[email protected]>
Cc: <[email protected]>
Sent: Monday, May 06, 2002 8:52 AM
Subject: Re: [parisc-linux] NTP and the real time clock

Quoted 14 lines

Am 06.05.2002 um 08:44:02 +0200 schrieb Ralf Hildebrandt folgendes:

Quoted 4 lines

Whenever I turn off my 712/80 and turn it back on, NTP (ntpq) reports an offset of about 1200.
Question: Could it be that at shutdown the time is not stored in the on-board real-time-clock?

I find this intriguing:

gecko:~# hwclock --show
Mon May  6 08:46:27 2002  -0.994167 seconds
gecko:~# hwclock --systohc
gecko:~# hwclock --show
Mon May  6 08:46:33 2002  -0.999854 seconds
Quoted 8 lines

So the hardwareclock is never set.
Which setting in "Character Devices" do I need so hwclock can access the on-board real-time-clock?
< > /dev/nvram support
< > Enhanced Real Time Clock Support

--
Ralf Hildebrandt (Im Auftrag des Referat V A)

[email protected]

Quoted 1 line

Charite Campus Virchow-Klinikum Tel. +49 (0)30-450

570-155

Quoted 1 line

Referat V A - Kommunikationsnetze - Fax. +49 (0)30-450

570-916

Quoted 9 lines

There are two ways to write error-free programs. Only the third one works.

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

#3 lore raw
In reply to Ralf Hildebrandt
Quoted 9 lines

I find this intriguing:

gecko:~# hwclock --show
Mon May  6 08:46:27 2002  -0.994167 seconds
gecko:~# hwclock --systohc
gecko:~# hwclock --show
Mon May  6 08:46:33 2002  -0.999854 seconds

So the hardwareclock is never set.

Are you sure?

legolas:/usr/src/linux-ide# hwclock --show
Mon May  6 00:05:08 2002  -0.995996 seconds
legolas:/usr/src/linux-ide# date 050600002002
Mon May  6 00:00:00 PDT 2002
legolas:/usr/src/linux-ide# hwclock --systohc
legolas:/usr/src/linux-ide# hwclock --show
Mon May  6 00:00:23 2002  -0.999298 seconds
Quoted 4 lines

Which setting in "Character Devices" do I need so hwclock can access the on-board real-time-clock?
< > /dev/nvram support
< > Enhanced Real Time Clock Support

You want: "Generic RTC device support" (I think it's on by default). The fact that hwclock didn't give you an error suggests to me that you already have that enabled.

randolph

#4 lore raw

Am 06.05.2002 um 01:03:29 -0700 schrieb Randolph Chung folgendes:

Quoted 3 lines
Quoted 1 line

So the hardwareclock is never set.

Are you sure?

Well, no.

Quoted 7 lines
legolas:/usr/src/linux-ide# hwclock --show
Mon May  6 00:05:08 2002  -0.995996 seconds
legolas:/usr/src/linux-ide# date 050600002002
Mon May  6 00:00:00 PDT 2002
legolas:/usr/src/linux-ide# hwclock --systohc
legolas:/usr/src/linux-ide# hwclock --show
Mon May  6 00:00:23 2002  -0.999298 seconds

OK, seems to work.
But what is that "-0.999298 seconds" stuff?

Signature · 5 lines
Ralf Hildebrandt (Im Auftrag des Referat V A)   [email protected]
Charite Campus Virchow-Klinikum                 Tel.  +49 (0)30-450 570-155
Referat V A - Kommunikationsnetze -             Fax.  +49 (0)30-450 570-916
When the government outlaws cryptography, bayl pevzvanyf jvyy unir
cevinpl.