From: Alper Nebi Yasak <alpernebiyasak@gmail.com>
To: u-boot@lists.denx.de
Cc: Simon Glass <sjg@chromium.org>,
Michal Simek <michal.simek@amd.com>,
Tom Rini <trini@konsulko.com>, Bin Meng <bmeng@tinylab.org>,
Tuomas Tynkkynen <tuomas.tynkkynen@iki.fi>,
Bharat Gooty <bharat.gooty@broadcom.com>,
Stefan Roese <sr@denx.de>, Qu Wenruo <wqu@suse.com>,
Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>,
Bin Meng <bmeng.cn@gmail.com>,
Ilias Apalodimas <ilias.apalodimas@linaro.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Alper Nebi Yasak <alpernebiyasak@gmail.com>
Subject: [PATCH v2 0/4] arm: qemu: Enable Bochs, console buffering, USB keyboard
Date: Mon, 14 Aug 2023 20:39:40 +0300 [thread overview]
Message-ID: <20230814173944.288356-1-alpernebiyasak@gmail.com> (raw)
Now that the driver for the Bochs VGA card emulated by QEMU is no longer
limited to x86 architectures [1], this series enables it on arm and
arm64 virtual machines to provide a graphical interface. In line with
that series this also enables console buffering and USB keyboard.
Tested with the Debian 12 installer using GRUB EFI:
$ tools/buildman/buildman -o build/qemu_arm64 --boards=qemu_arm64 -w
$ cd build/qemu_arm64
$ curl -L -o debian.img \
https://cdimage.debian.org/debian-cd/current/arm64/iso-cd/debian-12.0.0-arm64-netinst.iso
$ qemu-system-aarch64 \
-machine virt -cpu cortex-a53 -m 4G -smp 4 \
-bios u-boot.bin \
-serial stdio -device VGA \
-nic user,model=virtio-net-pci \
-device virtio-rng-pci \
-device qemu-xhci,id=xhci -device usb-kbd -device usb-tablet \
-drive if=virtio,file=debian.img,format=raw,readonly=on,media=cdrom
And with one using extlinux.conf:
$ [...]
$ curl -L -o head.img.gz \
https://deb.debian.org/debian/dists/bookworm/main/installer-arm64/current/images/netboot/SD-card-images/gtk/firmware.none.img.gz
$ curl -L -o partition.img.gz \
https://deb.debian.org/debian/dists/bookworm/main/installer-arm64/current/images/netboot/SD-card-images/gtk/partition.img.gz
$ zcat head.img.gz partition.img.gz >debian.img
$ [...]
Both can get to a graphical installer just fine, in addition to U-Boot
video console showing up in a GTK window.
[1] video: bochs: Remove the x86 limitation
https://lore.kernel.org/u-boot/20230723044041.1089804-1-bmeng@tinylab.org/
Changes in v2:
- Add new patch for doc section on booting Linux distros
- Improve and simplify the qemu command line used for testing
v1: https://lore.kernel.org/u-boot/20230808191901.1268429-1-alpernebiyasak@gmail.com/
Alper Nebi Yasak (4):
arm: qemu: Enable Bochs video support
arm: qemu: Enable PRE_CONSOLE_BUFFER
arm: qemu: Enable usb keyboard as an input device
doc: qemu: arm: Add a section on booting Linux distros
arch/arm/Kconfig | 10 ++++
board/emulation/qemu-arm/Kconfig | 4 ++
board/emulation/qemu-arm/qemu-arm.c | 5 ++
board/emulation/qemu-arm/qemu-arm.env | 3 ++
configs/qemu_arm64_defconfig | 2 -
configs/qemu_arm_defconfig | 2 -
doc/board/emulation/qemu-arm.rst | 76 +++++++++++++++++++++++++++
7 files changed, 98 insertions(+), 4 deletions(-)
base-commit: 832148f675e427060be074c276956962fa9b5cb6
--
2.40.1
next reply other threads:[~2023-08-14 17:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-14 17:39 Alper Nebi Yasak [this message]
2023-08-14 17:39 ` [PATCH v2 1/4] arm: qemu: Enable Bochs video support Alper Nebi Yasak
2023-08-14 17:39 ` [PATCH v2 2/4] arm: qemu: Enable PRE_CONSOLE_BUFFER Alper Nebi Yasak
2023-08-14 17:39 ` [PATCH v2 3/4] arm: qemu: Enable usb keyboard as an input device Alper Nebi Yasak
2023-08-14 17:39 ` [PATCH v2 4/4] doc: qemu: arm: Add a section on booting Linux distros Alper Nebi Yasak
2023-08-14 22:43 ` Simon Glass
2023-08-27 15:49 ` Alper Nebi Yasak
2023-08-28 17:54 ` Simon Glass
2023-08-31 9:57 ` Alper Nebi Yasak
2023-08-31 19:01 ` Simon Glass
2023-08-30 7:33 ` Ilias Apalodimas
2023-08-31 9:25 ` Alper Nebi Yasak
2023-09-01 8:08 ` Ilias Apalodimas
2023-08-24 21:44 ` [PATCH v2 0/4] arm: qemu: Enable Bochs, console buffering, USB keyboard Tom Rini
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=20230814173944.288356-1-alpernebiyasak@gmail.com \
--to=alpernebiyasak@gmail.com \
--cc=bharat.gooty@broadcom.com \
--cc=bmeng.cn@gmail.com \
--cc=bmeng@tinylab.org \
--cc=ilias.apalodimas@linaro.org \
--cc=michal.simek@amd.com \
--cc=neil.armstrong@linaro.org \
--cc=rayagonda.kokatanur@broadcom.com \
--cc=sjg@chromium.org \
--cc=sr@denx.de \
--cc=trini@konsulko.com \
--cc=tuomas.tynkkynen@iki.fi \
--cc=u-boot@lists.denx.de \
--cc=wqu@suse.com \
/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 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).