Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Luca Ceresoli <luca@lucaceresoli.net>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] raspberrypi, raspberrypi2: add a serial console
Date: Wed, 30 Mar 2016 14:04:27 +0200	[thread overview]
Message-ID: <56FBC0CB.4030607@lucaceresoli.net> (raw)
In-Reply-To: <56FB05CF.1070808@mind.be>

Dear Arnout,

On 30/03/2016 00:46, Arnout Vandecappelle wrote:
> On 03/29/16 23:56, Luca Ceresoli wrote:
>> Dear Arnout,
>>
>> On 29/03/2016 22:32, Arnout Vandecappelle wrote:
>>> On 03/29/16 00:08, Luca Ceresoli wrote:
> [snip]
>>>> diff --git a/configs/raspberrypi2_defconfig
>>>> b/configs/raspberrypi2_defconfig
>>>> index ce41ee31adba..0ffc6cdaf158 100644
>>>> --- a/configs/raspberrypi2_defconfig
>>>> +++ b/configs/raspberrypi2_defconfig
>>>> @@ -5,7 +5,7 @@ BR2_ARM_FPU_NEON_VFPV4=y
>>>>
>>>>    BR2_TOOLCHAIN_BUILDROOT_CXX=y
>>>>
>>>> -BR2_TARGET_GENERIC_GETTY_PORT="tty1"
>>>> +BR2_TARGET_GENERIC_GETTY_PORT="ttyAMA0"
>>>
>>>   Why not keep the default "console"? That should work, no? Or doesn't
>>> that work if there are two consoles?
>>
>> What improvement you expect from using "console" instead of "ttyAMA0"?
>>
>> OTOH I think ttyAMA0 or tty1 is explicit about the device to use. And as
>> Yann pointed out on IRC, "console is not a controlling tty, so no Ctrl-C
>> for example".
> 
>  For the record, as concluded on IRC:
> 
> - "console" is still a controlling tty, it is init=/bin/sh that doesn't
> give a controlling tty;
> 
> - GETTY_PORT="console" will launch a getty on the last console= given on
> the kernel command line
> 
> - What I actually meant is that BR2_TARGET_GENERIC_GETTY_PORT can be
> removed completely from the defconfig (as is the case already in roughly
> half our defconfigs) because it anyway defaults to "console".

Thanks for the recap. Will do in v2.

-- 
Luca

      reply	other threads:[~2016-03-30 12:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-28 22:08 [Buildroot] [PATCH] raspberrypi, raspberrypi2: add a serial console Luca Ceresoli
2016-03-29 11:30 ` Alexander Dahl
2016-03-29 14:12   ` Luca Ceresoli
2016-03-29 21:04     ` Alexander Dahl
2016-03-29 22:33       ` Arnout Vandecappelle
2016-03-29 20:32 ` Arnout Vandecappelle
2016-03-29 21:56   ` Luca Ceresoli
2016-03-29 22:46     ` Arnout Vandecappelle
2016-03-30 12:04       ` Luca Ceresoli [this message]

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=56FBC0CB.4030607@lucaceresoli.net \
    --to=luca@lucaceresoli.net \
    --cc=buildroot@busybox.net \
    /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