Skip to contentSkip to conversation

configs/socfpga_agilex5_altera: new defconfig

PATCH In review Dinh Nguyen via buildroot 1 participant 3 messages Nov 9 – Nov 10

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 configs/socfpga_agilex5_altera: new defconfig

Build Linux, U-Boot, and TF-A for the Agilex 5 SoC Development Kit from the QPDS 26.1.1 GSRD sources.

---
v2:
- update commit header to configs/socfpga_agilex5_altera: new
defconfig
- rename the defconfig socfpga_agilex5_altera_defconfig
- Update the readme.txt to include a link to the Agilex5 PDK's
information, add notes about the 'dd' command
- Update socfpga_agilex5_altera_defconfig to match new defconfig
requirements
- Add to myself as a contact in DEVELOPERS

---
 DEVELOPERS                               |  3 ++
 board/altera/agilex5/genimage.cfg        | 27 +++++++++++
 board/altera/agilex5/linux.fragment      |  4 ++
 board/altera/agilex5/readme.txt          | 61 ++++++++++++++++++++++++
 board/altera/agilex5/uboot.fragment      |  4 ++
 configs/socfpga_agilex5_altera_defconfig | 46 ++++++++++++++++++
 6 files changed, 145 insertions(+)
 create mode 100644 board/altera/agilex5/genimage.cfg
 create mode 100644 board/altera/agilex5/linux.fragment
 create mode 100644 board/altera/agilex5/readme.txt
 create mode 100644 board/altera/agilex5/uboot.fragment
 create mode 100644 configs/socfpga_agilex5_altera_defconfig
DEVELOPERS +3 -0
index febf03773c..c1b0a5b925 100644
@@ -904,6 +904,9 @@ N:	Dimitrios Siganos <[email protected]>
 F:	package/bvi/
 F:	package/wireless-regdb/
 
+N:	Dinh Nguyen <[email protected]>
+F:	board/altera/
+
 N:	Dmitry Chestnykh <[email protected]>
 F:	board/qemu/sparc-ss10/
 F:	configs/qemu_sparc_ss10_defconfig
board/altera/agilex5/genimage.cfg new file +27 -0
new file mode 100644
index 0000000000..720d646546
@@ -0,0 +1,27 @@
+image boot.vfat {
+	vfat {
+		files = {
+			"Image",
+			"socfpga_agilex5_socdk.dtb",
+			"u-boot.itb"
+		}
+	}
+
+	size = 64M
+}
+
+image sdcard.img {
+	hdimage {
+	}
+
+	partition boot {
+		partition-type = 0xc
+		bootable = "true"
+		image = "boot.vfat"
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext2"
+	}
+}
board/altera/agilex5/linux.fragment new file +4 -0
new file mode 100644
index 0000000000..7c8f9dec31
@@ -0,0 +1,4 @@
+# QSPI access fails when 4K sectors are enabled (ES-14728).
+# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+# Marvell PHY on the SoC Development Kit Ethernet ports.
+CONFIG_MARVELL_PHY=y
board/altera/agilex5/readme.txt new file +61 -0

61 lines not on this page · raw message

board/altera/agilex5/uboot.fragment new file +4 -0
new file mode 100644
index 0000000000..1e3327555c
@@ -0,0 +1,4 @@
+CONFIG_USE_BOOTARGS=y
+CONFIG_BOOTARGS="console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait"
+CONFIG_USE_BOOTCOMMAND=y
+CONFIG_BOOTCOMMAND="if fatload mmc 0:1 ${loadaddr} ghrd.core.rbf; then fpga load 0 ${loadaddr} ${filesize}; bridge enable; fi; mmc rescan; fatload mmc 0:1 82000000 Image; fatload mmc 0:1 86000000 socfpga_agilex5_socdk.dtb; setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait; booti 0x82000000 - 0x86000000"
configs/socfpga_agilex5_altera_defconfig new file +46 -0

46 lines not on this page · raw message

Signature · 6 lines
2.42.0.411.g813d9a9188

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

PATCH v2 2/2 configs/altera: enable BR2_DOWNLOAD_FORCE_CHECK_HASHES

Enable BR2_DOWNLOAD_FORCE_CHECK_HASHES, add custom hashes in board/altera/agilex5/patches directory.

---
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash      | 2 ++
 board/altera/agilex5/patches/linux/linux.hash                   | 2 ++
 board/altera/agilex5/patches/uboot/uboot.hash                   | 2 ++
 configs/socfpga_agilex5_altera_defconfig                        | 2 ++
 4 files changed, 8 insertions(+)
 create mode 100644 board/altera/agilex5/patches/arm-trusted-firmware/arm-trusted-firmware.hash
 create mode 100644 board/altera/agilex5/patches/linux/linux.hash
 create mode 100644 board/altera/agilex5/patches/uboot/uboot.hash
board/altera/agilex5/patches/arm-trusted-firmware/arm-trusted-firmware.hash new file +2 -0
new file mode 100644
index 0000000000..5a935a0d16
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  59bed1328131f1eb1ee10f16c94d8f0bbf5600d7573d42d0cf987b8edffe2f6a  arm-trusted-firmware-QPDS26.1.1_REL_GSRD_PR-git4.tar.gz
board/altera/agilex5/patches/linux/linux.hash new file +2 -0
new file mode 100644
index 0000000000..d322ac26c7
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  d8328683db0a6b43a96c18d7149b98a11138909ea50f2fa411339f93eb492571  linux-QPDS26.1.1_REL_GSRD_PR-git4.tar.gz
board/altera/agilex5/patches/uboot/uboot.hash new file +2 -0
new file mode 100644
index 0000000000..51906e1d73
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  a78bf187fde344297bea7d986f05996dfba94ea11d2d4dc706a78bcae543e175  uboot-QPDS26.1.1_REL_GSRD_PR-git4.tar.gz
configs/socfpga_agilex5_altera_defconfig +2 -0
index a0888bdd25..f989403c69 100644
@@ -2,6 +2,8 @@ BR2_cortex_a55=y
 BR2_TOOLCHAIN_EXTERNAL=y
 BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
 BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_AARCH64_GLIBC_STABLE=y
+BR2_GLOBAL_PATCH_DIR="board/altera/agilex5/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_TARGET_GENERIC_HOSTNAME="agilex5"
 BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
 BR2_SYSTEM_DHCP="eth0"
Signature · 6 lines
2.42.0.411.g813d9a9188

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Dinh Nguyen via buildroot

Hi Dinh,

Quoted 4 lines · Dinh Nguyen

Build Linux, U-Boot, and TF-A for the Agilex 5 SoC Development Kit from the QPDS 26.1.1 GSRD sources.

Thanks for the update. I squashed this series, made minor changes and applied to master. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/7c1fdc76b84a59f88a0b2b90c823bf7695f16b13

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot