From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Julien Olivain <ju.o@free.fr>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH next 1/1] boot/edk2: add support for RISC-V 64bit architecture
Date: Sat, 2 Sep 2023 22:18:15 +0200 [thread overview]
Message-ID: <20230902221815.62c472d1@windsurf> (raw)
In-Reply-To: <20230902193000.1457685-1-ju.o@free.fr>
On Sat, 2 Sep 2023 21:30:00 +0200
Julien Olivain <ju.o@free.fr> wrote:
> RISC-V 64bit qemu virt machine support has been added in edk2
> version "stable202302". See [1].
>
> Since edk2-stable202308, introduced in buildroot in commit 5c9f310
> "boot/edk2: bump to version edk2-stable202308", it is now possible
> to boot the edk2 UEFI shell in qemu.
>
> This commit adds this early RISC-V support to edk2.
>
> The RISC-V edk2 UEFI shell can be booted in Buildroot with the
> following commands:
>
> # Build EDK2 images
> cat > .config <<EOF
> BR2_riscv=y
> BR2_RISCV_64=y
> BR2_PACKAGE_HOST_QEMU=y
> BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
> BR2_TARGET_EDK2=y
> EOF
> make olddefconfig
> make
>
> # edk2 image size should fit the 32MB of qemu pflash memories
> truncate -s 32M output/images/RISCV_VIRT_CODE.fd
> truncate -s 32M output/images/RISCV_VIRT_VARS.fd
>
> # Start qemu:
> output/host/usr/bin/qemu-system-riscv64 \
> -M virt,pflash0=pflash0,pflash1=pflash1,acpi=off \
> -nographic \
> -blockdev node-name=pflash0,driver=file,read-only=on,filename=output/images/RISCV_VIRT_CODE.fd \
> -blockdev node-name=pflash1,driver=file,filename=output/images/RISCV_VIRT_VARS.fd
>
> Note: a Qemu version >= 8.0.0 is needed to properly start edk2. A qemu
> version on the host system might now be suffucient. This is why the
^^^ not ^^^^^ sufficient
(Minor nits, no need to send a v2 for this)
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-09-02 20:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-02 19:30 [Buildroot] [PATCH next 1/1] boot/edk2: add support for RISC-V 64bit architecture Julien Olivain
2023-09-02 20:18 ` Thomas Petazzoni via buildroot [this message]
2023-12-22 10:56 ` [Buildroot] [PATCH v2 " Julien Olivain
2023-12-23 13:37 ` Thomas Petazzoni via buildroot
2023-12-24 16:44 ` Yann E. MORIN
2023-12-24 16:55 ` Yann E. MORIN
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=20230902221815.62c472d1@windsurf \
--to=buildroot@buildroot.org \
--cc=ju.o@free.fr \
--cc=thomas.petazzoni@bootlin.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 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.