
On Sun, Jul 23, 2023 at 12:40 PM Bin Meng bmeng@tinylab.org wrote:
The Bochs VGA card emulated by QEMU does not enforce any architecture. It was first introduced on x86 and indeed the x86 IO instruction is used to access the legacy VGA IO ports, but that does not mean it has to be done like this.
The first half of this series enhances the bochs video driver to remove the x86 limitation.
The second half of this series enables bochs video as the output console for QEMU RISC-V, to prove that the bochs video driver can indeed work on a non-x86 architecture. To make it actually useful, enable a usb keyboard as well, otherwise we can't just type anything :-)
This series is available at u-boot-x86/bochs for testing.
Bin Meng (17): dm: video: Cosmetic style fix video: bochs: Drop inclusion of <asm/mtrr.h> video: bochs: Drop the useless argument of bochs_vga_write() video: bochs: Avoid using IO instructions to access VGA IO port video: bochs: Remove the x86 dependency video: kconfig: Fix wrong text for the PCI default FB size video: kconfig: Drop the superfluous dependency video: kconfig: Set default FB size for Bochs video: bochs: Set the frame buffer size per configuration riscv: qemu: Enable Bochs video support console: kconfig: Drop the redundant VIDEO dependency console: Make stdio_print_current_devices() static console: Refactor stdio_print_current_devices() a little bit console: Print out complete stdio device list riscv: qemu: Enable PRE_CONSOLE_BUFFER riscv: qemu: Remove out-of-date "riscv,kernel-start" handling riscv: qemu: Enable usb keyboard as an input device
Looks the first half is assigned to Anatolij and the second half to Rick.
I guess the first half should go first.
Ping for apply?
Regards, Bin