kumquat-buildroot/board/qemu
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-virt board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
arm-versatile board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
arm-vexpress board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
arm-vexpress-tz board/qemu/arm-vexpress-tz: fixup GDB config info 2019-10-29 22:24:32 +01:00
csky configs/csky_gx6605s: bump kernel to 5.0 and use buildroot toolchain 2019-08-02 23:42:51 +02:00
m68k-mcf5208
m68k-q800 board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
microblazebe-mmu
microblazeel-mmu
mips32r2-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
mips32r2el-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
mips32r6-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
mips32r6el-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
mips64-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
mips64el-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
mips64r6-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
mips64r6el-malta board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
nios2-10m50
or1k
ppc64-e5500 board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
ppc64-pseries board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
ppc64le-pseries board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
ppc-g3beige board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
ppc-mac99 board: Add PowerPC mac99 2019-08-01 17:54:47 +02:00
ppc-mpc8544ds
ppc-virtex-ml507
riscv32-virt board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
riscv64-virt board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
sh4-r2d board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
sh4eb-r2d board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
sparc64-sun4u board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
sparc-ss10 board/qemu: ensure root is available before mounting it 2019-06-25 22:55:58 +02:00
x86 configs/qemu{x86, x86_64}: add a serial console 2020-02-16 22:24:56 +01:00
x86_64 configs/qemu{x86, x86_64}: add a serial console 2020-02-16 22:24:56 +01:00
xtensa-lx60 configs/qemu: Update defconfigs to Linux 4.19.16 2019-02-13 08:41:29 +01:00