Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752272AbbEDUWc (ORCPT ); Mon, 4 May 2015 16:22:32 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:60401 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751975AbbEDUWZ (ORCPT ); Mon, 4 May 2015 16:22:25 -0400 Date: Mon, 4 May 2015 22:22:23 +0200 From: Sascha Hauer To: Peter Hurley Cc: Robert Schwebel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org Subject: Re: earlycon: no match? Message-ID: <20150504202223.GT6325@pengutronix.de> References: <20150503211054.GR15254@pengutronix.de> <55477BC1.6000805@hurleysoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55477BC1.6000805@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: 22:05:07 up 49 days, 7:57, 78 users, load average: 0.09, 0.12, 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: sha@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: 1831 Lines: 53 On Mon, May 04, 2015 at 10:01:37AM -0400, Peter Hurley wrote: > Hi Robert, > > On 05/03/2015 05:10 PM, Robert Schwebel wrote: > > Hi Peter, > > > > with 4.1-rc1, my boxes with early console enabled show something like > > this (the example is vexpress, but it for example also happens on an > > AM335x board): > > > > earlycon: no match for ttyAMA0,38400n8 > > This shouldn't impact any previous earlycon setup. Are you saying > you're seeing a regression? > > How do you have early console enabled, via the command line or via DT? What happens here is that Robert has console=ttyAMA0,38400n8 in his command line. In init/main.c we have: static int __init do_early_param(char *param, char *val, const char *unused) { const struct obs_kernel_param *p; for (p = __setup_start; p < __setup_end; p++) { if ((p->early && parameq(param, p->str)) || (strcmp(param, "console") == 0 && strcmp(p->str, "earlycon") == 0) ) { if (p->setup_func(val) != 0) pr_warn("Malformed early option '%s'\n", param); } } /* We accept everything at this stage. */ return 0; } This means that param_setup_earlycon() gets called with the arguments passed to the console= parameter which makes no sense in this context and leads to the "no match for" message. Sascha -- 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/