[lkml]   [2017]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectSpecifying console via "stdout-path" property
Hi everyone,

I got strange results when I tried to specify device to use as console
via "stdout-path" property in device tree:
Even If I specify device in "stdout-path" property first probed device
(of those that can be used as console device) is used as console.

For example:
chosen {
    stdout-path = &serial1;

serial0: uart0@... {} /* serial0 is used as console (ttyS0) as it is
* probed earlier */
serial1: uart1@... {}

So I am wondering is it expected behavior?

Everything is fine if I specify uart device via "console" parameter in
chosen {
    bootargs = "console=ttyS1"
    stdout-path = &serial1;

serial0: uart0@... {}
serial1: uart1@... {} /* serial1 is used as console (ttyS1) */

 Eugeniy Paltsev
 \ /
  Last update: 2017-08-22 20:11    [W:0.024 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site