Re: [PATCH 2/2] bootconfig: Apply early options from embedded config

From: Google
Date: Thu Nov 23 2023 - 09:18:16 EST


On Thu, 23 Nov 2023 11:04:00 +0100
Petr Malat <oss@xxxxxxxxx> wrote:

> Hi!
>
> On Thu, Nov 23, 2023 at 11:22:07AM +0900, Masami Hiramatsu wrote:
> > BTW, we also need to make a block-list for some early params. some of those
> > MUST be passed from the bootloader. E.g. initrd address and size will be
> > passed from the bootloader via commandline. Thus such params in the embedded
> > bootconfig should be filtered at the build time.
>
> It's ok to configure these in the embedded bootconfig - in a case they are
> provided by the bootloader, the bootconfig value is overridden, if not, the
> value from bootconfig is used, so it works as expected.

I meant some params only bootloader knows, like where the initrd is loaded.
Anyway, if user sets such value, it will break the kernel boot as expected :P.

Thank you,

> Petr


--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>