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
..
2019-09-07 21:57:08 +02:00
2019-08-18 21:56:28 +02:00
2019-08-18 21:56:28 +02:00
2019-08-18 21:56:28 +02:00
2019-08-18 21:56:28 +02:00
2018-11-01 14:21:32 +01:00
2019-06-20 13:27:17 +02:00
2019-04-17 09:20:55 +02:00
2019-09-10 00:15:19 +02:00
2019-06-23 17:26:55 +02:00
2018-08-21 23:18:16 +02:00
2018-11-23 10:43:02 +01:00
2019-05-03 17:26:07 +02:00
2019-08-01 00:37:18 +02:00
2019-04-15 21:38:29 +02:00
2018-04-07 09:05:26 +02:00
2018-04-06 21:32:43 +02:00
2018-04-06 21:32:43 +02:00
2019-08-01 20:24:09 +02:00
2019-08-12 22:41:38 +02:00
2019-08-01 20:24:09 +02:00
2019-08-12 22:41:38 +02:00
2018-04-06 21:32:43 +02:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2019-12-23 23:41:54 +01:00
2018-10-14 10:08:13 +02:00
2019-04-21 12:20:54 +02:00
2018-12-08 20:51:42 +01:00
2019-08-10 14:55:50 +02:00
2020-02-04 19:28:51 +01:00
2019-10-27 12:20:43 +01:00
2019-12-16 22:11:08 +01:00
2019-12-30 14:46:42 +01:00
2019-09-25 22:59:32 +02:00
2019-11-24 09:47:24 +01:00
2018-03-05 23:19:33 +01:00
2018-12-15 11:15:34 +01:00
2019-08-02 23:42:51 +02:00
2018-11-23 10:42:59 +01:00
2019-04-01 22:36:57 +02:00
2019-10-27 12:18:27 +01:00
2019-04-01 22:36:30 +02:00
2017-06-24 14:50:56 +02:00
2019-04-01 22:35:45 +02:00
2018-03-06 15:30:36 +01:00
2018-03-06 15:30:15 +01:00
2018-03-06 15:29:21 +01:00
2018-03-06 15:31:24 +01:00
2018-03-06 15:31:26 +01:00
2018-12-21 14:58:35 +01:00
2019-08-01 00:44:01 +02:00
2019-12-08 22:18:54 +01:00
2019-12-26 18:15:28 +01:00
2019-11-01 15:27:28 +01:00
2018-04-12 23:30:31 +02:00
2018-04-22 23:35:22 +02:00
2019-04-17 22:46:39 +02:00
2019-05-13 20:11:57 +02:00
2019-05-13 20:10:05 +02:00
2019-12-10 09:02:25 +01:00
2018-04-02 11:35:48 +02:00
2019-05-14 17:41:12 +02:00
2019-05-14 17:41:12 +02:00
2019-08-03 10:31:55 +02:00
2019-10-26 20:46:27 +02:00
2020-01-13 21:19:04 +01:00
2020-01-13 21:19:04 +01:00
2018-12-21 14:58:28 +01:00
2018-01-22 22:35:54 +01:00
2020-01-07 21:01:36 +01:00
2018-08-12 16:18:51 +02:00
2020-01-13 21:19:38 +01:00
2019-10-08 22:49:47 +02:00
2019-12-16 22:54:58 +01:00
2019-12-16 22:55:04 +01:00
2019-02-23 09:53:50 +01:00
2019-09-15 16:00:56 +02:00
2019-03-26 22:25:22 +01:00
2019-12-16 11:02:05 +01:00
2019-12-08 08:53:04 +01:00
2019-10-27 12:21:22 +01:00
2019-10-27 12:21:18 +01:00
2020-01-07 21:02:35 +01:00
2017-09-27 22:04:42 +02:00
2018-01-18 22:12:01 +01:00
2018-04-22 23:35:22 +02:00
2019-06-20 13:29:05 +02:00
2019-08-30 19:26:12 +02:00
2019-04-10 13:39:51 +02:00
2019-04-10 13:39:56 +02:00
2019-12-03 08:14:24 +01:00
2018-12-09 17:28:51 +01:00
2019-12-31 16:28:26 +01:00
2019-12-31 16:28:26 +01:00
2019-12-31 16:28:26 +01:00
2019-12-31 16:28:26 +01:00
2018-10-21 11:00:04 +02:00
2018-07-10 22:59:22 +02:00
2017-06-21 23:06:11 +02:00
2020-01-07 21:06:23 +01:00
2020-01-07 21:06:23 +01:00
2017-07-12 17:05:53 +02:00
2019-08-10 14:50:40 +02:00
2019-05-12 12:00:43 +02:00
2020-01-07 21:03:04 +01:00
2018-01-15 21:00:11 +01:00
2019-02-22 22:30:29 +01:00
2019-11-09 15:40:58 +01:00
2019-11-09 15:39:48 +01:00
2019-02-22 22:30:29 +01:00
2019-05-12 11:59:57 +02:00
2020-01-20 22:47:59 +01:00
2019-11-09 15:40:49 +01:00
2019-04-21 22:00:58 +02:00
2019-05-12 11:59:10 +02:00
2019-11-24 22:51:05 +01:00
2017-12-20 18:54:49 +01:00
2019-11-09 15:40:16 +01:00
2019-11-09 15:40:27 +01:00
2019-10-27 12:21:29 +01:00
2018-12-31 18:45:53 +01:00
2019-11-12 23:01:38 +01:00
2019-05-12 11:56:26 +02:00
2019-05-12 11:57:25 +02:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-08-02 23:42:51 +02:00
2019-08-02 23:42:51 +02:00
2019-08-02 23:42:51 +02:00
2019-08-02 23:42:51 +02:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2020-02-16 22:23:09 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-08-02 23:50:39 +02:00
2019-08-02 23:50:39 +02:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2020-02-16 22:24:56 +01:00
2020-02-16 22:24:56 +01:00
2019-12-31 18:16:37 +01:00
2019-12-31 18:16:37 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2020-01-27 17:48:08 +01:00
2018-11-23 10:43:35 +01:00
2019-02-22 22:25:57 +01:00
2019-10-27 12:22:14 +01:00
2018-03-31 22:59:47 +02:00
2018-08-17 16:51:07 +02:00
2016-11-18 22:30:09 +01:00
2019-03-27 20:11:53 +01:00
2019-03-27 20:11:53 +01:00
2019-03-27 20:11:53 +01:00
2019-10-24 10:44:26 +02:00
2019-03-27 20:11:53 +01:00
2018-06-01 17:52:32 +02:00
2019-08-12 22:37:23 +02:00
2019-09-21 18:31:26 +02:00
2019-09-21 18:31:26 +02:00
2019-09-21 18:31:26 +02:00
2018-06-01 16:40:11 +02:00
2018-06-01 16:41:01 +02:00
2020-02-04 19:25:29 +01:00
2019-08-11 14:22:19 +02:00
2018-03-06 15:31:28 +01:00
2018-03-11 09:48:07 +01:00
2019-08-19 15:46:18 +02:00
2019-12-09 22:24:27 +01:00
2020-01-10 22:41:29 +01:00
2016-12-31 09:18:25 +01:00
2018-09-06 21:30:54 +02:00
2018-09-06 21:30:50 +02:00
2018-09-06 21:30:47 +02:00
2018-07-28 19:18:31 +02:00