[PATCH 1/3] arm: qemu: Enable Bochs video support

Simon Glass sjg at chromium.org
Wed Aug 9 04:03:33 CEST 2023


Hi Alper,

On Tue, 8 Aug 2023 at 13:19, Alper Nebi Yasak <alpernebiyasak at gmail.com> wrote:
>
> 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 at gmail.com>
> ---
>
>  arch/arm/Kconfig                      | 4 ++++
>  board/emulation/qemu-arm/qemu-arm.env | 3 +++
>  doc/board/emulation/qemu-arm.rst      | 4 ++++
>  3 files changed, 11 insertions(+)
>
> diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
> index 97c25b4f146d..0d4654fb9dfc 100644
> --- a/arch/arm/Kconfig
> +++ b/arch/arm/Kconfig
> @@ -1036,6 +1036,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"
> diff --git a/board/emulation/qemu-arm/qemu-arm.env b/board/emulation/qemu-arm/qemu-arm.env
> index e658d5ee7d63..86a99a2e8713 100644
> --- a/board/emulation/qemu-arm/qemu-arm.env
> +++ b/board/emulation/qemu-arm/qemu-arm.env
> @@ -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
> diff --git a/doc/board/emulation/qemu-arm.rst b/doc/board/emulation/qemu-arm.rst
> index b42d924cc66a..1108fe5f8184 100644
> --- a/doc/board/emulation/qemu-arm.rst
> +++ b/doc/board/emulation/qemu-arm.rst
> @@ -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 \
> --

Could you also add info about running a distro? (from your cover letter)

Regards,
Simon


More information about the U-Boot mailing list