[U-Boot] [PATCH 0/2] Deprecate Linux bootargs munging with CONFIG_SILENT_CONSOLE.

Doug Anderson
2012-01-10T21:04:27Z

On Tue, Jan 10, 2012 at 12:18 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> personally i found the current behavior useful, but the code to implement it
> is crappy. ?oh well.

Agreed. However, in the previous thread Wolfgang was of the view that
the behavior of silencing linux is best achieved with scripts. I'm OK
with that approach which is why I've submitted the current patch.

I believe that you can do a script something like this (where
normal_bootargs is the old bootargs without the console= part,
console_args is the non-silent console settings, and old_bootcmd is
the old bootcmd):

setenv generate_bootargs 'if test -n "$silent"; then \
setenv bootargs $normal_bootargs console=; \
else \
setenv bootargs $normal_bootargs $console_args;
fi'
setenv bootcmd 'run generate_bootargs; run old_bootcmd'

Hopefully this works for you. I'll add it to the documentation, too.

-Doug