From mboxrd@z Thu Jan 1 00:00:00 1970 From: peter@hurleysoftware.com (Peter Hurley) Date: Wed, 21 Oct 2015 08:46:09 -0400 Subject: Which is better to specify console, "console= " or "stdout-path" ? In-Reply-To: <562753A6.3070107@arm.com> References: <562753A6.3070107@arm.com> Message-ID: <56278911.9050704@hurleysoftware.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 10/21/2015 04:58 AM, Sudeep Holla wrote: > On 21/10/15 06:09, Masahiro Yamada wrote: >> I think there exist two ways to specify the console port and baudrate. >> >> >> [1] Specify console in bootargs >> >> chosen { >> bootargs = "console=ttyS0,115200"; >> }; >> >> >> [2] Specify stdout-path >> >> chosen { >> stdout-path = "serial0:115200n8"; > > This will work for even early/boot console, so this is better than > option [1] Be aware that options specified via /chosen/stdout-path are currently ignored by earlycon. There were some hiccups getting the initial support upstream; when 4.4 hits mainline, I'll resubmit my series that implements the of_serial i/o properties and options passthrough to earlycon setup. Regards, Peter Hurley