console: Set Linux console parameter automatically
Linux specifies the linux,stdout-path property in the /chosen node
in the devicetree. Unfortunately this is ignored in most cases.
For cases in which barebox uses this property for its own use we
translate this into a Linux boot arg with:

- the console name provided by the serial driver
- the the instance from the 'serial' alias
- the baudrate from the actual baudrate.

So with this it's for devicetee enabled boards no longer necessary
to manually assign a console= parameter. Should a user not want
to use the automatically assigned parameter it should do:

global.linux.bootargs.console=

in the environment.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1ebf5ff commit dac65f99e8bf1fbe2e15fa96ef901623bb49dc89
@Sascha Hauer Sascha Hauer authored on 26 Nov 2013
Showing 5 changed files
View
common/console.c
View
defaultenv-2/base/bin/init
View
drivers/serial/serial_imx.c
View
drivers/serial/serial_ns16550.c
View
include/console.h