mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 12:25:27 +00:00
riscv: qemu: Enable Bochs video support
Enable video console using the emulated Bochs VGA card. Signed-off-by: Bin Meng <bmeng@tinylab.org> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
093bd0354e
commit
716161663e
3 changed files with 13 additions and 0 deletions
|
@ -68,5 +68,8 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||||
imply MTD_NOR_FLASH
|
imply MTD_NOR_FLASH
|
||||||
imply CFI_FLASH
|
imply CFI_FLASH
|
||||||
imply OF_HAS_PRIOR_STAGE
|
imply OF_HAS_PRIOR_STAGE
|
||||||
|
imply VIDEO
|
||||||
|
imply VIDEO_BOCHS
|
||||||
|
imply SYS_WHITE_ON_BLACK
|
||||||
|
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -133,6 +133,11 @@ An attached disk can be emulated in RISC-V virt machine by adding::
|
||||||
|
|
||||||
You will have to run 'scsi scan' to use it.
|
You will have to run 'scsi scan' to use it.
|
||||||
|
|
||||||
|
A video console can be emulated in RISC-V virt machine by removing "-nographic"
|
||||||
|
and adding::
|
||||||
|
|
||||||
|
-serial stdio -device VGA
|
||||||
|
|
||||||
Running with KVM
|
Running with KVM
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
|
|
||||||
/* Environment options */
|
/* Environment options */
|
||||||
|
|
||||||
|
#define CFG_STD_DEVICES_SETTINGS "stdin=serial\0" \
|
||||||
|
"stdout=serial,vidconsole\0" \
|
||||||
|
"stderr=serial,vidconsole\0"
|
||||||
|
|
||||||
#define BOOT_TARGET_DEVICES(func) \
|
#define BOOT_TARGET_DEVICES(func) \
|
||||||
func(QEMU, qemu, na) \
|
func(QEMU, qemu, na) \
|
||||||
func(VIRTIO, virtio, 0) \
|
func(VIRTIO, virtio, 0) \
|
||||||
|
@ -35,6 +39,7 @@
|
||||||
"qemu "
|
"qemu "
|
||||||
|
|
||||||
#define CFG_EXTRA_ENV_SETTINGS \
|
#define CFG_EXTRA_ENV_SETTINGS \
|
||||||
|
CFG_STD_DEVICES_SETTINGS \
|
||||||
"fdt_high=0xffffffffffffffff\0" \
|
"fdt_high=0xffffffffffffffff\0" \
|
||||||
"initrd_high=0xffffffffffffffff\0" \
|
"initrd_high=0xffffffffffffffff\0" \
|
||||||
"kernel_addr_r=0x84000000\0" \
|
"kernel_addr_r=0x84000000\0" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue