Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] system: run getty on boot console by default
Date: Mon, 12 Jan 2015 23:07:54 +0100	[thread overview]
Message-ID: <20150112230754.65993daf@free-electrons.com> (raw)
In-Reply-To: <1419336373-30919-1-git-send-email-abrodkin@synopsys.com>

Dear Alexey Brodkin,

On Tue, 23 Dec 2014 15:06:13 +0300, Alexey Brodkin wrote:

> diff --git a/system/Config.in b/system/Config.in
> index 0fa0dc6..6447be8 100644
> --- a/system/Config.in
> +++ b/system/Config.in
> @@ -263,13 +263,13 @@ if BR2_TARGET_GENERIC_GETTY
>  menu "getty options"
>  config BR2_TARGET_GENERIC_GETTY_PORT
>  	string "TTY port"
> -	default "ttyS0"
> +	default "console"
>  	help
>  	  Specify a port to run a getty on.
>  
>  choice
>  	prompt "Baudrate"
> -	default BR2_TARGET_GENERIC_GETTY_BAUDRATE_115200
> +	default BR2_TARGET_GENERIC_GETTY_BAUDRATE_KEEP
>  	help
>  	  Select a baudrate to use.

I've just tested with agetty from util-linux, and while "console" as
the default getty works fine, having 0 as the baudrate doesn't work.
You have to specify a correct serial port speed apparently.

You can try with the following config:

BR2_arm=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_INIT_SYSV=y
# BR2_PACKAGE_BUSYBOX is not set
BR2_PACKAGE_GETTEXT=y
BR2_PACKAGE_IFUPDOWN=y
BR2_PACKAGE_AT=y
BR2_PACKAGE_COREUTILS=y
BR2_PACKAGE_START_STOP_DAEMON=y
BR2_PACKAGE_UTIL_LINUX=y
BR2_PACKAGE_UTIL_LINUX_BINARIES=y
BR2_PACKAGE_UTIL_LINUX_AGETTY=y
BR2_PACKAGE_UTIL_LINUX_LOGIN_UTILS=y
BR2_PACKAGE_UTIL_LINUX_MOUNT=y

which you can boot using an ARM Vexpress kernel under Qemu.

Though, this does not say I'm not fine with the current situation. I
believe the current situation (with your patch) works fine in the
normal cases. People using agetty probably know what they are doing.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

      parent reply	other threads:[~2015-01-12 22:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-23 12:06 [Buildroot] [PATCH] system: run getty on boot console by default Alexey Brodkin
2014-12-23 12:18 ` Yegor Yefremov
2014-12-23 12:32   ` Alexey Brodkin
2014-12-23 13:57     ` Yegor Yefremov
2014-12-23 14:35       ` Alexey Brodkin
2014-12-23 19:52         ` Thomas Petazzoni
2014-12-23 21:18           ` Alexey Brodkin
2014-12-23 22:10             ` Thomas Petazzoni
2014-12-24  9:03               ` Alexey Brodkin
2015-01-09 18:15                 ` Alexey Brodkin
2015-01-10 16:10 ` Thomas Petazzoni
2015-01-12 22:07 ` Thomas Petazzoni [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=20150112230754.65993daf@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --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