All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Luther <sven.luther@wanadoo.fr>
To: Tom Rini <trini@kernel.crashing.org>
Cc: Sven Luther <sven.luther@wanadoo.fr>,
	Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	Lee Braiden <jel@ntlworld.com>,
	debian-powerpc@lists.debian.org, linuxppc-dev@lists.linuxppc.org
Subject: Re: Would setting the CONFIG_RTC option break the powerpc kernel on your machine ?
Date: Mon, 22 Dec 2003 17:48:22 +0100	[thread overview]
Message-ID: <20031222164822.GA9373@iliana> (raw)
In-Reply-To: <20031222163315.GC10841@stop.crashing.org>


On Mon, Dec 22, 2003 at 09:33:15AM -0700, Tom Rini wrote:
> On Mon, Dec 22, 2003 at 05:26:01PM +0100, Sven Luther wrote:
>
> > On Mon, Dec 22, 2003 at 09:10:42AM -0700, Tom Rini wrote:
> > > > Also, the todc code knows about many RTC chips, among them, the MC146818
> > > > seems to be the one used by the rtc.h stuff, and seems to be a generic
> > > > legacy RTC chip or something. he one i have, builtin the VIA VT8231
> > > > southbridge is said to be called VT82887, altough i have no docs of
> > > > those, but the header files found in 2.6 concord. But i seem to have
> > > > some additional DATE_ALARM, MONTH_ALARM and CENTURY_FIELD registers not
> > > > found int the MC146818 header file.
> > >
> > > I appologize since I ramble a bit too much.  For 2.4, the best fix is
> > > (1) above.  For 2.6 however, it should be possible to remove chrp_time.c
> > > and use todc_time.c instead (it is self-contained, wrt nvram read/write,
> > > iirc) and do some sub-casing to pick the right RTC chip code to use.
> > > For example on PReP we still case between the two different chips, and
> > > just call todc_init (iirc) with a different param.  Or something along
> > > those lines.
> >
> > Ok, i have looked more, and the MC146818 is ok for my box. don't know
> > about other chrp boxes though.
> >
> > There is also the todc code in the 2.4 tree though, so it should also be
> > possible to do it this way, or would it not ?
>
> It would be possible, but it would be more intrusive for a stable
> series.

Ok, i will do it the rtc.h way then, and see what happens.

> > Anyway, i will submit a patch against 2.4.23 (from linuxppc_2_4, but it
> > may also include the pegasos patches Ben has had no time to checkin)
> > tomorrow.
> >
> > Next thing i need is a solution for builtin initrd's of bigger sizes.
> > 1.4Mo seem to work, but 2.2Mo break somehow (no init found, but if the
> > initrd is uncompressed to some partition, it work fine).
>
> which code subset under arch/ppc/boot does pegasos use?

it is mostly a chrp, except for a few lines patch needed for things as
pci indirection and other such.

> Does it really have OpenFirmware?

Yeah, and i even have the source of it (not free software though). OF
coding is a nightmare though.

> I've booted large ramdisks in the past from the
> arch/ppc/boot/simple/ stuff (And prep/) but I believe that chrp/pmac

Ok.

> place the initrd at a location high in memory, have holes to deal with,

Mmm, indeed the initrd is moved to RAM_END - initrd_size by
arch/ppc/boot/chrp/main.c:chrpboot, where RAM_END is defined as 64<<20
(which is 64Mo and i have 128Mo). the pmac chrp boot uses only 16<<20.

Mmm, maybe arch/ppc/kernel/setup.c:plafrom_init does contain only stuff
for prep, not chrp, not sure, chrp_init.c in chrp_setup.c does use r6
and r7 for determining the initrd location and size.

Actually, i don't really know enough about this to fix this issue alone,
i have no knowledge of the holes you speak about for example :((

Time for more kernel source reading then :))

> etc, etc, while simple/ and prep/ (more or less) just ignore the
> firmware once it's up.

Mmm I didn't know about simple, what subarches use that one exactly ?

Friendly,

Sven Luther

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

  reply	other threads:[~2003-12-22 16:48 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20031216105656.GA5291@iliana>
     [not found] ` <1071642293.753.414.camel@gaston>
     [not found]   ` <200312170717.36564.jel@ntlworld.com>
     [not found]     ` <1071646057.6370.482.camel@gaston>
2003-12-17  9:51       ` Would setting the CONFIG_RTC option break the powerpc kernel on your machine ? Sven Luther
2003-12-17 10:27         ` Geert Uytterhoeven
2003-12-17 15:45           ` Segher Boessenkool
2003-12-17 16:18             ` Geert Uytterhoeven
2003-12-17 17:16               ` Segher Boessenkool
2003-12-17 16:47         ` Tom Rini
2003-12-17 16:56           ` Sven Luther
2003-12-17 17:06             ` Tom Rini
2003-12-17 17:10               ` Sven Luther
2003-12-17 17:24                 ` Tom Rini
2003-12-19 11:40               ` Sven Luther
2003-12-19 16:28                 ` Tom Rini
2003-12-22 13:45                   ` Sven Luther
2003-12-22 16:10                     ` Tom Rini
2003-12-22 16:26                       ` Sven Luther
2003-12-22 16:33                         ` Tom Rini
2003-12-22 16:48                           ` Sven Luther [this message]
2003-12-22 16:59                             ` Tom Rini
2003-12-22 17:02                             ` Mark Guertin
2003-12-22 17:27                               ` Sven Luther
2004-01-07  6:54                           ` Sven Luther
2004-01-07  7:22                             ` Benjamin Herrenschmidt
2004-01-07  7:43                               ` Sven Luther
2004-01-07  7:47                               ` Sven Luther
2004-01-07  8:30                                 ` Benjamin Herrenschmidt
2004-01-07  9:53                                   ` Sven Luther
2004-01-07 10:44                                     ` Benjamin Herrenschmidt
2004-01-07 10:54                                       ` Sven Luther
2004-01-07 11:47                                         ` Benjamin Herrenschmidt
2004-01-07 11:53                                           ` Sven Luther
2004-01-07 18:34                                   ` Tom Rini
2004-01-07  7:51                               ` Ethan Benson
2004-01-07 11:27                                 ` Volunteer needed : " Sven Luther
2004-01-07 12:28                                   ` Ethan Benson
2004-01-07 14:47                                     ` Sven Luther
2004-01-08  7:27                                       ` Ethan Benson
2004-01-08 15:53                                         ` Tom Rini
2004-01-08 17:47                                           ` Sven Luther
2004-01-08 21:53                                             ` Benjamin Herrenschmidt
2004-01-08 21:57                                               ` Sven Luther

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=20031222164822.GA9373@iliana \
    --to=sven.luther@wanadoo.fr \
    --cc=benh@kernel.crashing.org \
    --cc=debian-powerpc@lists.debian.org \
    --cc=jel@ntlworld.com \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=trini@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.