* [PATCH v6 0/7] Resolve issues with booting distros on x86
@ 2024-01-04 15:10 Simon Glass
2024-01-04 15:10 ` [PATCH v6 6/7] x86: qemu: Expand ROM size Simon Glass
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Simon Glass @ 2024-01-04 15:10 UTC (permalink / raw)
To: U-Boot Mailing List
Cc: Simon Glass, Anatolij Gustschin, Bin Meng, Bin Meng,
Devarsh Thakkar, Dzmitry Sankouski, Fabio Estevam,
Heinrich Schuchardt, Ilias Apalodimas, Nikhil M Jain,
Peter Robinson, Svyatoslav Ryhel, Venkatesh Yadav Abbarapu,
qemu-devel
This little series reprises the EFI-video fix, fixes a USB problem and
enables a boot script for coreboot.
It also moves to truetype fonts for coreboot and qemu-x86, since the
menus look much better and there are no strong size constraints.
With these changes it is possible to boot a Linux distro automatically
with U-Boot on x86, including when U-Boot is the second-stage
bootloader.
Changes in v6:
- Rebase to -next
- Move 'Avoid unbinding devices in use by bootflows' to another series
Changes in v4:
- Use a Kconfig option
Changes in v3:
- Clear the screen before booting
- Add new patch to drop unnecessary truetype operations from SPL
- Add new patch to enable truetype fonts in coreboot
- Add new patch to enable truetype fonts in qemu-x86 and qemu-x86_64
Changes in v2:
- Add new patch to add a coreboot boot script
Simon Glass (7):
x86: coreboot: Add a boot script
video: Correct setting of cursor position
video: Drop unnecessary truetype operations from SPL
x86: Enable SSE in 64-bit mode
x86: coreboot: Enable truetype fonts
x86: qemu: Expand ROM size
x86: qemu: Enable truetype fonts
arch/x86/Kconfig | 8 ++++++++
arch/x86/config.mk | 4 ++++
arch/x86/cpu/x86_64/cpu.c | 12 ++++++++++++
arch/x86/dts/coreboot.dts | 10 ++++++++++
board/emulation/qemu-x86/Kconfig | 3 ++-
configs/coreboot64_defconfig | 2 ++
configs/coreboot_defconfig | 2 ++
configs/qemu-x86_64_defconfig | 5 +++--
configs/qemu-x86_defconfig | 1 +
drivers/video/Kconfig | 1 +
drivers/video/console_truetype.c | 10 ++++++++++
drivers/video/vidconsole-uclass.c | 15 ++++++++-------
12 files changed, 63 insertions(+), 10 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v6 6/7] x86: qemu: Expand ROM size
2024-01-04 15:10 [PATCH v6 0/7] Resolve issues with booting distros on x86 Simon Glass
@ 2024-01-04 15:10 ` Simon Glass
2024-01-04 15:10 ` [PATCH v6 7/7] x86: qemu: Enable truetype fonts Simon Glass
2024-04-11 14:19 ` [PATCH v6 0/7] Resolve issues with booting distros on x86 Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2024-01-04 15:10 UTC (permalink / raw)
To: U-Boot Mailing List
Cc: Simon Glass, Bin Meng, Heinrich Schuchardt, Ilias Apalodimas,
Peter Robinson, qemu-devel
Expand the ROM for x86_64 to 2MB to make space for the font, as it is
already on the edge.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
(no changes since v1)
board/emulation/qemu-x86/Kconfig | 3 ++-
configs/qemu-x86_64_defconfig | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/board/emulation/qemu-x86/Kconfig b/board/emulation/qemu-x86/Kconfig
index 01dc1d497ae..34d665a3e4c 100644
--- a/board/emulation/qemu-x86/Kconfig
+++ b/board/emulation/qemu-x86/Kconfig
@@ -21,7 +21,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
select X86_RESET_VECTOR
select QEMU
select QFW_PIO if CMD_QFW
- select BOARD_ROMSIZE_KB_1024
+ select BOARD_ROMSIZE_KB_1024 if TARGET_QEMU_X86
+ select BOARD_ROMSIZE_KB_2048 if TARGET_QEMU_X86_64
imply VIRTIO_PCI
imply VIRTIO_NET
imply VIRTIO_BLK
diff --git a/configs/qemu-x86_64_defconfig b/configs/qemu-x86_64_defconfig
index 8b4c5aff7f6..79cdb0bddb2 100644
--- a/configs/qemu-x86_64_defconfig
+++ b/configs/qemu-x86_64_defconfig
@@ -6,7 +6,7 @@ CONFIG_ENV_SIZE=0x40000
CONFIG_MAX_CPUS=2
CONFIG_SPL_DM_SPI=y
CONFIG_DEFAULT_DEVICE_TREE="qemu-x86_i440fx"
-CONFIG_SPL_TEXT_BASE=0xfffd8000
+CONFIG_SPL_TEXT_BASE=0xfffd4000
CONFIG_SPL_SYS_MALLOC_F_LEN=0x2000
CONFIG_DEBUG_UART_BASE=0x3f8
CONFIG_DEBUG_UART_CLOCK=1843200
@@ -17,7 +17,7 @@ CONFIG_DEBUG_UART=y
CONFIG_SMP=y
CONFIG_GENERATE_PIRQ_TABLE=y
CONFIG_GENERATE_MP_TABLE=y
-CONFIG_X86_OFFSET_U_BOOT=0xfff00000
+CONFIG_X86_OFFSET_U_BOOT=0xffe00000
CONFIG_SYS_MONITOR_BASE=0x01110000
CONFIG_FIT=y
CONFIG_SPL_LOAD_FIT=y
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH v6 7/7] x86: qemu: Enable truetype fonts
2024-01-04 15:10 [PATCH v6 0/7] Resolve issues with booting distros on x86 Simon Glass
2024-01-04 15:10 ` [PATCH v6 6/7] x86: qemu: Expand ROM size Simon Glass
@ 2024-01-04 15:10 ` Simon Glass
2024-04-11 14:19 ` [PATCH v6 0/7] Resolve issues with booting distros on x86 Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Simon Glass @ 2024-01-04 15:10 UTC (permalink / raw)
To: U-Boot Mailing List
Cc: Simon Glass, Bin Meng, Heinrich Schuchardt, Ilias Apalodimas,
Peter Robinson, qemu-devel
Enable this feature to provide a larger font choice and more attractive
menus. Expand the ROM for x86_64 to 2MB to make space for the font.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
Changes in v6:
- Move 'Avoid unbinding devices in use by bootflows' to another series
Changes in v3:
- Add new patch to enable truetype fonts in qemu-x86 and qemu-x86_64
configs/qemu-x86_64_defconfig | 1 +
configs/qemu-x86_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/configs/qemu-x86_64_defconfig b/configs/qemu-x86_64_defconfig
index 79cdb0bddb2..f084f8e2989 100644
--- a/configs/qemu-x86_64_defconfig
+++ b/configs/qemu-x86_64_defconfig
@@ -81,6 +81,7 @@ CONFIG_SPL_DM_RTC=y
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
diff --git a/configs/qemu-x86_defconfig b/configs/qemu-x86_defconfig
index 9bcf06c137f..b0d397bae08 100644
--- a/configs/qemu-x86_defconfig
+++ b/configs/qemu-x86_defconfig
@@ -58,6 +58,7 @@ CONFIG_NVME_PCI=y
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
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v6 0/7] Resolve issues with booting distros on x86
2024-01-04 15:10 [PATCH v6 0/7] Resolve issues with booting distros on x86 Simon Glass
2024-01-04 15:10 ` [PATCH v6 6/7] x86: qemu: Expand ROM size Simon Glass
2024-01-04 15:10 ` [PATCH v6 7/7] x86: qemu: Enable truetype fonts Simon Glass
@ 2024-04-11 14:19 ` Tom Rini
2 siblings, 0 replies; 4+ messages in thread
From: Tom Rini @ 2024-04-11 14:19 UTC (permalink / raw)
To: U-Boot Mailing List, Simon Glass
Cc: Anatolij Gustschin, Bin Meng, Bin Meng, Devarsh Thakkar,
Dzmitry Sankouski, Fabio Estevam, Heinrich Schuchardt,
Ilias Apalodimas, Nikhil M Jain, Peter Robinson, Svyatoslav Ryhel,
Venkatesh Yadav Abbarapu, qemu-devel
On Thu, 04 Jan 2024 08:10:35 -0700, Simon Glass wrote:
> This little series reprises the EFI-video fix, fixes a USB problem and
> enables a boot script for coreboot.
>
> It also moves to truetype fonts for coreboot and qemu-x86, since the
> menus look much better and there are no strong size constraints.
>
> With these changes it is possible to boot a Linux distro automatically
> with U-Boot on x86, including when U-Boot is the second-stage
> bootloader.
>
> [...]
Applied to u-boot/master, thanks!
--
Tom
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-04-11 14:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-04 15:10 [PATCH v6 0/7] Resolve issues with booting distros on x86 Simon Glass
2024-01-04 15:10 ` [PATCH v6 6/7] x86: qemu: Expand ROM size Simon Glass
2024-01-04 15:10 ` [PATCH v6 7/7] x86: qemu: Enable truetype fonts Simon Glass
2024-04-11 14:19 ` [PATCH v6 0/7] Resolve issues with booting distros on x86 Tom Rini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).