[PATCH 09/11] bootm: Allow updating the bootargs in a buffer

Simon Glass sjg at chromium.org
Wed Oct 21 17:51:19 CEST 2020


Hi Wolfgang,

On Wed, 21 Oct 2020 at 00:57, Wolfgang Denk <wd at denx.de> wrote:
>
> Dear Simon,
>
> In message <CAPnjgZ3hYf9F7eBqMQBKpe4jM=hW46dhCPxGU=cBVV8M_WNKDQ at mail.gmail.com> you wrote:
> >
> > > I think this is the wrong way to address a problem.
> > >
> > > Instead, zimage should use bootargs as well.
> >
> > OK I can add that. But for testing purposes it is still good to be
> > able to have the feature in a function that can be called without
> > going through environment variables.
>
> OK with me - if it doesn't add to the code size.

The bootm refactoring adds about 144 bytes of code for Thumb2 and 31
bytes of data. I think it is worth it for the ability to add tests.
The extra substitution feature doesn't add any size if not enabled.

Regards,
Simon


More information about the U-Boot mailing list