arm: qemu: Enable Bochs video support
authorAlper Nebi Yasak <alpernebiyasak@gmail.com>
Mon, 14 Aug 2023 17:39:41 +0000 (20:39 +0300)
committerTom Rini <trini@konsulko.com>
Thu, 24 Aug 2023 20:47:05 +0000 (16:47 -0400)
Commit 716161663ec49 ("riscv: qemu: Enable Bochs video support") enables
a video console for QEMU RISC-V virtual machines using an emulated Bochs
VGA card. Similarly, enable it for ARM virtual machines as well.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Reviewed-by: Bin Meng <bmeng@tinylab.org>
arch/arm/Kconfig
board/emulation/qemu-arm/qemu-arm.env
doc/board/emulation/qemu-arm.rst

index 36ee1e9..5c505e1 100644 (file)
@@ -1037,6 +1037,10 @@ config ARCH_QEMU
        imply DM_RTC
        imply RTC_PL031
        imply OF_HAS_PRIOR_STAGE
+       imply VIDEO
+       imply VIDEO_BOCHS
+       imply SYS_WHITE_ON_BLACK
+       imply SYS_CONSOLE_IS_IN_ENV
 
 config ARCH_RMOBILE
        bool "Renesas ARM SoCs"
index e658d5e..86a99a2 100644 (file)
@@ -2,6 +2,9 @@
 
 /* environment for qemu-arm and qemu-arm64 */
 
+stdin=serial
+stdout=serial,vidconsole
+stderr=serial,vidconsole
 fdt_high=0xffffffff
 initrd_high=0xffffffff
 fdt_addr=0x40000000
index b42d924..1108fe5 100644 (file)
@@ -67,6 +67,10 @@ Additional persistent U-Boot environment support can be added as follows:
 Additional peripherals that have been tested to work in both U-Boot and Linux
 can be enabled with the following command line parameters:
 
+- To add a video console, remove "-nographic" and add e.g.::
+
+    -serial stdio -device VGA
+
 - To add a Serial ATA disk via an Intel ICH9 AHCI controller, pass e.g.::
 
     -drive if=none,file=disk.img,format=raw,id=mydisk \