How to disable console late?
Sascha Hauer
s.hauer at pengutronix.de
Wed Jun 25 22:52:09 PDT 2014
On Wed, Jun 25, 2014 at 06:22:04PM +0200, Holger Schurig wrote:
> On my i.MX6 I have CONFIG_CONSOLE_FULL and CONSOLE_ACTIVATE_NONE
> defined. But still my serial is automatically activated as a console.
>
> barebox:/ devinfo cs0
> Bus: platform
> Parameters:
> baudrate: 115200
> active: ioe
>
> I'd rather active the serial port as a console only if a key is
> pressed during power on. Based on the help text of
> CONFIG_ACTIVATE_NONE, I actually thought that this would happen.
>
> Any hints?
>
>
> I could remove chosen/stdout-path from my DTS and put it in
> on-the-fly? This sounds a bit ugly ...
Indeed you have to remove the stdout-path property from DTS. You don't
have to add it back, 'cs0.active=ioe' should do it. Note we currently
don't have persistent names for the console devices which means that
cs0 is whatever is probed first.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list