kumquat-buildroot/board
Romain Naour 278f908d55 configs/qemu{x86, x86_64}: add a serial console
The current Buildroot defconfigs for qemu_x86 and qemu_x86_64
instantiate a console on tty1, which appears on QEMU's
graphical window. Add a console on the serial port (ttyS0) to
be used later for gitlab testing.

This change is need since the script used for gitlab testing
needs to use a serial output with pexpect.

This change is similar to the one made for raspberrypi [1] to
handle HDMI and serial console:

This requires three changes:
 1. have two 'console=' entries in the kernel command line: tty1,
    then ttyS0;
 2. change BR2_TARGET_GENERIC_GETTY_PORT to "console", so it starts
    a getty on the last console= passed to the kernel, ttyS0;
 3. add a new getty on tty1 to the generated inittab.

Step 2 is actually obtained by removing BR2_TARGET_GENERIC_GETTY_PORT
entirely from the defconfigs, since "console" is the default value.

Step 3 requires a post-build script since the Buildroot makefiles can
configure only one console.

Note: instead of simply adding a new getty on ttyS0 (which would
work) this patch actually changes BR2_TARGET_GENERIC_GETTY_PORT to
instantiate a console on UART, then adds back tty1 via
post-build.sh. This is done only to avoid the "GENERIC_SERIAL" comment
where we instantiate a console on QEMU graphical window, then
instantiate a really-serial console on another line.

The result is these two inittab lines:

  console::respawn:/sbin/getty -L  console 0 vt100 # GENERIC_SERIAL
  tty1::respawn:/sbin/getty -L  tty1 0 vt100 # QEMU graphical window

[1] 20878a1017

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2020-02-16 22:24:56 +01:00
..
aarch64-efi
acmesystems
altera/socrates_cyclone5
amarula
andes
arcturus
arm
armadeus
asus/tinker
atmel
avnet/s6lx9_microboard
bananapi
beagleboardx15
beaglebone configs/beaglebone_qt5: don't use custom post-image script 2019-12-30 14:46:42 +01:00
beagleboneai
beelink/gs1
boundarydevices/common
chromebook/snow
ci20 board/ci20/genimage.cfg: drop hardcoded rootfs partition size 2020-01-22 20:50:02 +01:00
csky
cubietech/cubieboard2
embest/riotboard
engicam board/icorem6: fix the Qt5 display name 2019-12-26 20:38:43 +01:00
freescale board/freescale/common/imx: add support for i.MX8 2020-02-05 12:25:29 +01:00
friendlyarm configs/friendlyarm_nanopi_neo_plus2: use an extlinux instead of boot.cmd 2019-12-10 09:02:25 +01:00
grinn
hardkernel
intel/galileo
lego/ev3
lemaker/bananapro board/lemaker/bananapro: fix wlan module 2020-02-04 19:27:48 +01:00
librecomputer/lafrite
licheepi
linksprite/pcduino
minnowboard
nexbox/a95x
olimex
openblocks/a6
orangepi
pandaboard
pc board/pc/post-build.sh: fix typo in grub boot.img path 2019-12-16 11:01:49 +01:00
pine64
qemu configs/qemu{x86, x86_64}: add a serial console 2020-02-16 22:24:56 +01:00
raspberrypi configs/raspberrypi4_64: new defconfig 2019-12-08 21:49:08 +01:00
roseapplepi
sheevaplug
sifive/hifive-unleashed
sinovoip/m2-plus
solidrun
stmicroelectronics configs/stm32mp157c_dk2: remove unnecessary workaround 2020-01-01 17:19:24 +01:00
synopsys
technexion
technologic
toradex/apalis-imx6
udoo
wandboard
warp7
zynq
zynqmp
raspberrypi0
raspberrypi0w
raspberrypi2
raspberrypi3
raspberrypi3-64
raspberrypi4
raspberrypi4-64 configs/raspberrypi4_64: new defconfig 2019-12-08 21:49:08 +01:00