Re: moving some boot code out of arch directories

Eric W. Biederman (ebiederm@xmission.com)
04 Apr 2002 08:46:05 -0700


Gerald Champagne <gerald.champagne@esstech.com> 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

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/