All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Bin Meng <bmeng.cn@gmail.com>, Simon Glass <sjg@chromium.org>,
	Tom Rini <trini@konsulko.com>,
	qemu-devel@nongnu.org
Subject: [PATCH 03/18] RFC: x86: qemu: Switch to bochs display
Date: Tue, 12 Nov 2024 06:58:56 -0700	[thread overview]
Message-ID: <20241112135911.630586-4-sjg@chromium.org> (raw)
In-Reply-To: <20241112135911.630586-1-sjg@chromium.org>

The vesa display is widely used on hardware, but it is a bit of a pain
with QEMU. It requires executing option ROMs, which either doesn't work
with kvm, or is difficult to do in a kvm/QEMU-friendly way.

THe bochs display is probably better anyway, so switch to that. It works
fine with kvm as it doesn't need an option ROM.

Unfortunately this causes the Ubuntu 22.04 installer to stop booting,
which needs further investigation

Signed-off-by: Simon Glass <sjg@chromium.org>
Fixes: https://source.denx.de/u-boot/custodians/u-boot-dm/-/issues/31
---

 configs/qemu-x86_64_defconfig | 5 ++---
 configs/qemu-x86_defconfig    | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/configs/qemu-x86_64_defconfig b/configs/qemu-x86_64_defconfig
index 218c3535d15..1670c122002 100644
--- a/configs/qemu-x86_64_defconfig
+++ b/configs/qemu-x86_64_defconfig
@@ -81,9 +81,8 @@ CONFIG_SYS_NS16550_PORT_MAPPED=y
 CONFIG_SPI=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_CONSOLE_TRUETYPE=y
-CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
-CONFIG_FRAMEBUFFER_VESA_MODE_USER=y
-CONFIG_FRAMEBUFFER_VESA_MODE=0x144
+CONFIG_VIDEO_BOCHS=y
+# CONFIG_VIDEO_VESA is not set
 CONFIG_CONSOLE_SCROLL_LINES=5
 CONFIG_SPL_VIDEO=y
 # CONFIG_SPL_USE_TINY_PRINTF is not set
diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig
index 947d15cd727..40c2f1cd362 100644
--- a/configs/qemu-x86_defconfig
+++ b/configs/qemu-x86_defconfig
@@ -58,9 +58,8 @@ CONFIG_SYS_NS16550_PORT_MAPPED=y
 CONFIG_SPI=y
 CONFIG_USB_KEYBOARD=y
 CONFIG_CONSOLE_TRUETYPE=y
-CONFIG_FRAMEBUFFER_SET_VESA_MODE=y
-CONFIG_FRAMEBUFFER_VESA_MODE_USER=y
-CONFIG_FRAMEBUFFER_VESA_MODE=0x144
+CONFIG_VIDEO_BOCHS=y
+# CONFIG_VIDEO_VESA is not set
 CONFIG_CONSOLE_SCROLL_LINES=5
 CONFIG_GENERATE_ACPI_TABLE=y
 # CONFIG_GZIP is not set
-- 
2.34.1



  parent reply	other threads:[~2024-11-12 14:00 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-12 13:58 [PATCH 00/18] x86: Improve operation under QEMU Simon Glass
2024-11-12 13:58 ` [PATCH 01/18] scripts: Add a script for building and booting QEMU Simon Glass
2024-11-12 23:11   ` Tom Rini
2024-11-13  0:49   ` Heinrich Schuchardt
2024-11-13  0:54     ` Tom Rini
2024-11-15 14:21       ` Simon Glass
2024-11-15 15:14         ` Tom Rini
2024-12-07 23:39           ` Simon Glass
2025-01-06 14:55           ` Tom Rini
2025-01-09 12:36             ` Simon Glass
2025-01-09 14:56               ` Tom Rini
2025-01-10 13:39                 ` Simon Glass
2025-01-10 16:01                   ` Tom Rini
2025-01-10 19:50                     ` Simon Glass
2025-01-10 20:46                       ` Tom Rini
2024-11-12 13:58 ` [PATCH 02/18] x86: Expand x86_64 early memory Simon Glass
2024-11-12 13:58 ` Simon Glass [this message]
2024-11-12 13:58 ` [PATCH 04/18] x86: qemu: Enable dhrystone Simon Glass
2024-11-12 13:58 ` [PATCH 05/18] x86: qemu: Avoid accessing BSS too early Simon Glass
2024-11-12 13:58 ` [PATCH 06/18] x86: Drop mpspec from the SPL build Simon Glass
2024-11-12 13:59 ` [PATCH 07/18] x86: Add some log categories Simon Glass
2024-11-12 13:59 ` [PATCH 08/18] x86: Drop use of CONFIG_REALMODE_DEBUG Simon Glass
2024-11-12 13:59 ` [PATCH 09/18] x86: Avoid clearing the VESA display Simon Glass
2024-11-12 13:59 ` [PATCH 10/18] x86: Add 64-bit entries to the GDT Simon Glass
2024-11-12 13:59 ` [PATCH 11/18] x86: Use defines for the cache flags Simon Glass
2024-11-12 13:59 ` [PATCH 12/18] x86: spl: Drop duplicate CPU init Simon Glass
2024-11-12 13:59 ` [PATCH 13/18] x86: Drop the message about features missing in 64-bit Simon Glass
2024-11-12 13:59 ` [PATCH 14/18] x86: Include stdbool.h in interrupt header Simon Glass
2024-11-12 13:59 ` [PATCH 15/18] x86: Tidy up the GDT size in start/16.S Simon Glass
2024-11-12 13:59 ` [PATCH 16/18] x86: Disable paging before changing to long mode Simon Glass
2024-11-12 13:59 ` [PATCH 17/18] x86: Use the same GDT when jumping " Simon Glass
2024-11-12 13:59 ` [PATCH 18/18] x86: Use a simple jump into " Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241112135911.630586-4-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=bmeng.cn@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.