Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754636AbbEEQcX (ORCPT ); Tue, 5 May 2015 12:32:23 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:45119 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754268AbbEEQcU (ORCPT ); Tue, 5 May 2015 12:32:20 -0400 Date: Tue, 5 May 2015 18:32:17 +0200 From: Robert Schwebel To: Peter Hurley Cc: linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: earlycon: no match? Message-ID: <20150505163217.GK14416@pengutronix.de> References: <20150503211054.GR15254@pengutronix.de> <55477BC1.6000805@hurleysoftware.com> <20150504194229.GR15254@pengutronix.de> <5547D4DB.8060300@hurleysoftware.com> <20150504205241.GT15254@pengutronix.de> <5547E447.9020604@hurleysoftware.com> <20150504215832.GW15254@pengutronix.de> <5547F350.7030405@hurleysoftware.com> <20150505045139.GY15254@pengutronix.de> <55489DF3.3070703@hurleysoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55489DF3.3070703@hurleysoftware.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 18:13:52 up 50 days, 4:05, 80 users, load average: 0,08, 0,10, 0,13 User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: rsc@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2898 Lines: 81 On Tue, May 05, 2015 at 06:39:47AM -0400, Peter Hurley wrote: > > > Further, I would ask how _you_ would programmatically distinguish > > > misspellings amongst the following console strings? > > > > > > console=pl012,... > > > console=_pl011,... > > > console=pl,... > > > console=ttyAMA0,... > > > > Only the last line gives me output, but with the warning. All others are > > misspellings but output nothing. The last one gives me a misspelling > > warning, but it is the one that makes the output work. > > > > Obviously this was not tested on an ARM device with a serial console, > > because it doesn't work there. > > The primary test platform was a ARM device with a serial console. > And yes, it does work there. Which ARM device was that, and which serial driver? How did the kernel command line look like? Maybe that helps me to understand how this is supposed to be used, which is currently totally unclear. > > Case A: console=ttyAMA0 > > > > Result: - system boots with output on intended serial console > > - warning about having the earlycon misspelled > > - earlycon not operational, although driver supports it > > > > Case B: console=pl011 > > > > Result: - no output at all, because system doesn't output to its > > intented serial console. > > > > Case C: ...? > > > > Are there other things I'm supposed to do in order to do it right? > > > > So both cases A+B are not fully working as intented, right? > > > > I'd like to fix it, but in order to do so, I want to learn how it is > > actually *intended* to work. > > What do you want to "fix"? > > Please stop using the indefinite pronoun, "it". I have no idea to what > you are referring, because I already supplied you with a patch to "fix" > the loglevel of the message. I have explained that above, under "Case A" and "Case B"...? Sorry, I simply don't get it. My task: I want to setup a vexpress system with a pl011 serial port in a way that the console + early console is configured to be on /dev/ttyAMA0. My attempts: Case A from above -> doesn't set the earlycon to /dev/ttyAMA0. Case B from above -> doesn't output anything. I fail to find out how this task is supposed to be done in a way that the kernel doesn't complain, and with the result to have console and earlycon on /dev/ttyAMA0. rsc -- 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 | -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/