From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sudeep Holla Subject: Re: Which is better to specify console, "console= " or "stdout-path" ? Date: Wed, 21 Oct 2015 09:58:14 +0100 Message-ID: <562753A6.3070107@arm.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Masahiro Yamada , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel , linux-serial-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Sudeep Holla List-Id: devicetree@vger.kernel.org On 21/10/15 06:09, Masahiro Yamada wrote: > Hi. > > > 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] -- Regards, Sudeep -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 From: sudeep.holla@arm.com (Sudeep Holla) Date: Wed, 21 Oct 2015 09:58:14 +0100 Subject: Which is better to specify console, "console= " or "stdout-path" ? In-Reply-To: References: Message-ID: <562753A6.3070107@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 21/10/15 06:09, Masahiro Yamada wrote: > Hi. > > > 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] -- Regards, Sudeep