* [Buildroot] [PATCH next 1/1] boot/edk2: add support for RISC-V 64bit architecture
@ 2023-09-02 19:30 Julien Olivain
2023-09-02 20:18 ` Thomas Petazzoni via buildroot
2023-12-22 10:56 ` [Buildroot] [PATCH v2 " Julien Olivain
0 siblings, 2 replies; 6+ messages in thread
From: Julien Olivain @ 2023-09-02 19:30 UTC (permalink / raw)
To: buildroot; +Cc: Julien Olivain
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
Buildroot host-qemu is built in this config example.
[1] https://github.com/tianocore/edk2/releases/tag/edk2-stable202302
Signed-off-by: Julien Olivain <ju.o@free.fr>
---
Commit tested on branch next at commit 3fa1ae0 with commands
described in commit log, and also:
make check-package
...
0 warnings generated
---
boot/edk2/Config.in | 10 ++++++++++
boot/edk2/edk2.mk | 6 ++++++
2 files changed, 16 insertions(+)
diff --git a/boot/edk2/Config.in b/boot/edk2/Config.in
index bed503b168..4e6e7d122c 100644
--- a/boot/edk2/Config.in
+++ b/boot/edk2/Config.in
@@ -2,6 +2,7 @@ config BR2_TARGET_EDK2_ARCH_SUPPORTS
bool
default y if BR2_aarch64
default y if BR2_i386
+ default y if BR2_RISCV_64
default y if BR2_x86_64
config BR2_TARGET_EDK2
@@ -20,6 +21,7 @@ if BR2_TARGET_EDK2
choice
prompt "Platform"
default BR2_TARGET_EDK2_PLATFORM_OVMF_I386 if BR2_i386
+ default BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV if BR2_RISCV_64
default BR2_TARGET_EDK2_PLATFORM_OVMF_X64 if BR2_x86_64
default BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU if BR2_aarch64
@@ -31,6 +33,14 @@ config BR2_TARGET_EDK2_PLATFORM_OVMF_I386
This platform will boot from flash address 0x0.
It should therefore be used as the first bootloader.
+config BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV
+ bool "RISC-V"
+ depends on BR2_RISCV_64
+ help
+ Platform configuration for RISC-V QEMU targeting the Virt
+ machine. This platform will only boot from flash address
+ 0x0. It should therefore be used as the first bootloader.
+
config BR2_TARGET_EDK2_PLATFORM_OVMF_X64
bool "x86-64"
depends on BR2_x86_64
diff --git a/boot/edk2/edk2.mk b/boot/edk2/edk2.mk
index 186854a14c..efdb4d02ce 100644
--- a/boot/edk2/edk2.mk
+++ b/boot/edk2/edk2.mk
@@ -136,6 +136,12 @@ define EDK2_PRE_BUILD_QEMU_SBSA
ln -srf $(BINARIES_DIR)/{bl1.bin,fip.bin} $(EDK2_BUILD_PACKAGES)/Platform/Qemu/Sbsa/
endef
+else ifeq ($(BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV),y)
+EDK2_ARCH = RISCV64
+EDK2_PACKAGE_NAME = OvmfPkg/RiscVVirt
+EDK2_PLATFORM_NAME = RiscVVirtQemu
+EDK2_BUILD_DIR = $(EDK2_PLATFORM_NAME)
+
endif
EDK2_BASETOOLS_OPTS = \
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [Buildroot] [PATCH next 1/1] boot/edk2: add support for RISC-V 64bit architecture 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 2023-12-22 10:56 ` [Buildroot] [PATCH v2 " Julien Olivain 1 sibling, 0 replies; 6+ messages in thread From: Thomas Petazzoni via buildroot @ 2023-09-02 20:18 UTC (permalink / raw) To: Julien Olivain; +Cc: buildroot 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 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v2 1/1] boot/edk2: add support for RISC-V 64bit architecture 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 @ 2023-12-22 10:56 ` Julien Olivain 2023-12-23 13:37 ` Thomas Petazzoni via buildroot 2023-12-24 16:44 ` Yann E. MORIN 1 sibling, 2 replies; 6+ messages in thread From: Julien Olivain @ 2023-12-22 10:56 UTC (permalink / raw) To: buildroot; +Cc: Julien Olivain, Thomas Petazzoni 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 not be sufficient. This is why the Buildroot host-qemu is built in this config example. [1] https://github.com/tianocore/edk2/releases/tag/edk2-stable202302 Signed-off-by: Julien Olivain <ju.o@free.fr> --- Change v1 -> v2: - Fix 2 typos in the commit log, as reported by Thomas in [2] Even if Thomas said a v2 was not necessary, I'm resending anyway. Since this patch was sent few months back, I successfully rechecked this patch on top of master branch at commit e59346f with the commands from the commit log. Also, the recent release of Grub 2.12 in [3] includes many fixes to allow a full RV64 EFI Linux Kernel boot. This patch will be necessary to do so. This new grub release is the reason of this v2. [2] https://lists.buildroot.org/pipermail/buildroot/2023-September/674103.html [3] https://git.savannah.gnu.org/cgit/grub.git/tree/NEWS?h=grub-2.12 --- boot/edk2/Config.in | 10 ++++++++++ boot/edk2/edk2.mk | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/boot/edk2/Config.in b/boot/edk2/Config.in index bed503b168..4e6e7d122c 100644 --- a/boot/edk2/Config.in +++ b/boot/edk2/Config.in @@ -2,6 +2,7 @@ config BR2_TARGET_EDK2_ARCH_SUPPORTS bool default y if BR2_aarch64 default y if BR2_i386 + default y if BR2_RISCV_64 default y if BR2_x86_64 config BR2_TARGET_EDK2 @@ -20,6 +21,7 @@ if BR2_TARGET_EDK2 choice prompt "Platform" default BR2_TARGET_EDK2_PLATFORM_OVMF_I386 if BR2_i386 + default BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV if BR2_RISCV_64 default BR2_TARGET_EDK2_PLATFORM_OVMF_X64 if BR2_x86_64 default BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU if BR2_aarch64 @@ -31,6 +33,14 @@ config BR2_TARGET_EDK2_PLATFORM_OVMF_I386 This platform will boot from flash address 0x0. It should therefore be used as the first bootloader. +config BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV + bool "RISC-V" + depends on BR2_RISCV_64 + help + Platform configuration for RISC-V QEMU targeting the Virt + machine. This platform will only boot from flash address + 0x0. It should therefore be used as the first bootloader. + config BR2_TARGET_EDK2_PLATFORM_OVMF_X64 bool "x86-64" depends on BR2_x86_64 diff --git a/boot/edk2/edk2.mk b/boot/edk2/edk2.mk index 186854a14c..efdb4d02ce 100644 --- a/boot/edk2/edk2.mk +++ b/boot/edk2/edk2.mk @@ -136,6 +136,12 @@ define EDK2_PRE_BUILD_QEMU_SBSA ln -srf $(BINARIES_DIR)/{bl1.bin,fip.bin} $(EDK2_BUILD_PACKAGES)/Platform/Qemu/Sbsa/ endef +else ifeq ($(BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV),y) +EDK2_ARCH = RISCV64 +EDK2_PACKAGE_NAME = OvmfPkg/RiscVVirt +EDK2_PLATFORM_NAME = RiscVVirtQemu +EDK2_BUILD_DIR = $(EDK2_PLATFORM_NAME) + endif EDK2_BASETOOLS_OPTS = \ -- 2.43.0 _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] boot/edk2: add support for RISC-V 64bit architecture 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 1 sibling, 0 replies; 6+ messages in thread From: Thomas Petazzoni via buildroot @ 2023-12-23 13:37 UTC (permalink / raw) To: Julien Olivain; +Cc: buildroot On Fri, 22 Dec 2023 11:56:55 +0100 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 not be sufficient. This is why the > Buildroot host-qemu is built in this config example. > > [1] https://github.com/tianocore/edk2/releases/tag/edk2-stable202302 > > Signed-off-by: Julien Olivain <ju.o@free.fr> > --- > Change v1 -> v2: > - Fix 2 typos in the commit log, as reported by Thomas in [2] Applied to master, thanks. Thomas -- Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] boot/edk2: add support for RISC-V 64bit architecture 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 1 sibling, 1 reply; 6+ messages in thread From: Yann E. MORIN @ 2023-12-24 16:44 UTC (permalink / raw) To: Julien Olivain; +Cc: Thomas Petazzoni, buildroot Julien, All, On 2023-12-22 11:56 +0100, Julien Olivain spake thusly: > 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. Building edk2 for risc-v is broken with per-package directories. For example, this defconfig fails to build: BR2_riscv=y BR2_TOOLCHAIN_EXTERNAL=y BR2_PER_PACKAGE_DIRECTORIES=y BR2_INIT_NONE=y BR2_SYSTEM_BIN_SH_NONE=y # BR2_PACKAGE_BUSYBOX is not set # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # BR2_TARGET_ROOTFS_TAR is not set BR2_TARGET_EDK2=y The error message is (empty liens elided for brevity): Building ... /home/ymorin/dev/buildroot/O/master/build/edk2-edk2-stable202308/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleRuntimeDxe.inf [RISCV64] build.py... : error 7000: Failed to execute command make tbuild [/home/ymorin/dev/buildroot/O/master/build/edk2-edk2-stable202308/Build/RiscVVirtQemu/RELEASE_GCC5/RISCV64/OvmfPkg/PlatformDxe/Platform] build.py... : error F002: Failed to build module /home/ymorin/dev/buildroot/O/master/build/edk2-edk2-stable202308/OvmfPkg/PlatformDxe/Platform.inf [RISCV64, GCC5, RELEASE] - Failed - Of course, if one removes the PPD option, the build succeeds. So, it hints that there is a missing dependency lying around... I've tried to look around for obvious clues, but apart the fact that it is failing when running a python script, I did not find anything really obvious... Where it gets weirder, though, is that it does work with the docker image... So, that gives another hint about this python script that is failing: the docker image is a Debian with python 3.9.2, but my machine is a Fedora 39 with python 3.12. Could you have a look, please? Regards, Yann E. MORIN. > 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 not be sufficient. This is why the > Buildroot host-qemu is built in this config example. > > [1] https://github.com/tianocore/edk2/releases/tag/edk2-stable202302 > > Signed-off-by: Julien Olivain <ju.o@free.fr> > --- > Change v1 -> v2: > - Fix 2 typos in the commit log, as reported by Thomas in [2] > > Even if Thomas said a v2 was not necessary, I'm resending anyway. > Since this patch was sent few months back, I successfully > rechecked this patch on top of master branch at commit e59346f with > the commands from the commit log. > > Also, the recent release of Grub 2.12 in [3] includes many fixes to > allow a full RV64 EFI Linux Kernel boot. This patch will be > necessary to do so. This new grub release is the reason of this v2. > > [2] https://lists.buildroot.org/pipermail/buildroot/2023-September/674103.html > [3] https://git.savannah.gnu.org/cgit/grub.git/tree/NEWS?h=grub-2.12 > --- > boot/edk2/Config.in | 10 ++++++++++ > boot/edk2/edk2.mk | 6 ++++++ > 2 files changed, 16 insertions(+) > > diff --git a/boot/edk2/Config.in b/boot/edk2/Config.in > index bed503b168..4e6e7d122c 100644 > --- a/boot/edk2/Config.in > +++ b/boot/edk2/Config.in > @@ -2,6 +2,7 @@ config BR2_TARGET_EDK2_ARCH_SUPPORTS > bool > default y if BR2_aarch64 > default y if BR2_i386 > + default y if BR2_RISCV_64 > default y if BR2_x86_64 > > config BR2_TARGET_EDK2 > @@ -20,6 +21,7 @@ if BR2_TARGET_EDK2 > choice > prompt "Platform" > default BR2_TARGET_EDK2_PLATFORM_OVMF_I386 if BR2_i386 > + default BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV if BR2_RISCV_64 > default BR2_TARGET_EDK2_PLATFORM_OVMF_X64 if BR2_x86_64 > default BR2_TARGET_EDK2_PLATFORM_ARM_VIRT_QEMU if BR2_aarch64 > > @@ -31,6 +33,14 @@ config BR2_TARGET_EDK2_PLATFORM_OVMF_I386 > This platform will boot from flash address 0x0. > It should therefore be used as the first bootloader. > > +config BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV > + bool "RISC-V" > + depends on BR2_RISCV_64 > + help > + Platform configuration for RISC-V QEMU targeting the Virt > + machine. This platform will only boot from flash address > + 0x0. It should therefore be used as the first bootloader. > + > config BR2_TARGET_EDK2_PLATFORM_OVMF_X64 > bool "x86-64" > depends on BR2_x86_64 > diff --git a/boot/edk2/edk2.mk b/boot/edk2/edk2.mk > index 186854a14c..efdb4d02ce 100644 > --- a/boot/edk2/edk2.mk > +++ b/boot/edk2/edk2.mk > @@ -136,6 +136,12 @@ define EDK2_PRE_BUILD_QEMU_SBSA > ln -srf $(BINARIES_DIR)/{bl1.bin,fip.bin} $(EDK2_BUILD_PACKAGES)/Platform/Qemu/Sbsa/ > endef > > +else ifeq ($(BR2_TARGET_EDK2_PLATFORM_OVMF_RISCV),y) > +EDK2_ARCH = RISCV64 > +EDK2_PACKAGE_NAME = OvmfPkg/RiscVVirt > +EDK2_PLATFORM_NAME = RiscVVirtQemu > +EDK2_BUILD_DIR = $(EDK2_PLATFORM_NAME) > + > endif > > EDK2_BASETOOLS_OPTS = \ > -- > 2.43.0 > > _______________________________________________ > buildroot mailing list > buildroot@buildroot.org > https://lists.buildroot.org/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] boot/edk2: add support for RISC-V 64bit architecture 2023-12-24 16:44 ` Yann E. MORIN @ 2023-12-24 16:55 ` Yann E. MORIN 0 siblings, 0 replies; 6+ messages in thread From: Yann E. MORIN @ 2023-12-24 16:55 UTC (permalink / raw) To: Julien Olivain; +Cc: Thomas Petazzoni, buildroot Julien, All, On 2023-12-24 17:44 +0100, Yann E. MORIN spake thusly: > On 2023-12-22 11:56 +0100, Julien Olivain spake thusly: > > 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. > > Building edk2 for risc-v is broken with per-package directories. For > example, this defconfig fails to build: It seems it is not related to risc-v, finally, as an AArch64 build is broken similarly; BR2_aarch64=y BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y BR2_PER_PACKAGE_DIRECTORIES=y BR2_INIT_NONE=y BR2_SYSTEM_BIN_SH_NONE=y # BR2_PACKAGE_BUSYBOX is not set # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set # BR2_TARGET_ROOTFS_TAR is not set BR2_TARGET_EDK2=y build.py... : error 7000: Failed to execute command make tbuild [/home/ymorin/dev/buildroot/O/master/build/edk2-edk2-stable202308/Build/ArmVirtQemu-AARCH64/RELEASE_GCC5/AARCH64/MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe] build.py... : error 7000: Failed to execute command make tbuild [/home/ymorin/dev/buildroot/O/master/build/edk2-edk2-stable202308/Build/ArmVirtQemu-AARCH64/RELEASE_GCC5/AARCH64/MdeModulePkg/Universal/DriverHealthManagerDxe/DriverHealthManagerDxe] build.py... : error F002: Failed to build module /home/ymorin/dev/buildroot/O/master/build/edk2-edk2-stable202308/MdeModulePkg/Universal/DisplayEngineDxe/DisplayEngineDxe.inf [AARCH64, GCC5, RELEASE] - Failed - Build end time: 17:50:47, Dec.24 2023 Build total time: 00:00:11 make[1]: *** [package/pkg-generic.mk:283: /home/ymorin/dev/buildroot/O/master/build/edk2-edk2-stable202308/.stamp_built] Error 1 make: *** [Makefile:23: _all] Error 2 Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------' _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-12-24 16:55 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 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
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.