aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorGravatar Alexey Brodkin <Alexey.Brodkin@synopsys.com>2014-12-23 15:06:13 +0300
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-10 17:01:35 +0100
commit131300e6f1d0745a1455d246684550e6ecb68549 (patch)
tree85ea76269ef4944b6cc1274cdbb9e03a29939ebd /system
parent67813024444c03f300a8df2148cb5b902c44d223 (diff)
downloadbuildroot-131300e6f1d0745a1455d246684550e6ecb68549.tar.gz
buildroot-131300e6f1d0745a1455d246684550e6ecb68549.tar.bz2
system: run getty on boot console by default
We used to specify explicitly serial port with all its settings for init to instantiate getty. This limits usecases when the same one rootfs could be used. For example following cases won't work well with hardcoded serial console settings: * On the same board other serial port is expected to be used * The same rootfs is intended to be used on different boards with different serial ports (like ttySx vs ttyAMAx or even ttyx) With this change by default we rely on "console" specified in kernel's boot command line. What is important getty will be set on the last console specified in bootargs. For example is a kernel comand line: --->--- bootargs="... console=tty0 console=ttyS3,115200n8..." --->--- This now will instantiate serial console on ttyS3 but not on tty0. Tested with both Busybox and SysV init. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'system')
-rw-r--r--system/Config.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/Config.in b/system/Config.in
index a3b7aff36a..4d7a4e3cc3 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.