Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] NTP and the real time clock
@ 2002-05-06  6:44 Ralf Hildebrandt
  2002-05-06  6:52 ` Ralf Hildebrandt
  0 siblings, 1 reply; 5+ messages in thread
From: Ralf Hildebrandt @ 2002-05-06  6:44 UTC (permalink / raw)
  To: parisc-linux

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?

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   Ralf.Hildebrandt@charite.de
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] NTP and the real time clock
  2002-05-06  6:44 [parisc-linux] NTP and the real time clock Ralf Hildebrandt
@ 2002-05-06  6:52 ` Ralf Hildebrandt
  2002-05-06  7:52   ` kenneth westelinck
  2002-05-06  8:03   ` Randolph Chung
  0 siblings, 2 replies; 5+ messages in thread
From: Ralf Hildebrandt @ 2002-05-06  6:52 UTC (permalink / raw)
  To: Ralf Hildebrandt; +Cc: parisc-linux

Am 06.05.2002 um 08:44:02 +0200 schrieb Ralf Hildebrandt folgendes:
> 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 

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   Ralf.Hildebrandt@charite.de
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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] NTP and the real time clock
  2002-05-06  6:52 ` Ralf Hildebrandt
@ 2002-05-06  7:52   ` kenneth westelinck
  2002-05-06  8:03   ` Randolph Chung
  1 sibling, 0 replies; 5+ messages in thread
From: kenneth westelinck @ 2002-05-06  7:52 UTC (permalink / raw)
  To: Ralf Hildebrandt; +Cc: parisc-linux

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

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


> Am 06.05.2002 um 08:44:02 +0200 schrieb Ralf Hildebrandt folgendes:
> > 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
>
> --
> Ralf Hildebrandt (Im Auftrag des Referat V A)
Ralf.Hildebrandt@charite.de
> 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.
>
>
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/mailman/listinfo/parisc-linux
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] NTP and the real time clock
  2002-05-06  6:52 ` Ralf Hildebrandt
  2002-05-06  7:52   ` kenneth westelinck
@ 2002-05-06  8:03   ` Randolph Chung
  2002-05-06 10:57     ` Ralf Hildebrandt
  1 sibling, 1 reply; 5+ messages in thread
From: Randolph Chung @ 2002-05-06  8:03 UTC (permalink / raw)
  To: Ralf Hildebrandt; +Cc: parisc-linux

> 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

> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [parisc-linux] NTP and the real time clock
  2002-05-06  8:03   ` Randolph Chung
@ 2002-05-06 10:57     ` Ralf Hildebrandt
  0 siblings, 0 replies; 5+ messages in thread
From: Ralf Hildebrandt @ 2002-05-06 10:57 UTC (permalink / raw)
  To: Randolph Chung; +Cc: Ralf Hildebrandt, parisc-linux

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

> > So the hardwareclock is never set.
> 
> Are you sure?

Well, no.
 
> 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?

-- 
Ralf Hildebrandt (Im Auftrag des Referat V A)   Ralf.Hildebrandt@charite.de
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. 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-05-06 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-06  6:44 [parisc-linux] NTP and the real time clock Ralf Hildebrandt
2002-05-06  6:52 ` Ralf Hildebrandt
2002-05-06  7:52   ` kenneth westelinck
2002-05-06  8:03   ` Randolph Chung
2002-05-06 10:57     ` Ralf Hildebrandt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox