Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yegor Yefremov <yegor_sub1@visionsystems.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] add support for virtual terminal
Date: Mon, 07 Nov 2011 12:48:09 +0100	[thread overview]
Message-ID: <4EB7C579.4090801@visionsystems.de> (raw)
In-Reply-To: <20111107103213.GD26606@sapphire.tkos.co.il>

Hi Baruch,

> On Mon, Nov 07, 2011 at 11:21:29AM +0100, Yegor Yefremov wrote:
>> introduces new option "Enable virtual console on tty1"
>> to enable virtual terminal on tty1
>>
>> Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
>> ---
> [snip]
>
>> +# Put a getty on a virtual terminal
>> +#tty1::respawn:/sbin/getty tty1 38400
> You should probably add '# GENERIC_VT' in this line. See below.
>
>> +
>>  # Put a getty on the serial port
>>  #ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100 # GENERIC_SERIAL
> [snip]
>
>> Index: b/target/generic/Makefile.in
>> ===================================================================
>> --- a/target/generic/Makefile.in
>> +++ b/target/generic/Makefile.in
>> @@ -23,6 +23,14 @@
>>  	$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(shell echo $(TARGET_GENERIC_GETTY) | tail -c+4)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY) $(TARGET_GENERIC_GETTY_BAUDRATE) vt100 #~' \
>>  		$(TARGET_DIR)/etc/inittab
>>  
>> +# Put a getty on virtual terminal
>> +target-generic-do-getty-tty1:
>> +	$(SED) 's/#tty1/tty1/' $(TARGET_DIR)/etc/inittab
>> +
>> +# Don't put a getty on virtual terminal
>> +target-generic-dont-getty-tty1:
>> +	$(SED) 's/tty1/#tty1/' $(TARGET_DIR)/etc/inittab
> This might cause unintended changes in /etc/inittab, since the 'tty1' string 
> appears in more places. Add '# GENERIC_VT' as above, and only change matching 
> lines. See how GENERIC_SERIAL is being used

Thanks. Changes implemented.

Yegor

      reply	other threads:[~2011-11-07 11:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 10:21 [Buildroot] [PATCH] add support for virtual terminal Yegor Yefremov
2011-11-07 10:32 ` Baruch Siach
2011-11-07 11:48   ` Yegor Yefremov [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=4EB7C579.4090801@visionsystems.de \
    --to=yegor_sub1@visionsystems.de \
    --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