linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: paulus@samba.org, linuxppc-dev@lists.linuxppc.org
Subject: Re: boot methods
Date: Tue, 16 Oct 2001 00:04:24 +0200	[thread overview]
Message-ID: <20011015220429.3AD8B10887@denx.denx.de> (raw)
In-Reply-To: Your message of "Mon, 15 Oct 2001 23:37:34 +0200." <20011015213734.24146@smtp.adsl.oleane.com>


Dear Ben,

in message <20011015213734.24146@smtp.adsl.oleane.com> you wrote:
>
> No, I want to get rid of bt_t. There will be a bi_rec for clocks,
> one for cmd line, etc... and possibly all sort of custom bi_recs
> you want for your boards.
>
> Any bit of kernel can then do a find_birec(type) type call to get
> the bi_rec it wants at any time.

OK. Sounds fine to me.

> Ok, time to write things down ;) I'm not sure we even all have the
> same ideas in mind as the bi_rec scheme constructed on the result of
> numerous discussions on mailing lists and irc.

Thanks - I apologize that I'm insisting on some "formal" description,
but I feel it's important enough to make sure everybody  has  exactly
the same understanding.

> But we don't want kernels & bootloader to rely on it. The bootloader
> must behave as if it was talking to a wrapper (which does the unzip
> operation in most cases) so that any interface chance we may want
> to add can go to that wrapper.

I would like to ask to make the unzip part optional.

> non native ways (that is a firmware not doing bi_recs). The goal is
> to have the code for converting the firmware interface to bi_recs
> be kept in the wrapper and not in the kernel.

Agreed.

> >- which functions are _required_ in all cases by the wrapper?
>
> Any knowledge specific to the low level firmware interface should stay
> there. We eventually wanted to have the unzipping function there as
> well, which also implies the relocating in cases the kernel can be
> loaded at a different address than 0.

Please do NOT make  the  unzip  part  a  required  operation  in  the
wrapper!  This  may  be  a  convenient thing to do in many cases, but
there are other  situations;  in  some  embedded  systems  which  are
optimized  for  minimal  boot time after power-on I don't have enough
time to uncompress an image - I must be able to boot an  uncompressed
kernel as well.

And if the firmware knows how to uncompress an image - why  should  I
duplicate the code in the wrapper?


Also, the design should NOT require that the wrapper and  the  kernel
are linked against each other in any way.

> I think the point isn't clear for everybody about the embedded case
> as we mostly deal with evil firmwares ;) The above is my view of it,
> and what I intend to code in the 2.5 timeframe. Other people may have
> other views I didn't understood or didn't agree with ;) Ultimately,
> Paulus will decide what will get in.

Well, you can count on my vote for your  proposal  if  it  should  be
asked for. It makes sense to me.


Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
      Bugs are by far the largest and  most successful class of
      entity, with nearly a million known species. In this res-
      pect they outnumber all the other  known  creatures about
      four to one.  -- Professor Snope's Encyclopedia of Animal

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

       reply	other threads:[~2001-10-15 22:04 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20011015213734.24146@smtp.adsl.oleane.com>
2001-10-15 22:04 ` Wolfgang Denk [this message]
2001-11-05  6:26 boot methods Albert D. Cahalan
2001-11-05 15:10 ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2001-10-15 21:32 Michael Sokolov
2001-10-19 12:05 ` Paul Mackerras
2001-10-19 13:28   ` Wolfgang Denk
2001-10-12 18:21 Michael Sokolov
2001-10-12 18:13 Tom Rini
2001-11-03  1:13 ` Paul Mackerras
2001-11-03  1:55   ` Tom Rini
2001-11-02 23:57     ` Matt Porter
2001-11-03  9:45     ` Wolfgang Denk
2001-11-03 15:15       ` Tom Rini
2001-11-03 18:36         ` Wolfgang Denk
2001-11-06 16:59     ` Mark A. Greer
2001-11-06 18:55       ` Tom Rini
2001-11-06 21:21         ` Mark A. Greer
2001-10-12 16:56 Michael Sokolov
2001-10-12  7:32 Paul Mackerras
2001-10-12  8:40 ` Geert Uytterhoeven
2001-10-12  9:16 ` Wolfgang Denk
2001-10-13 11:20   ` Paul Mackerras
2001-10-14 15:44     ` Wolfgang Denk
2001-10-15 12:42       ` Benjamin Herrenschmidt
2001-10-15 13:32         ` Wolfgang Denk
2001-10-12 10:19 ` Michael Schmitz
2001-10-12 10:55 ` Juergen E. Fischer
2001-10-12 13:37 ` Nils Krueger
2001-10-12 21:53 ` Michel Lanners
2001-10-13 11:01 ` Michel Dänzer
2001-10-15 13:50 ` Peter Bergner
2001-10-16 23:49 ` Val Henson

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=20011015220429.3AD8B10887@denx.denx.de \
    --to=wd@denx.de \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).