From 068a57763c427de8dc0ba5e594aee13853445f1d Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 27 May 2021 00:29:06 +0200 Subject: [PATCH] Enable serial console as well (#1339) (#1378) Using console focused virtualization environments such as virsh having a serial console is the easiest way to interact with a virtual machine. It also saves resources since no video memory needs to be allocated. Enable serial console besides tty1 by default. Note: The bootloader as well as the kernel shows its boot messages on all consoles. However, only the last console is mapped to /dev/console, which systemd is using to show service startup messages. Putting tty1 as last console makes sure that systemd messages are still shown on the console screen. --- buildroot-external/board/pc/ova/hassos-hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildroot-external/board/pc/ova/hassos-hook.sh b/buildroot-external/board/pc/ova/hassos-hook.sh index 62d844477..090d1b827 100755 --- a/buildroot-external/board/pc/ova/hassos-hook.sh +++ b/buildroot-external/board/pc/ova/hassos-hook.sh @@ -10,7 +10,7 @@ function hassos_pre_image() { cp "${BINARIES_DIR}/barebox.bin" "${BOOT_DATA}/EFI/BOOT/BOOTx64.EFI" cp "${BR2_EXTERNAL_HASSOS_PATH}/bootloader/barebox-state-efi.dtb" "${BOOT_DATA}/EFI/barebox/state.dtb" - echo "console=tty1" > "${BOOT_DATA}/cmdline.txt" + echo "console=ttyS0 console=tty1" > "${BOOT_DATA}/cmdline.txt" }