linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: rtc again...
@ 2000-08-03  9:56 Iain Sandoe
  2000-08-03 10:13 ` Benjamin Herrenschmidt
  2000-08-03 11:58 ` Martin Costabel
  0 siblings, 2 replies; 4+ messages in thread
From: Iain Sandoe @ 2000-08-03  9:56 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, martin costabel, linuxppc-dev


and the 2.2.17pre15 dmesg contains the lines:

====
Linux version 2.2.17pre15-ben1-snd (root@athena) (gcc version 2.95.2
19991024 (release/franzo)) #2 Wed Aug 2 23:16:52 BST 2000
[...]
pmac nvram is core99: 0
System has 64 possible interrupts
GMT Delta read from XPRAM: 60 minutes, DST: on

====

which, as I said, works as long as RTC is -not- involved.
are we applying a correct twice?

Iain.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: rtc again...
  2000-08-03  9:56 rtc again Iain Sandoe
@ 2000-08-03 10:13 ` Benjamin Herrenschmidt
  2000-08-03 11:58 ` Martin Costabel
  1 sibling, 0 replies; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2000-08-03 10:13 UTC (permalink / raw)
  To: Iain Sandoe, linuxppc-dev


>
>which, as I said, works as long as RTC is -not- involved.
>are we applying a correct twice?

I beleive it may be a userland crap doing wrong things with /dev/rtc


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: rtc again...
  2000-08-03  9:56 rtc again Iain Sandoe
  2000-08-03 10:13 ` Benjamin Herrenschmidt
@ 2000-08-03 11:58 ` Martin Costabel
  2000-08-03 12:28   ` initscript logging (was rtc again...) Hollis Blanchard
  1 sibling, 1 reply; 4+ messages in thread
From: Martin Costabel @ 2000-08-03 11:58 UTC (permalink / raw)
  To: Iain Sandoe; +Cc: Benjamin Herrenschmidt, linuxppc-dev


Iain Sandoe wrote:
>
> and the 2.2.17pre15 dmesg contains the lines:
>
> ====
> Linux version 2.2.17pre15-ben1-snd (root@athena) (gcc version 2.95.2
> 19991024 (release/franzo)) #2 Wed Aug 2 23:16:52 BST 2000
> [...]
> pmac nvram is core99: 0
> System has 64 possible interrupts
> GMT Delta read from XPRAM: 60 minutes, DST: on
>
> ====
>
> which, as I said, works as long as RTC is -not- involved.
> are we applying a correct twice?

This is my impression, too. My clock is set to localtime (according to
MacOS, clock -r, and hwclock -r --localtime). Pre-rtc 2.2.x and
2.4.0-test5 give the same system time as MacOS, but 2.2.17pre13 with
Ben's patch is 2 hours early, that is, it sets system time to UTC. It is
not surprising that 2.2.17-pre13-bk and 2.4.0-test5 don't give the same
result, because the former contains Ben's offset patch and the latter
doesn't. The question is only which one is right.

Another observation from /var/log/messages (since Ben was talking about
the early system time before rc.sysinit does its job): In the
2.4.0-test5 boot messages, I see a few that have the wrong time
(localtime+2 hours). These are the actions done by rc.sysinit before the
clock gets set (mounting /proc and setting kernel parameters). On the
other hand, all kernel messages show the correct time. In the boot
messages from 2.2.17, with or without Ben's patch, there are no messages
with a wrong time (except when all of them have the wrong time :-)).

But then I admit don't understand what the timestamps in log/messages
mean. They certainly don't indicate the time when the actions happened.
The kernel messages have later timestamps than the rc.sysinit actions.
And in 2.4.x the order of these messages is completely different from
the one in 2.2.x.

--
Martin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: initscript logging (was rtc again...)
  2000-08-03 11:58 ` Martin Costabel
@ 2000-08-03 12:28   ` Hollis Blanchard
  0 siblings, 0 replies; 4+ messages in thread
From: Hollis Blanchard @ 2000-08-03 12:28 UTC (permalink / raw)
  To: Martin Costabel; +Cc: linuxppc-dev


Martin Costabel wrote:
>
> But then I admit don't understand what the timestamps in log/messages
> mean. They certainly don't indicate the time when the actions happened.
> The kernel messages have later timestamps than the rc.sysinit actions.
> And in 2.4.x the order of these messages is completely different from
> the one in 2.2.x.

Actually I was just reading about that at
http://www.redhat.com/knowledgebase/initscripts. Apparently all the messages
are buffered by a fake syslogd until root is remounted rw, at which point
the syslog buffer, the kernel dmesg buffer, and additional init script
activity is all send to the real syslogd and klogd (and logged to disk) at
the same time. Understandably, things get mixed up a little.

-Hollis

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-08-03 12:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-03  9:56 rtc again Iain Sandoe
2000-08-03 10:13 ` Benjamin Herrenschmidt
2000-08-03 11:58 ` Martin Costabel
2000-08-03 12:28   ` initscript logging (was rtc again...) Hollis Blanchard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).