From: Peter Hurley <peter@hurleysoftware.com>
To: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Robert Schwebel <r.schwebel@pengutronix.de>,
linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org,
kernel@pengutronix.de
Subject: Re: earlycon: no match?
Date: Thu, 07 May 2015 18:37:42 -0400 [thread overview]
Message-ID: <554BE936.2040508@hurleysoftware.com> (raw)
In-Reply-To: <alpine.LFD.2.11.1505072241140.1538@eddie.linux-mips.org>
On 05/07/2015 06:25 PM, Maciej W. Rozycki wrote:
> On Thu, 7 May 2015, Peter Hurley wrote:
>
>>> How does this overload interact with multiple `console=' options being
>>> present BTW, which one is considered the early console? Or do we support
>>> driving multiple early consoles in parallel just as we do with regular
>>> consoles?
>>
>> Please familiarize yourself with the existing 'console=' and 'earlycon='
>> command line options documented in Documentation/kernel-parameters.txt
>
> Thank you for your suggestion, however that documentation does not answer
> my questions I am afraid (and neither does serial-console.txt). Otherwise
> I wouldn't have asked them in the first place. If you don't know the
> answers either, then it's OK to say: "I don't know".
>
> E.g. (given the parameter aliasing we have) will:
>
> `earlycon=uart8250,io,0x3f8 console=tty0'
> `console=tty0 earlycon=uart8250,io,0x3f8'
>
> do what I expect it to, that is open the UART at 0x3f8 as an early console
> and then hand it over to the ttyS0 device as respectively a secondary and
> the primary (/dev/console) regular console?
No.
>From Documentation/kernel-parameters.txt:
earlycon= [KNL] Output early console device and options.
.....
uart[8250],io,<addr>[,options]
uart[8250],mmio,<addr>[,options]
uart[8250],mmio32,<addr>[,options]
Start an early, polled-mode console on the 8250/16550
UART at the specified I/O port or MMIO address.
MMIO inter-register address stride is either 8-bit
(mmio) or 32-bit (mmio32).
The options are the same as for ttyS, above.
IOW, command line parameters of the form:
earlycon=uart8250,...
does not perform earlycon-to-console handoff.
Also from Documentation/kernel-parameters.txt:
console= [KNL] Output console device and options.
.....
uart[8250],io,<addr>[,options]
uart[8250],mmio,<addr>[,options]
Start an early, polled-mode console on the 8250/16550
UART at the specified I/O port or MMIO address,
switching to the matching ttyS device later. The
options are the same as for ttyS, above.
IOW, command line parameters of the form:
console=uart8250,...
performs earlycon-to-console handoff.
Furthermore, because of the way aliasing was implemented in 2007,
it has been possible since to start _any_ earlycon with command line
parameters of the form:
console=<earlycon name>,....
However, only 8250 implemented the console handoff.
Regards,
Peter Hurley
next prev parent reply other threads:[~2015-05-07 22:37 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-03 21:10 earlycon: no match? Robert Schwebel
2015-05-04 14:01 ` Peter Hurley
2015-05-04 16:52 ` Peter Hurley
2015-05-04 19:42 ` Robert Schwebel
2015-05-04 20:21 ` Peter Hurley
2015-05-04 20:52 ` Robert Schwebel
2015-05-04 21:27 ` Peter Hurley
2015-05-04 21:58 ` Robert Schwebel
2015-05-04 22:31 ` Peter Hurley
2015-05-05 4:51 ` Robert Schwebel
2015-05-05 10:39 ` Peter Hurley
2015-05-05 16:32 ` Robert Schwebel
2015-05-05 18:15 ` Peter Hurley
2015-05-05 17:06 ` Fabio Estevam
2015-05-07 17:09 ` Maciej W. Rozycki
2015-05-07 17:22 ` Peter Hurley
2015-05-07 20:14 ` Maciej W. Rozycki
2015-05-07 21:13 ` Peter Hurley
2015-05-07 22:25 ` Maciej W. Rozycki
2015-05-07 22:37 ` Peter Hurley [this message]
2015-05-08 16:11 ` Maciej W. Rozycki
2015-05-08 6:34 ` Sascha Hauer
2015-05-08 10:12 ` Peter Hurley
2015-05-04 20:22 ` Sascha Hauer
2015-05-04 20:34 ` Peter Hurley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=554BE936.2040508@hurleysoftware.com \
--to=peter@hurleysoftware.com \
--cc=kernel@pengutronix.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=macro@linux-mips.org \
--cc=r.schwebel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).