* Wrong date with RHL4.1 on PC164
@ 1997-04-29 13:42 Stephan Schroepfer
1997-04-29 14:57 ` jestabro
0 siblings, 1 reply; 7+ messages in thread
From: Stephan Schroepfer @ 1997-04-29 13:42 UTC (permalink / raw)
After installation of RHL4.1 on a PC164-based machine 'date'
reports 'year 2017' (the rest of the date is o.k., during
installation even the year was right).
I tried to run timeconfig in several configurations but I
couldn't get it right.
Beeing curious whats happening during startup I found a call
to 'clock' somewhere in the /etc/rc.d/ files.
Calling clock the first few times from the shell I was able to
get the right date with some command line options I can't
remeber.
But now (after the first few calls) I only get a message
like 'missing I/O port address'.
Does anyone have a solution for my problems(s)?
Stefan Schroepfer
scr@iis.fhg.de
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Wrong date with RHL4.1 on PC164
1997-04-29 13:42 Wrong date with RHL4.1 on PC164 Stephan Schroepfer
@ 1997-04-29 14:57 ` jestabro
0 siblings, 0 replies; 7+ messages in thread
From: jestabro @ 1997-04-29 14:57 UTC (permalink / raw)
>>> Stephan Schroepfer said:
> After installation of RHL4.1 on a PC164-based machine 'date'
> reports 'year 2017' (the rest of the date is o.k., during
> installation even the year was right).
Sounds like you didn't tell the installation script that you were booting
from ARC console. Change /etc/sysconfig/clock to: CLOCKMODE="ARC".
>
> Beeing curious whats happening during startup I found a call
> to 'clock' somewhere in the /etc/rc.d/ files.
> Calling clock the first few times from the shell I was able to
> get the right date with some command line options I can't remeber.
> But now (after the first few calls) I only get a message
> like 'missing I/O port address'.
If it says: "clock: unable to get I/O port access", its probably because
you're not running as "root". If it says something else, check that the
output of "cat /proc/cpuinfo" has EB164 for the value of "system type".
If not, that could be a problem; let me know if such is the case. Also,
you could try the work-aound by doing:
ln -s EB164 /etc/alpha_systype
which should allow "clock" to do the right thing.
BTW, if booting from ARC console, do "clock -r -A" to read the hardware
TOY clock, and "clock -w -A" to write it.
Note also that the standard "clock" command has a problem with the clock
chip implementation on the PC164; look at the axp-list archives for a late
November posting by me about a fix for it, but don't try to use the "clock"
binary that's part of the posting unless you're running RH 4.0, as it won't
work (for some reason) under RH 4.1... :-(
Good luck.
--Jay++
-------------------------------------------------------------------------------
American Non Sequitur Society: we don't make sense, but we do like pizza...
Jay A Estabrook Alpha Migration Tools - LINUX Project
Digital Equipment Corp. (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2 enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407 decnet: tallis::jestabro
-------------------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Wrong date with RHL4.1 on PC164
@ 1997-04-30 9:00 Stephan Schroepfer
1997-05-06 10:22 ` Christoph Franzen
0 siblings, 1 reply; 7+ messages in thread
From: Stephan Schroepfer @ 1997-04-30 9:00 UTC (permalink / raw)
jestabro@amt.tay1.dec.com wrote:
>
> >>> Stephan Schroepfer said:
> >> After installation of RHL4.1 on a PC164-based machine 'date'
> >> reports 'year 2017' (...)
>
> (...) Change /etc/sysconfig/clock to: CLOCKMODE="ARC".
>
> >> ... Calling clock (...) from the shell (...) I get a message
> >> like 'missing I/O port address'.
>
> If it says: "clock: unable to get I/O port access", its probably
> because you're not running as "root". If it says something else,
> check that the output of "cat /proc/cpuinfo" has EB164 for the
> value of "system type".
> ...
> Also, you could try the work-aound by doing:
> ln -s EB164 /etc/alpha_systype
> which should allow "clock" to do the right thing.
> ...
> --Jay++
Hello Jay and the others out there:
Oh yes, I think there is a problem with 'clock' which cannot
be solved with Jay's 'ln -s' workaround alone.
Summary:
- Patching /etc/sysconfig/clock according to
Jay A Eastbrook's tip seemed to solve the problem
of having a wrong date only temporary (until
next reboot (from milo))
- 'ln -s EB164 /etc/alpha_systype' - workaround
(according to Jay A Eastbrook) seemed to get date
right until next to next reboot (had to use reset
button and after that things got even more weird)
Following text is a rewrite of some sort of commented manuscript
I made during my (somewhat frustrating) experiences with the
'Wrong date with RHL4.1 on PC164' - problem
- I hope that there are no serious mistakes
- may be difficult to read (lines without a leading
'#' are shell commands together with their output)
- maybe my problems stem to the fact that I'm new
to axp (and such things as ARC-console ...)
# logging in as root (I thought first settting the right date
# and then allow users to log in could be no error)
date : Sat Apr 29 19:46:51 2017
# (maybe Sat Apr 29 2017 will be really a saturday)
# '...2017' may serve as an alias in the following text as
# '...1997' will serve for the right date, I think '...2035'
# needs no further explanation
clock : ...2017
clock -r -A : ...1997
grep type /proc/cpuinfo : system type : EB164
# this constellation leads to file dates from year 2017 and is
# at the root of my problem ...
##### now patched /etc/sysconfig/clock
# was: 'UTC=true\ARC=false'
# now: 'CLOCKMODE="ARC"'
sync;reboot
# (... sometimes I have to remove the 'clear' command before
# 'login' lurking somewhere in RedHat4.1 ...)
date : ...1997
clock : ...2017
clock -r -A : ...1997
# maybe in this temporary state dates of newly created files could
# have been right but I have not tested it, doing a reboot to
# prove this state to be stable
sync;reboot
# at boot time : clock : unable to get I/O port access
# year 2017 is shown (couldn't find the 'clear' before 'login' yet)
# also shown : Last login ...2017
date : ...2017
# why? after a simple reboot without changing anything else date
# is ...2017 (was ...1997 before last reboot)
clock : unable to get I/O port access
# !!! why that? (logged in as root as in first login above) !!!
grep type /proc/cpuinfo : system type : 0
# !!! why that? (was 'EB164' on first startup) !!!
##### now tried 'ln -s' workaround
ln -s EB164 /etc/alpha_systype
file alpha_systype : alpha_systype : broken symbolic link ...
# yes its just a workaround, I didn't expect to have a file
# named 'EB164' to which a symbolic link could have pointed to
clock : ...2017
clock -r -A : ...1997
# o.k.: no 'unable to ...'-message since 'ln -s' workaround
# was applied applied
# doing another reboot
sync;reboot
# On shutdown: 'Broadcast message ...2017'
# On reboot: 'setting clock ...1997'
date : ...1997
clock : ...2017
clock -r -A : ...1997
# o.k.: now I should be able to give user access ...
# doing (you guessed it) another reboot
sync;reboot
# !!! system halt, no reboot (first 'no-reboot' since I use !!!
# !!! axp-linux) !!!
# On shutdown; 'Broadcast message ...2017'
# !!! On reboot: 'setting clock ...2035' !!!
date : ...2035
clock : ...2017
clock -r -A : ...1997
grep type /proc/cpuinfo : system type : EB164
# At this point I gave up
Stefan Schroepfer,
scr@iis.fhg.de
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Wrong date with RHL4.1 on PC164
1997-04-30 9:00 Stephan Schroepfer
@ 1997-05-06 10:22 ` Christoph Franzen
0 siblings, 0 replies; 7+ messages in thread
From: Christoph Franzen @ 1997-05-06 10:22 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2740 bytes --]
A> jestabro@amt.tay1.dec.com wrote:
>>
>>>>> Stephan Schroepfer said:
>>>> After installation of RHL4.1 on a PC164-based machine 'date'
>>>> reports 'year 2017' (...)
>>
>> (...) Change /etc/sysconfig/clock to: CLOCKMODE="ARC".
>>
>>>> ... Calling clock (...) from the shell (...) I get a message
>>>> like 'missing I/O port address'.
>>
>> If it says: "clock: unable to get I/O port access", its probably
>> because you're not running as "root". If it says something else,
>> check that the output of "cat /proc/cpuinfo" has EB164 for the
>> value of "system type".
>> ...
>> Also, you could try the work-aound by doing:
>> ln -s EB164 /etc/alpha_systype
>> which should allow "clock" to do the right thing.
>> ...
>> --Jay++
A> Hello Jay and the others out there:
A> Oh yes, I think there is a problem with 'clock' which cannot
A> be solved with Jay's 'ln -s' workaround alone.
A> Summary:
A> - Patching /etc/sysconfig/clock according to
A> Jay A Eastbrook's tip seemed to solve the problem
A> of having a wrong date only temporary (until
A> next reboot (from milo))
A> - 'ln -s EB164 /etc/alpha_systype' - workaround
A> (according to Jay A Eastbrook) seemed to get date
A> right until next to next reboot (had to use reset
A> button and after that things got even more weird)
A> Following text is a rewrite of some sort of commented manuscript
A> I made during my (somewhat frustrating) experiences with the
A> 'Wrong date with RHL4.1 on PC164' - problem
A> # logging in as root (I thought first settting the right date
A> # and then allow users to log in could be no error)
A> date : Sat Apr 29 19:46:51 2017
A> # (maybe Sat Apr 29 2017 will be really a saturday)
A> # '...2017' may serve as an alias in the following text as
A> # '...1997' will serve for the right date, I think '...2035'
A> # needs no further explanation
A> clock : ...2017
A> clock -r -A : ...1997
A> grep type /proc/cpuinfo : system type : EB164
I've got a similar problem: setting the system clock of my Jensen with "clock
-r -A" does only work as long as I don't reboot. The ARC clock obviously is not
affected by the clock command.
I have to reset system time from the ARC console which is a bit annoying, I
have to shutdown, change OS type to NT, switch the machine off and back on, set
the clock, change the OS type back to OSF, switch off and on, and do this one
time more if I failed to calculate the right offset between ARC time and CET or
CEST which I occasionally do.
Is there any solution for my problem?
Viele Grüße, Christoph
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <MSGID_242=3A1000=2F22.156_466ce40c@Fido.DE>]
* Re: Wrong date with RHL4.1 on PC164
[not found] <MSGID_242=3A1000=2F22.156_466ce40c@Fido.DE>
@ 1997-05-07 5:36 ` Christopher McCrory
1997-05-07 4:58 ` Michal Jaegermann
1997-05-07 15:27 ` Nikita Schmidt
1 sibling, 1 reply; 7+ messages in thread
From: Christopher McCrory @ 1997-05-07 5:36 UTC (permalink / raw)
At 12:22 PM 5/6/97 +0200, you wrote:
>A> jestabro@amt.tay1.dec.com wrote:
>>>
>>>>>> Stephan Schroepfer said:
>>>>> After installation of RHL4.1 on a PC164-based machine 'date'
>>>>> reports 'year 2017' (...)
>>>
>>> (...) Change /etc/sysconfig/clock to: CLOCKMODE="ARC".
>>>
In /etc/sysconfig/clock I changed ARC=false th ARC=true. That fixed it so
that the date comes up right.
so... Now all my files have timestamps in the year 2017. Hum... :(
Is there an easy way to fix this?
Puzzled
Christopher McCrory
Lead Bithead, Netus Inc.
chrismcc@netus.net
admin@netus.net
QUAKE Capture the Flag server @ quake.netus.com
"Some can do things others cannot" R.J.
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Wrong date with RHL4.1 on PC164
1997-05-07 5:36 ` Christopher McCrory
@ 1997-05-07 4:58 ` Michal Jaegermann
0 siblings, 0 replies; 7+ messages in thread
From: Michal Jaegermann @ 1997-05-07 4:58 UTC (permalink / raw)
>
>
> Now all my files have timestamps in the year 2017. Hum... :(
>
> Is there an easy way to fix this?
dirlist="/bin /boot /dev .... <all stuff you want to fix here>"
touch /tmp/now_is_the_time
find $dirlist -newer /tmp/now_is_the_time | xargs touch
rm /tmp/now_is_the_time
This will not change dates on symbolic links. They can be redone as well,
but require more care because they are used with libraries. Left as an
exercise to the reader (careful!). Also you may set date to some fancy
value, if you feel so inclined. See 'man touch'.
Fixing this dates is a very good idea; among other things your
makefiles, from time to time, will be recompiling things which they
really should not.
> Puzzled
Repeat the exercise using the latest Gooey interface. :-)
Michal
P.S. This was posted in this group already once or twice.
>
> "Some can do things others cannot" R.J.
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Wrong date with RHL4.1 on PC164
[not found] <MSGID_242=3A1000=2F22.156_466ce40c@Fido.DE>
1997-05-07 5:36 ` Christopher McCrory
@ 1997-05-07 15:27 ` Nikita Schmidt
1 sibling, 0 replies; 7+ messages in thread
From: Nikita Schmidt @ 1997-05-07 15:27 UTC (permalink / raw)
Gentlemen, I think that we need a more permanent solution to our
problem.
We must switch to using /dev/rtc. It seems to be the only acceptable
way of dealing with the CMOS clock, and the list of reasons why it is so
is attached below.
/dev/rtc is now broken on Alphas (at least in 2.0.x), but there is a patch
to fix it (21-RTC-alpha2.diff somewhere at http://www.linuxhq.com).
I have modified it to provide more flexible epoch support (that ugly
2017 stuff) with epoch autodetection on Alphas (no more ARC=true!).
I'm going to submit the patch for inclusion into 2.0.31 if nobody stops
me. The patch was posted to axp-kernel-list some days ago.
If anybody wants to give it a try, it is also available by ftp from
genie.ucd.ie:/pub/alpha/kernel/ as rtc-alpha.diff. The (slightly
modified) hwclock program from util-linux-2.6 is in /pub/alpha/hwclock in
both source and binary (compiled with glibc-2) formats.
Now, why I think that /dev/rtc approach is superior.
1. Direct hardware access as practiced by /sbin/clock is getting more
messy with every new supported platform. /dev/rtc is a unified interface
(at least for ix86 and Alpha). The kernel has to be system specific
anyway, and it's always the kernel's task to hide the system dependent
stuff from userland programs.
2. /dev/rtc is the only SMP-safe way to go. I doubt that SMP-aware
alternatives for cli/sti or for atomic() hack as found in Alpha version of
/sbin/clock are going to be provided to user processes in a near future.
3. /sbin/clock is being phased out by the authors of util-linux package
in favour of /sbin/hwclock. In my opinion, it is not worth the effort
to bring the numerous Alpha specific changes (-J, -A, atomic(),
/dev/port) from clock to hwclock, as compared to fixing /dev/rtc in the
kernel. Staying with no longer supported /sbin/clock and watching the
rest of Linux community enjoy bells and whistles of hwclock is no good
either.
After all, kernel interface to hardware is much cleaner than direct
access from the userland, isn't it? That's how all other devices get
accessed by programs. (Except for video cards.)
I realise that the epoch autodetection may not really be a kernel issue,
but that's the way it best fits the current scheme.
Thanks.
Kit
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~1997-05-07 15:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-29 13:42 Wrong date with RHL4.1 on PC164 Stephan Schroepfer
1997-04-29 14:57 ` jestabro
-- strict thread matches above, loose matches on Subject: below --
1997-04-30 9:00 Stephan Schroepfer
1997-05-06 10:22 ` Christoph Franzen
[not found] <MSGID_242=3A1000=2F22.156_466ce40c@Fido.DE>
1997-05-07 5:36 ` Christopher McCrory
1997-05-07 4:58 ` Michal Jaegermann
1997-05-07 15:27 ` Nikita Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox