Skip to contentSkip to conversation

configs/arm_fvp_ebbr: new defconfig

PATCH In review Vincent Stehlé 2 participants 2 messages May 31, 2024 – Jul 14, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs/arm_fvp_ebbr: new defconfig

Add a defconfig to build an AArch64 U-Boot based firmware implementing the subset of UEFI defined by EBBR[1], as well as a Linux OS disk image booting with UEFI, to run on the Arm A-Profile Base RevC AEM FVP.

The generated firmware binaries can also be used to run another OS supporting the EBBR specification.

[1]: https://github.com/ARM-software/ebbr

---
 DEVELOPERS                                    |  2 +
 board/arm/fvp-ebbr/fvp-config.txt             | 15 ++++
 board/arm/fvp-ebbr/fvp-ebbr.dts               | 18 +++++
 board/arm/fvp-ebbr/genimage.cfg               | 31 ++++++++
 board/arm/fvp-ebbr/grub.cfg                   |  6 ++
 .../0001-feat-fvp-add-stdout-path.patch       | 45 ++++++++++++
 board/arm/fvp-ebbr/post-image.sh              |  7 ++
 board/arm/fvp-ebbr/readme.txt                 | 73 +++++++++++++++++++
 board/arm/fvp-ebbr/u-boot.fragment            | 49 +++++++++++++
 configs/arm_fvp_ebbr_defconfig                | 55 ++++++++++++++
 10 files changed, 301 insertions(+)
 create mode 100644 board/arm/fvp-ebbr/fvp-config.txt
 create mode 100644 board/arm/fvp-ebbr/fvp-ebbr.dts
 create mode 100644 board/arm/fvp-ebbr/genimage.cfg
 create mode 100644 board/arm/fvp-ebbr/grub.cfg
 create mode 100644 board/arm/fvp-ebbr/patches/arm-trusted-firmware/0001-feat-fvp-add-stdout-path.patch
 create mode 100755 board/arm/fvp-ebbr/post-image.sh
 create mode 100644 board/arm/fvp-ebbr/readme.txt
 create mode 100644 board/arm/fvp-ebbr/u-boot.fragment
 create mode 100644 configs/arm_fvp_ebbr_defconfig
DEVELOPERS +2 -0
index 53ec6049a1..3130336107 100644
@@ -3171,8 +3171,10 @@ F:	package/nss-myhostname/
 F:	package/utp_com/
 
 N:	Vincent Stehlé <[email protected]>
+F:	board/arm/fvp-ebbr/
 F:	board/qemu/aarch64-ebbr/
 F:	board/qemu/arm-ebbr/
+F:	configs/arm_fvp_ebbr_defconfig
 F:	configs/qemu_aarch64_ebbr_defconfig
 F:	configs/qemu_arm_ebbr_defconfig
 F:	package/edk2-non-osi/
board/arm/fvp-ebbr/fvp-config.txt new file +15 -0
new file mode 100644
index 0000000000..61e040015b
@@ -0,0 +1,15 @@
+# Arm A-Profile Base RevC AEM FVP config
+bp.secure_memory=1
+bp.ve_sysregs.exit_on_shutdown=1
+cache_state_modelled=0
+cluster0.NUM_CORES=4
+cluster0.cpu0.enable_crc32=1
+cluster0.cpu1.enable_crc32=1
+cluster0.cpu2.enable_crc32=1
+cluster0.cpu3.enable_crc32=1
+cluster1.NUM_CORES=4
+cluster1.cpu0.enable_crc32=1
+cluster1.cpu1.enable_crc32=1
+cluster1.cpu2.enable_crc32=1
+cluster1.cpu3.enable_crc32=1
+pctl.startup=0.0.0.0
board/arm/fvp-ebbr/fvp-ebbr.dts new file +18 -0
new file mode 100644
index 0000000000..45e4b47200
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2024, ARM Limited and Contributors. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ */
+
+#include "fvp-base-gicv3-psci-1t.dts"
+
+/* The TF-A Devicetree does not have the OP-TEE node; let's add it. */
+
+/ {
+	firmware {
+		optee {
+			compatible = "linaro,optee-tz";
+			method = "smc";
+		};
+	};
+};
board/arm/fvp-ebbr/genimage.cfg new file +31 -0
new file mode 100644
index 0000000000..1ca8332b9c
@@ -0,0 +1,31 @@
+image efi-part.vfat {
+	vfat {
+		file EFI {
+			image = "efi-part/EFI"
+		}
+
+		file Image {
+			image = "Image"
+		}
+	}
+
+	size = 128M
+}
+
+image disk.img {
+	hdimage {
+		partition-table-type = "gpt"
+	}
+
+	partition boot {
+		image = "efi-part.vfat"
+		partition-type-uuid = U
+		offset = 32K
+		bootable = true
+	}
+
+	partition root {
+		partition-type-uuid = b921b045-1df0-41c3-af44-4c6f280d3fae
+		image = "rootfs.ext2"
+	}
+}
board/arm/fvp-ebbr/grub.cfg new file +6 -0
new file mode 100644
index 0000000000..d99e19c4cd
@@ -0,0 +1,6 @@
+set default="0"
+set timeout="5"
+
+menuentry "Buildroot" {
+	linux /Image root=PARTLABEL=root rootwait
+}
board/arm/fvp-ebbr/patches/arm-trusted-firmware/0001-feat-fvp-add-stdout-path.patch new file +45 -0

45 lines not on this page · raw message

board/arm/fvp-ebbr/post-image.sh new file +7 -0
new file mode 100755
index 0000000000..72b156eb33
@@ -0,0 +1,7 @@
+#!/bin/sh
+set -eu
+
+BOARD_DIR=$(dirname "$0")
+
+# Override the default GRUB configuration file with our own.
+cp -f "${BOARD_DIR}/grub.cfg" "${BINARIES_DIR}/efi-part/EFI/BOOT/grub.cfg"
board/arm/fvp-ebbr/readme.txt new file +73 -0

73 lines not on this page · raw message

board/arm/fvp-ebbr/u-boot.fragment new file +49 -0

49 lines not on this page · raw message

configs/arm_fvp_ebbr_defconfig new file +55 -0

55 lines not on this page · raw message

Signature · 6 lines
2.43.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Hello Vincent,

Quoted 10 lines · On Fri, 31 May 2024 11:30:06 +0200 Vincent Stehlé <[email protected]>…

Add a defconfig to build an AArch64 U-Boot based firmware implementing the subset of UEFI defined by EBBR[1], as well as a Linux OS disk image booting with UEFI, to run on the Arm A-Profile Base RevC AEM FVP.

The generated firmware binaries can also be used to run another OS supporting the EBBR specification.

[1]: https://github.com/ARM-software/ebbr

Thanks, I've applied! I adjusted two things:

- The TF-A patch was missing an Upstream: tag

- The defconfigs must now provide hashes for all tarballs, using BR2_DOWNLOAD_FORCE_CHECK_HASHES=y, so I added those hashes

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot