Linux M68K Architecture development
 help / color / mirror / Atom feed
From: Finn Thain <fthain@telegraphics.com.au>
To: "Kolbjørn Barmen" <linux-m68k@kolla.no>
Cc: Riccardo <riccardo@kaffe.org>, Brad Boyer <flar@allandria.com>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Linux/m68k <linux-m68k@vger.kernel.org>
Subject: Re: [PATCH] reinstate mac rtc
Date: Mon, 20 Oct 2008 13:03:41 +1100 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0810201220540.7550@loopy.telegraphics.com.au> (raw)
In-Reply-To: <alpine.LNX.2.00.0810191813240.1848@firda.kolla.no>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 3607 bytes --]



On Sun, 19 Oct 2008, Kolbjørn Barmen wrote:

> On Sun, 19 Oct 2008, Finn Thain wrote:
> 
> > On Sat, 18 Oct 2008, Kolbjørn Barmen wrote:
> > 
> > > On Sat, 18 Oct 2008, Riccardo wrote:
> > > 
> > > > I don't know "how", but with 2.2 kernels I always had a correct 
> > > > date at boot without any tricks. It is true though that with high 
> > > > CPU load we had clockskew and that we didn't save back the date 
> > > > and hourtime to the clock, thus any clock setting needed to be 
> > > > done from the mac side. A compromoise, but better than the current 
> > > > situation.
> > > 
> > > The clockproblem is something I stumble upon every now and then on 
> > > various machinees - I really wish there was a kernel parameter where 
> > > one could set a date string, then the bootloader could pass it on.
> > 
> > It isn't a problem if you disable the time-stamp triggered fsck and 
> > set the clock from the network (rdate or ntp).
> 
> This is the answer I keep getting, but it isnt really helping.

Works for me. Especially when I cannot source a clock battery. One must 
fabricate the 4.5 pack for the LC 630 and similar models (New Old Stock 
batteries don't last long enough to be worth the cost even if you can find 
them).

In fact, many of the several dozen machines I must test have no clock 
battery at all since even the 3.6 V 1/2 AA lithium cells cost me 
AUD$10-$15 each. Replacing the battery in a powerbook is difficult because 
it always means disassembly and, in some models, it means replacing a PCB 
mount cell. (But they need to be removed, I guess, since the old NiCd ones 
in all of my PB 150s were beginning to leak. I don't generally replace 
them, since that's inviting PMU flakiness when the go flat again).

BTW, I've seen old Li 1/2 AA cells leak too (but not the Li button 
cells... so far).

> * SSL/TLS and certificate validation. For example my gumtix uses 802.1X 
>   to get online, when it is running in "1970-01-01", the server and 
>   client certificates are ofcourse not valid and the authentication 
>   _will_ fail, and it wont go online, and therefor no ntp. As .1x is 
>   becoming more common even on the wire, this problem will grow, at 
>   least for me - and .1X is not the only "get online"-method that relies 
>   on certificate validation.
> 
> * Logs, erronous datestamps all over the place, and files made in 1970 
>   or whatever (my acer laptop always starts in 1988-01-01)

Right. The RTC is important. Perhaps you can configure eth0 using kernel 
parameters (like with NFS root) and then use eth0 to set the clock from 
userspace before filesystems are mounted r/w.

> There are so many kernel parameters for the strangest things, all I ask 
> for is one with a timestamp - then I could tell my gumstick to always 
> boot on a given time where the .1x certificates would be valid instead 
> of 1970-01-01. And on my laptop, I could just change a value in grub 
> before booting. On the mac, penguin could just take system time from 
> macos and pass it on, maybe even emile could do it.

I'd much prefer to see that effort spent on reverse engineering the VIA1 
accesses in question. This problem only applies to the Quadra 900/950 
AFAIK. None of the other several dozen models would see any benefit from 
changes to the mac bootloaders.

Finn

> 
> -- kolla
> --
> To unsubscribe from this list: send the line "unsubscribe linux-m68k" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

  reply	other threads:[~2008-10-20  2:03 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.64.0810061855300.28882@loopy.telegraphics.com.au>
2008-10-13 19:21 ` [PATCH] reinstate mac rtc Geert Uytterhoeven
2008-10-14  2:16   ` Finn Thain
2008-10-14  7:30     ` Geert Uytterhoeven
2008-10-15 21:41   ` Riccardo
2008-10-16  1:02     ` Finn Thain
2008-10-16  6:49       ` Brad Boyer
2008-10-18 11:12         ` Riccardo
2008-10-18 17:39           ` Kolbjørn Barmen
2008-10-19  2:53             ` Finn Thain
2008-10-19 16:37               ` Kolbjørn Barmen
2008-10-20  2:03                 ` Finn Thain [this message]
2008-10-20  2:05                 ` Michael Schmitz
2008-10-20 19:13                   ` Laurent Vivier
2008-10-22  7:19                     ` Michael Schmitz
2008-10-22 11:09                       ` Kolbjørn Barmen
2008-10-22 22:14                         ` Laurent Vivier
2008-10-23  3:56                           ` Michael Schmitz
2008-10-23  7:28                             ` Geert Uytterhoeven
2008-10-23  7:39                               ` Geert Uytterhoeven
2008-10-24  2:49                                 ` Michael Schmitz
2008-10-25  4:24                               ` Michael Schmitz
2008-10-25  5:10                                 ` Finn Thain
2008-10-25  7:08                                   ` Finn Thain
2008-10-26  3:04                                   ` Michael Schmitz
2008-10-26  3:24                                     ` Finn Thain
2008-10-19 11:52           ` Finn Thain
2008-10-18 16:17       ` Riccardo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0810201220540.7550@loopy.telegraphics.com.au \
    --to=fthain@telegraphics.com.au \
    --cc=flar@allandria.com \
    --cc=geert@linux-m68k.org \
    --cc=linux-m68k@kolla.no \
    --cc=linux-m68k@vger.kernel.org \
    --cc=riccardo@kaffe.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox