* Changing Clock in AlphaLinux <==> DU
@ 2001-08-14 15:19 Kenneth Jacker
2001-08-14 19:28 ` Christopher C. Chimelis
0 siblings, 1 reply; 7+ messages in thread
From: Kenneth Jacker @ 2001-08-14 15:19 UTC (permalink / raw)
To: axp-list; +Cc: tru64-unix-managers
The following message is a courtesy copy of an article
that has been posted to comp.os.linux.alpha as well.
I have an AS255/300 with DU/Tru64Unix (4.0D) on one hard drive and
AlphaLinux (RH7.1) on the other.
As I transition from DU to Linux, I find myself booting back and forth
between the two OSs. Unfortunately, each time I reboot, the date/time
gets changed slightly (Linux --> DU) or significantly (DU --> Linux).
Here's a typical scenario:
o Boot Linux
o Reset the software date/time with "# date ..."
o Reset the hardware date/time with "# hwclock --systohc"
o (Use Linux for a while)
o Boot DU
During booting, the following message appears on the console:
"... Preposterous time in TOY clock ..."
After booting, the time is off anywhere from 5 to 40 minutes
o Reset the date/time with "# date ..."
o (Use DU for a while)
o Boot back into Linux
Taking a "peek" in single user mode, the date/time is *way*
ahead in time ... usually with a year of something like 2049.
(I thought the use of "hwclock" was supposed to fix this
behavior as described in various axp-list emails ...)
Note, however, that if I repeatedly reboot into just Linux (DU never
gets control), the date/time are fine. This makes me wonder if the
shutdown/reboot sequence in DU (just before it reboots into Linux)
isn't messing with the clock settings.
Any help with this problem will be *most* appreciated!
--
Prof Kenneth H Jacker khj@cs.appstate.edu
Computer Science Dept www.cs.appstate.edu/~khj
Appalachian State Univ
Boone, NC 28608 USA
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing Clock in AlphaLinux <==> DU
2001-08-14 15:19 Changing Clock in AlphaLinux <==> DU Kenneth Jacker
@ 2001-08-14 19:28 ` Christopher C. Chimelis
0 siblings, 0 replies; 7+ messages in thread
From: Christopher C. Chimelis @ 2001-08-14 19:28 UTC (permalink / raw)
To: Kenneth Jacker; +Cc: axp-list, tru64-unix-managers
On 14 Aug 2001, Kenneth Jacker wrote:
> The following message is a courtesy copy of an article
> that has been posted to comp.os.linux.alpha as well.
>
> I have an AS255/300 with DU/Tru64Unix (4.0D) on one hard drive and
> AlphaLinux (RH7.1) on the other.
>
> As I transition from DU to Linux, I find myself booting back and forth
> between the two OSs. Unfortunately, each time I reboot, the date/time
> gets changed slightly (Linux --> DU) or significantly (DU --> Linux).
I submitted patches to fix the epoch detection to Andrea, but it hasn't
gotten to the upstream kernel yet. Look for the changes in 2.4.9 or
2.4.10, though. I can probably whip up a patch against your favourite
kernel if you'd like. Turns out also that SRM's date command may or may
not actually show the date using the VMS epoch(s) by default.
Is it just the year that's screwed up?
C
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing Clock in AlphaLinux <==> DU
@ 2001-08-15 16:02 William H. Magill
0 siblings, 0 replies; 7+ messages in thread
From: William H. Magill @ 2001-08-15 16:02 UTC (permalink / raw)
To: axp-list
> Note, however, that if I repeatedly reboot into just Linux (DU never
> gets control), the date/time are fine. This makes me wonder if the
> shutdown/reboot sequence in DU (just before it reboots into Linux)
> isn't messing with the clock settings.
I think this was discussed not that long ago on one of these two lists
... and I believe that the answer was "yes."
Something like ...The environmental values in the NVRAM are "re-written" as
part of the shutdown process (on one side or the other). I don't recall the
details.
BTW- If you get a response from Tru64 managers, please post the summary here also.
... use ntp to set the clock and don't worry about it...
--
www.tru64unix.compaq.com
www.tru64.org
comp.unix.tru64
T.T.F.N.
William H. Magill Senior Systems Administrator
Information Services and Computing (ISC) University of Pennsylvania
Internet: magill@isc.upenn.edu magill@acm.org
http://www.isc-net.upenn.edu/~magill/
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Changing Clock in AlphaLinux <==> DU
@ 2001-08-15 17:57 Donsbach, Jeff
2001-08-15 19:22 ` Michal Jaegermann
2001-08-16 2:22 ` Peter Petrakis
0 siblings, 2 replies; 7+ messages in thread
From: Donsbach, Jeff @ 2001-08-15 17:57 UTC (permalink / raw)
To: 'axp-list@redhat.com'
I'm not sure about Linux, but I know that Tru64/OpenVMS/SRM and
ARC/AlphaBios/WindowsNT stored the time in different formats in the TOY. It
was a very old internal DEC turf war from what I've gathered and we seem to
be stuck with it.
Does Linux expect it in the Arc/NT format (historical from the MILO days)?
Possible I guess but I'm not familiar with that part of the Linux kernel
code.
Jeff Donsbach
> -----Original Message-----
> From: William H. Magill [mailto:magill@isc.upenn.edu]
> Sent: Wednesday, August 15, 2001 12:02 PM
> To: axp-list@redhat.com
> Subject: Re: Changing Clock in AlphaLinux <==> DU
>
>
> > Note, however, that if I repeatedly reboot into just
> Linux (DU never
> > gets control), the date/time are fine. This makes me wonder if the
> > shutdown/reboot sequence in DU (just before it reboots into Linux)
> > isn't messing with the clock settings.
>
> I think this was discussed not that long ago on one of these two lists
> ... and I believe that the answer was "yes."
> Something like ...The environmental values in the NVRAM are
> "re-written" as
> part of the shutdown process (on one side or the other). I
> don't recall the
> details.
>
> BTW- If you get a response from Tru64 managers, please post
> the summary here also.
>
> ... use ntp to set the clock and don't worry about it...
> --
> www.tru64unix.compaq.com
> www.tru64.org
> comp.unix.tru64
>
> T.T.F.N.
> William H. Magill Senior Systems
> Administrator
> Information Services and Computing (ISC) University of Pennsylvania
> Internet: magill@isc.upenn.edu magill@acm.org
> http://www.isc-net.upenn.edu/~magill/
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing Clock in AlphaLinux <==> DU
2001-08-15 17:57 Donsbach, Jeff
@ 2001-08-15 19:22 ` Michal Jaegermann
2001-08-16 2:22 ` Peter Petrakis
1 sibling, 0 replies; 7+ messages in thread
From: Michal Jaegermann @ 2001-08-15 19:22 UTC (permalink / raw)
To: axp-list
On Wed, Aug 15, 2001 at 01:57:51PM -0400, Donsbach, Jeff wrote:
>
> Does Linux expect it in the Arc/NT format (historical from the MILO days)?
No, it does not.
> Possible I guess but I'm not familiar with that part of the Linux kernel
> code.
There is more than two possible formats in which hardware clock stores a
time information on Alpha boards. Current versions of 'hwclock' attempt
to guess which one to use and, in most cases, they are doing pretty good
job with that so actually _not using_ flags like '-A' is preferred.
OTOH it is possible that in some situations communications between
hardware, kernel and 'hwclock' are going awry. For that 'hwclock' has a
number of flags, described on its manpage, like '--funky-toy',
'--bad-year', '--epoch' and so on. It is a good idea to actually
look at this documentation in case of problems. I do not know if every
possible conflict can be resolved but one can do at least a credible
effort in this direction.
Michal
p.s. One of bugs in older startup scripts from Red Hat was that on
Ruffian (UX) they were doing "aha, you are booting with milo so you
should use -A option" regardless of what was specified in
/etc/sysconfig/clock. This resulted in shifting your clock by twenty
years as a format used by Ruffian hardware clock for some reasons is not
ARC. Very annoying; especially during an installation when you did not
have an opportunity yet to apply corrective measures. A time related
information in rpm database was also messed up and made hard to use
in a future system administration.
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Changing Clock in AlphaLinux <==> DU
2001-08-15 17:57 Donsbach, Jeff
2001-08-15 19:22 ` Michal Jaegermann
@ 2001-08-16 2:22 ` Peter Petrakis
2001-08-18 14:57 ` Kenneth Jacker
1 sibling, 1 reply; 7+ messages in thread
From: Peter Petrakis @ 2001-08-16 2:22 UTC (permalink / raw)
To: axp-list
In the meantime if you have a 5.8 SRM or higher, before you boot
linux do this.
>>> date unix
That will set your machine to the proper epoch. Not the VMS one
which is the unix epoch + 32 years. VMS epoch is default on
SRM Console.
Peter
--
www.alphalinux.org
Peter Petrakis Warrior/Engineer ppetrakis@alphalinux.org
"Oh my God! They killed Xena! You bastards!!"
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
> -----Original Message-----
> From: axp-list-admin@redhat.com [mailto:axp-list-admin@redhat.com]On
> Behalf Of Donsbach, Jeff
> Sent: Wednesday, August 15, 2001 1:58 PM
> To: 'axp-list@redhat.com'
> Subject: RE: Changing Clock in AlphaLinux <==> DU
>
>
> I'm not sure about Linux, but I know that Tru64/OpenVMS/SRM and
> ARC/AlphaBios/WindowsNT stored the time in different formats in
> the TOY. It
> was a very old internal DEC turf war from what I've gathered and
> we seem to
> be stuck with it.
>
> Does Linux expect it in the Arc/NT format (historical from the MILO days)?
> Possible I guess but I'm not familiar with that part of the Linux kernel
> code.
>
> Jeff Donsbach
>
>
> > -----Original Message-----
> > From: William H. Magill [mailto:magill@isc.upenn.edu]
> > Sent: Wednesday, August 15, 2001 12:02 PM
> > To: axp-list@redhat.com
> > Subject: Re: Changing Clock in AlphaLinux <==> DU
> >
> >
> > > Note, however, that if I repeatedly reboot into just
> > Linux (DU never
> > > gets control), the date/time are fine. This makes me wonder if the
> > > shutdown/reboot sequence in DU (just before it reboots into Linux)
> > > isn't messing with the clock settings.
> >
> > I think this was discussed not that long ago on one of these two lists
> > ... and I believe that the answer was "yes."
> > Something like ...The environmental values in the NVRAM are
> > "re-written" as
> > part of the shutdown process (on one side or the other). I
> > don't recall the
> > details.
> >
> > BTW- If you get a response from Tru64 managers, please post
> > the summary here also.
> >
> > ... use ntp to set the clock and don't worry about it...
> > --
> > www.tru64unix.compaq.com
> > www.tru64.org
> > comp.unix.tru64
> >
> > T.T.F.N.
> > William H. Magill Senior Systems
> > Administrator
> > Information Services and Computing (ISC) University of Pennsylvania
> > Internet: magill@isc.upenn.edu magill@acm.org
> > http://www.isc-net.upenn.edu/~magill/
> >
> >
> >
> > _______________________________________________
> > Axp-list mailing list
> > Axp-list@redhat.com
> > https://listman.redhat.com/mailman/listinfo/axp-list
> >
>
>
>
> _______________________________________________
> Axp-list mailing list
> Axp-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/axp-list
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Changing Clock in AlphaLinux <==> DU
2001-08-16 2:22 ` Peter Petrakis
@ 2001-08-18 14:57 ` Kenneth Jacker
0 siblings, 0 replies; 7+ messages in thread
From: Kenneth Jacker @ 2001-08-18 14:57 UTC (permalink / raw)
To: axp-list
peter> In the meantime if you have a 5.8 SRM or higher, before you boot
peter> linux do this.
>>>> date unix
I finally had time to try your suggestion. It said something like
"option 'unix' unknown". I then did a ">>> help date" and saw that I
could change the "bad" date (year == 2049) to a correct one. When I
then booted into Linux, the date was correct. Hurray!
I believe I'm using a SRM version "higher than 5.8" since I upgraded
it to the "latest and greatest" during the summer and /var/adm/messages
shows the following during a DU boot:
vmunix: Firmware revision: 7.0
and DU's 'consvar' command shows:
Firmware Rev: 7.0
I don't understand why my system rejected the "date unix" command.
Thanks for your help!
-Kenneth
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-08-18 14:57 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-14 15:19 Changing Clock in AlphaLinux <==> DU Kenneth Jacker
2001-08-14 19:28 ` Christopher C. Chimelis
-- strict thread matches above, loose matches on Subject: below --
2001-08-15 16:02 William H. Magill
2001-08-15 17:57 Donsbach, Jeff
2001-08-15 19:22 ` Michal Jaegermann
2001-08-16 2:22 ` Peter Petrakis
2001-08-18 14:57 ` Kenneth Jacker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox