From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Hurley Subject: Re: chosen/stdout-path and userland (Re: Can't boot kernel v4.0-rc2 on Koelsch) Date: Wed, 11 Mar 2015 09:42:41 -0400 Message-ID: <55004651.2000205@hurleysoftware.com> References: <55003D82.1080601@hurleysoftware.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-sh-owner@vger.kernel.org To: Geert Uytterhoeven Cc: Laurent Pinchart , Grant Likely , Mark Rutland , Rob Herring , Cao Minh Hiep , Nobuhiro Iwamatsu , Linux-SH , Kuninori Morimoto , Magnus Damm , Simon Horman , Sakato Ryusuke , Yoshihiro Shimoda , "devicetree@vger.kernel.org" List-Id: devicetree@vger.kernel.org Hi Geert, On 03/11/2015 09:23 AM, Geert Uytterhoeven wrote: > Hi Peter, > > On Wed, Mar 11, 2015 at 2:05 PM, Peter Hurley wrote: >> The first console listed is the primary console. >> tty0 is not resolved to its underlying tty device name. > > Are you sure about that? Isn't the last one the primary console? > > root@koelsch:~# cat /sys/class/tty/console/active > tty0 ttySC0 > > If tty0 would be the primary console, getty on /dev/console wouldn't work for > my serial console, as only input on the primary console can be read through > /dev/console if my memory serves me well (or perhaps this has changed?). > > Ah, Documentation/ABI/testing/sysfs-tty agrees with me: > > What: /sys/class/tty/console/active > Date: Nov 2010 > Contact: Kay Sievers > Description: > Shows the list of currently configured > console devices, like 'tty1 ttyS0'. > The last entry in the file is the active > device connected to /dev/console. Did I write 'first'? Yeah, it is 'last', as the documentation states. >> That said, is the original reporter of this problem even interested in >> upgrading their userspace, even if this is fixed in Linaro eventually? >> What about other Linaro users? > > We'll see... > >> I think the only reasonable course here is to continue to support >> "console=" in /chosen/bootargs. > > Hmm... > If you really need it, you can always add it to the U-Boot bootargs variable. Is u-boot a given? Regards, Peter Hurley