2002-04-04 15:52:59

by Eric W. Biederman

[permalink] [raw]
Subject: Re: moving some boot code out of arch directories

Gerald Champagne <[email protected]> writes:

> Eric,
>
> I'm working with a mips kernel which currently doesn't have support for
> compressed kernels, compiled in command lines, and other things like that.
> I looked into some other arch specific code, and it looks like there are
> quite a few things like this in one arch or another that could be moved
> into common code. Do you have any thoughts on things that could be moved
> into the common code?

A have some thoughts but nothing to concrete right now. On every architecture
booting seems to be a completely roll your own solution. Which I find
very annoying. This one of the reasons I am also working on general
linux booting linux support. If we could get as far as a bootloader
that works on multiple architectures perhaps we could start to unify
some of these things.

> One of the reasons I ask is because someone asked about adding compressed
> kernel support to the mips tree, and Ralf's response was:
>
> "General rant, not directed to you personally. Right now we've got more
> than half a dozen variations of code to support compressed images throughout
> the kernel. So I'm not going to accept any new patches for compressed
> images before this mess has been cleaned. Volunteers :-) "

I think most of the cleanup has been done. But reducing the number of
copies of zlib was work that someone was doing recently.

> I don't how much more of the compressed kernel support can be moved into
> the common directories, but I think things like compiled in command lines
> could be moved into common code. Since you're very familiar with the
> boot code, do you see anything reasonable that can be done?

I really don't know about compiled in command lines. To me they have
most value when you can take an external utility and edit the command
line that is compiled into the kernel.

Eric


2002-04-05 07:52:10

by Robert Schwebel

[permalink] [raw]
Subject: Re: moving some boot code out of arch directories

On 4 Apr 2002, Eric W. Biederman wrote:
> A have some thoughts but nothing to concrete right now. On every
> architecture booting seems to be a completely roll your own solution.
> Which I find very annoying. This one of the reasons I am also working
> on general linux booting linux support. If we could get as far as a
> bootloader that works on multiple architectures perhaps we could start
> to unify some of these things.

You might want to have a look at PPCboot / ARMboot (the latter one is a
recent port to ARM) which seems to be very interesting! Only a port to x86
is missing (or, better, a unified project...)

Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+

2002-04-05 08:05:50

by Eric W. Biederman

[permalink] [raw]
Subject: Re: moving some boot code out of arch directories

Robert Schwebel <[email protected]> writes:

> On 4 Apr 2002, Eric W. Biederman wrote:
> > A have some thoughts but nothing to concrete right now. On every
> > architecture booting seems to be a completely roll your own solution.
> > Which I find very annoying. This one of the reasons I am also working
> > on general linux booting linux support. If we could get as far as a
> > bootloader that works on multiple architectures perhaps we could start
> > to unify some of these things.
>
> You might want to have a look at PPCboot / ARMboot (the latter one is a
> recent port to ARM) which seems to be very interesting! Only a port to x86
> is missing (or, better, a unified project...)

Do you have any pointers?

Eric

2002-04-05 08:11:50

by Robert Schwebel

[permalink] [raw]
Subject: Re: moving some boot code out of arch directories

On 5 Apr 2002, Eric W. Biederman wrote:
> Do you have any pointers?

http://ppcboot.sourceforge.net
http://sourceforge.net/projects/armboot

Robert
--
+--------------------------------------------------------+
| Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de |
| Pengutronix - Linux Solutions for Science and Industry |
| Braunschweiger Str. 79, 31134 Hildesheim, Germany |
| Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4 |
+--------------------------------------------------------+