Skip to contentSkip to conversation

configs/zynqmp_kria_kd240_defconfig: bump to xilinx-v2024.2

PATCH In review Neal Frager via buildroot 2 participants 8 messages Nov 29, 2024 – Dec 18, 2024 2 messages not in the archive Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 configs/zynqmp_kria_kd240_defconfig: bump to xilinx-v2024.2

This patch bumps the zynqmp_kria_kd240_defconfig to xilinx-v2024.2 which includes the following updates:

- ATF v2.10
- Linux v6.6.40
- U-Boot v2024.01

The board specific u-boot patch for the kd240 is no longer necessary, as it is included with the xilinx-v2024.2 release tag.

The following patch has thus been removed:
board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch

---
 ...arm64-zynqmp-Enable-usb3-for-k24-som.patch | 81 -------------------
 configs/zynqmp_kria_kd240_defconfig           |  8 +-
 2 files changed, 4 insertions(+), 85 deletions(-)
 delete mode 100644 board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch
board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -81
deleted file mode 100644
index 0cc10d344e..0000000000
@@ -1,81 +0,0 @@
-From 73c99c29508d7adfe11b6a81f13cf00efab5f9de Mon Sep 17 00:00:00 2001
-From: Neal Frager <[email protected]>
-Date: Tue, 4 Jun 2024 09:15:23 +0100
-Subject: [PATCH] arm64: zynqmp: Enable usb3 for k24 som
-
-This patch corrects the mio and pll configuration registers for using usb3
-on the kd240 starter kit.  Without this patch, the usb3 to sd card bridge does
-not initialize correctly and u-boot is unable to find the OS located on the
-kd240 starter kit sd card.
-
-In addition, this patch correctly configures mio76 and mio77 as gpio pins
-which are used as reset gpio pins on the kd240 starter kit.
-
-Signed-off-by: Neal Frager <[email protected]>
-Upstream: https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
----
- .../zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c  | 23 ++++++++-----------
- 1 file changed, 10 insertions(+), 13 deletions(-)
-
-diff --git a/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c b/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c
-index 166e61431b..274203ffaa 100644
---- a/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c
-+++ b/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c
-@@ -528,8 +528,8 @@ static unsigned long psu_mio_init_data(void)
- 	psu_mask_write(0xFF180124, 0x000000FEU, 0x00000002U);
- 	psu_mask_write(0xFF180128, 0x000000FEU, 0x00000002U);
- 	psu_mask_write(0xFF18012C, 0x000000FEU, 0x00000002U);
--	psu_mask_write(0xFF180130, 0x000000FEU, 0x000000C0U);
--	psu_mask_write(0xFF180134, 0x000000FEU, 0x000000C0U);
-+	psu_mask_write(0xFF180130, 0x000000FEU, 0x00000000U);
-+	psu_mask_write(0xFF180134, 0x000000FEU, 0x00000000U);
- 	psu_mask_write(0xFF180204, 0xFFFFFFFFU, 0x50000000U);
- 	psu_mask_write(0xFF180208, 0xFFFFFFFFU, 0x00B02020U);
- 	psu_mask_write(0xFF18020C, 0x00003FFFU, 0x00000FC0U);
-@@ -569,21 +569,16 @@ static unsigned long psu_peripherals_init_data(void)
- 	psu_mask_write(0xFD1A0100, 0x0001807CU, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x001A0000U, 0x00000000U);
- 	psu_mask_write(0xFF5E023C, 0x0093C018U, 0x00000000U);
--	psu_mask_write(0xFF5E0230, 0x00000008U, 0x00000000U);
-+	psu_mask_write(0xFF5E0230, 0x00000002U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00000001U, 0x00000000U);
- 	psu_mask_write(0xFF180390, 0x00000004U, 0x00000004U);
- 	psu_mask_write(0xFF5E023C, 0x00000400U, 0x00000000U);
--	psu_mask_write(0xFF5E0238, 0x00000040U, 0x00000000U);
--	psu_mask_write(0xFF180310, 0x00008000U, 0x00000000U);
--	psu_mask_write(0xFF180320, 0x33840000U, 0x02840000U);
--	psu_mask_write(0xFF18031C, 0x7FFE0000U, 0x64500000U);
--	psu_mask_write(0xFF180358, 0x00000008U, 0x00000008U);
--	psu_mask_write(0xFF180324, 0x03C00000U, 0x00000000U);
-+	psu_mask_write(0xFF5E0238, 0x00000080U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00000400U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00008000U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00000010U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00007800U, 0x00000000U);
--	psu_mask_write(0xFF5E0238, 0x00000004U, 0x00000000U);
-+	psu_mask_write(0xFF5E0238, 0x00000006U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00040000U, 0x00000000U);
- 	psu_mask_write(0xFF4B0024, 0x000000FFU, 0x000000FFU);
- 	psu_mask_write(0xFFCA5000, 0x00001FFFU, 0x00000000U);
-@@ -591,13 +586,15 @@ static unsigned long psu_peripherals_init_data(void)
- 	psu_mask_write(0xFFA60040, 0x80000000U, 0x80000000U);
- 	psu_mask_write(0xFF260020, 0xFFFFFFFFU, 0x05F5DD18U);
- 	psu_mask_write(0xFF260000, 0x00000001U, 0x00000001U);
--	psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000202U);
-+	psu_mask_write(0xFF0A0284, 0x03FFFFFFU, 0x01000000U);
-+	psu_mask_write(0xFF0A0288, 0x03FFFFFFU, 0x01000000U);
-+	psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0100U);
- 
- 	mask_delay(1);
--	psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000002U);
-+	psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0000U);
- 
- 	mask_delay(5);
--	psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000202U);
-+	psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0100U);
- 
- 	return 1;
- }
--- 
-2.25.1
-
configs/zynqmp_kria_kd240_defconfig +4 -4
index 8cbc172a41..d47c3e27e5 100644
@@ -1,13 +1,13 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
-BR2_GLOBAL_PATCH_DIR="board/zynqmp/kria/kd240/patches board/xilinx/patches"
+BR2_GLOBAL_PATCH_DIR="board/xilinx/patches"
 BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh board/zynqmp/kria/kd240/kd240.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/zynqmp/post-image.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="ttyPS1,115200 sda2 ${UBOOT_DIR}"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_merge_6.6.40)/xlnx_rebase_v6.6_LTS_merge_6.6.40.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_2024.2)/xlnx_rebase_v6.6_LTS_2024.2.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="xilinx"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="xilinx/zynqmp-smk-k24-revA-sck-kd-g-revA"
@@ -17,14 +17,14 @@ BR2_TARGET_ROOTFS_EXT2_4=y
 # BR2_TARGET_ROOTFS_TAR is not set
 BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.1)/xlnx_rebase_v2.10_2024.1.tar.gz"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.2)/xlnx_rebase_v2.10_2024.2.tar.gz"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="zynqmp"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31_UBOOT=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="ZYNQMP_CONSOLE=cadence1"
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.1)/xlnx_rebase_v2024.01_2024.1.tar.gz"
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.2)/xlnx_rebase_v2024.01_2024.2.tar.gz"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="xilinx_zynqmp_kria"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
Signature · 6 lines
2.25.1

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

PATCH 2/4 configs/zynqmp_kria_kr260_defconfig: bump to xilinx-v2024.2

This patch bumps the zynqmp_kria_kr260_defconfig to xilinx-v2024.2 which includes the following updates:

- ATF v2.10
- Linux v6.6.40
- U-Boot v2024.01

---
 configs/zynqmp_kria_kr260_defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
configs/zynqmp_kria_kr260_defconfig +3 -3
index d5a292b143..6f2e88b47e 100644
@@ -7,7 +7,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="board/zynqmp/post-image.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="ttyPS1,115200 sda2 ${UBOOT_DIR}"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_merge_6.6.40)/xlnx_rebase_v6.6_LTS_merge_6.6.40.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_2024.2)/xlnx_rebase_v6.6_LTS_2024.2.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="xilinx"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="xilinx/zynqmp-smk-k26-revA-sck-kr-g-revB"
@@ -17,14 +17,14 @@ BR2_TARGET_ROOTFS_EXT2_4=y
 # BR2_TARGET_ROOTFS_TAR is not set
 BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.1)/xlnx_rebase_v2.10_2024.1.tar.gz"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.2)/xlnx_rebase_v2.10_2024.2.tar.gz"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="zynqmp"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31_UBOOT=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="ZYNQMP_CONSOLE=cadence1"
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.1)/xlnx_rebase_v2024.01_2024.1.tar.gz"
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.2)/xlnx_rebase_v2024.01_2024.2.tar.gz"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="xilinx_zynqmp_kria"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
Signature · 6 lines
2.25.1

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

PATCH 3/4 configs/zynqmp_kria_kv260_defconfig: bump to xilinx-v2024.2

In reply to Neal Frager via buildroot

This patch bumps the zynqmp_kria_kv260_defconfig to xilinx-v2024.2 which includes the following updates:

- ATF v2.10
- Linux v6.6.40
- U-Boot v2024.01

---
 configs/zynqmp_kria_kv260_defconfig | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
configs/zynqmp_kria_kv260_defconfig +3 -3
index 06efa86e14..9aed096e5d 100644
@@ -7,7 +7,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="board/zynqmp/post-image.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="ttyPS1,115200 mmcblk1p2 ${UBOOT_DIR}"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_merge_6.6.40)/xlnx_rebase_v6.6_LTS_merge_6.6.40.tar.gz"
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_2024.2)/xlnx_rebase_v6.6_LTS_2024.2.tar.gz"
 BR2_LINUX_KERNEL_DEFCONFIG="xilinx"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="xilinx/zynqmp-smk-k26-revA-sck-kv-g-revB"
@@ -17,14 +17,14 @@ BR2_TARGET_ROOTFS_EXT2_4=y
 # BR2_TARGET_ROOTFS_TAR is not set
 BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.1)/xlnx_rebase_v2.10_2024.1.tar.gz"
+BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.2)/xlnx_rebase_v2.10_2024.2.tar.gz"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="zynqmp"
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31_UBOOT=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="ZYNQMP_CONSOLE=cadence1"
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.1)/xlnx_rebase_v2024.01_2024.1.tar.gz"
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.2)/xlnx_rebase_v2024.01_2024.2.tar.gz"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="xilinx_zynqmp_kria"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
 BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
Signature · 6 lines
2.25.1

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

A message that is not in the archive (sent off-list or not yet received): 20241217184539.3f3c0bb4@booty

#4 lore raw

Re: [Buildroot] [PATCH v1 3/4] configs/zynqmp_kria_kv260_defconfig: bump to xilinx-v2024.2

Hello Luca,

Quoted 11 lines

This patch bumps the zynqmp_kria_kv260_defconfig to xilinx-v2024.2 which includes the following updates:

- ATF v2.10
- Linux v6.6.40
- U-Boot v2024.01

I noticed I am unable to boot a Kria KV260 Vision AI Starter kit after this series. The symptom is the boot process hungs after:

--- snip ---

Quoted 17 lines

I tested the following versions:

1. 2024.11-rc1-36-ga6db4cde0fcb (just before the bump) -> OK
2. 2024.11-rc1-41-gd33a2cd51a3f (just after the bump) -> hangs
3. 2024.11-187-gf97b67be7429 (current Buildroot master) -> hangs

Steps I took to test:

git checkout <commit>
git clean -xdf
git checkout -- .
make zynqmp_kria_kv260_defconfig
grep BR2_TARGET_UBOOT_ZYNQMP_PMUFW .config # => always shows BR2_TARGET_UBOOT_ZYNQMP_PMUFW_PREBUILT=y utils/brmake
( cd output/images; cp boot.bin sbirt.bin; dd if=u-boot.itb seek=128 bs=4k of=sbirt.bin ) # Upgrade sbirt.bin using the SBIRT tool

Quoted 7 lines

# The following three lines are not really needed: the problem happens

 # before actually reading the uSD card:
 umount /media/$USER/*
 sudo dd if=output/images/sdcard.img of=/dev/sdb
 umount /media/$USER/* && sync

Do you have any clues?

Thank you for reporting this!

Unfortunately, it appears that our kria software is not quite as mature as I believed. When I bumped the defconfigs to xilinx_v2024.2, I only actually run tested one defconfig per family. For kria, I tested the kd240 starter kit and it boots as expected. I thought this meant that the kv260 and kr260 would be fine by association.

I have just run tested the kv260, and I have duplicated your issue, so we do indeed have a problem here. I am working on it with high priority.

I am going to run test the kr260 now as well.

Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#5 lore raw

Re: [Buildroot] [PATCH v1 3/4] configs/zynqmp_kria_kv260_defconfig: bump to xilinx-v2024.2

Hello Luca,

Quoted 47 lines

This patch bumps the zynqmp_kria_kv260_defconfig to xilinx-v2024.2 which includes the following updates:

- ATF v2.10
- Linux v6.6.40
- U-Boot v2024.01

I noticed I am unable to boot a Kria KV260 Vision AI Starter kit after this series. The symptom is the boot process hungs after:

--- snip ---

I tested the following versions:

1. 2024.11-rc1-36-ga6db4cde0fcb (just before the bump) -> OK
2. 2024.11-rc1-41-gd33a2cd51a3f (just after the bump) -> hangs
3. 2024.11-187-gf97b67be7429 (current Buildroot master) -> hangs

Steps I took to test:

git checkout <commit>
git clean -xdf
git checkout -- .
make zynqmp_kria_kv260_defconfig
grep BR2_TARGET_UBOOT_ZYNQMP_PMUFW .config # => always shows BR2_TARGET_UBOOT_ZYNQMP_PMUFW_PREBUILT=y utils/brmake
( cd output/images; cp boot.bin sbirt.bin; dd if=u-boot.itb seek=128 bs=4k of=sbirt.bin ) # Upgrade sbirt.bin using the SBIRT tool

# The following three lines are not really needed: the problem happens

 # before actually reading the uSD card:
 umount /media/$USER/*
 sudo dd if=output/images/sdcard.img of=/dev/sdb
 umount /media/$USER/* && sync

Do you have any clues?

Thank you for reporting this!

Unfortunately, it appears that our kria software is not quite as mature as I believed. When I bumped the defconfigs to xilinx_v2024.2, I only actually run tested one defconfig per family. For kria, I tested the kd240 starter kit and it boots as expected. I thought this meant that the kv260 and kr260 would be fine by association.

Quoted 4 lines

I have just run tested the kv260, and I have duplicated your issue, so we do indeed have a problem here. I am working on it with high priority.

I am going to run test the kr260 now as well.

Please apply the attached patch to your u-boot build. It resolves the boot issue for me, and I believe it will resolve the issue for you as well.

Once I have your confirmation, I am going to submit this patch both upstream and to buildroot, so that the kv260 and kr260 boards can boot without an issue.

Thank you for catching this problem!

Best regards,
Neal Frager
AMD

From: Neal Frager <[email protected]>
Date: Wed, 18 Dec 2024 10:55:02 +0000
Subject: [PATCH] board: xilinx: zynqmp: zynqmp-sm-k26-revA: psu_init_gpl.c:
fix u-boot boot crash

u-boot crashes during boot with the k26 som. This patch corrects the mio and clock configurations, so that u-boot boots correctly.

---
 .../zynqmp/zynqmp-sm-k26-revA/psu_init_gpl.c  | 100 ++++++++----------
 1 file changed, 44 insertions(+), 56 deletions(-)
board/xilinx/zynqmp/zynqmp-sm-k26-revA/psu_init_gpl.c +44 -56
index e5598807e8..fc8f0fd9a4 100644
@@ -17,14 +17,14 @@ static unsigned long psu_pll_init_data(void)
 	psu_mask_write(0xFF5E0030, 0x00000008U, 0x00000000U);
 	psu_mask_write(0xFF5E0048, 0x00003F00U, 0x00000200U);
 	psu_mask_write(0xFF5E0108, 0x013F3F07U, 0x01012300U);
-	psu_mask_write(0xFF5E0024, 0xFE7FEDEFU, 0x7E4E2C62U);
-	psu_mask_write(0xFF5E0020, 0x00717F00U, 0x00013C00U);
+	psu_mask_write(0xFF5E0024, 0xFE7FEDEFU, 0x7E4B0C82U);
+	psu_mask_write(0xFF5E0020, 0x00717F00U, 0x00015A00U);
 	psu_mask_write(0xFF5E0020, 0x00000008U, 0x00000008U);
 	psu_mask_write(0xFF5E0020, 0x00000001U, 0x00000001U);
 	psu_mask_write(0xFF5E0020, 0x00000001U, 0x00000000U);
 	mask_poll(0xFF5E0040, 0x00000001U);
 	psu_mask_write(0xFF5E0020, 0x00000008U, 0x00000000U);
-	psu_mask_write(0xFF5E0044, 0x00003F00U, 0x00000200U);
+	psu_mask_write(0xFF5E0044, 0x00003F00U, 0x00000300U);
 	psu_mask_write(0xFD1A0024, 0xFE7FEDEFU, 0x7E4B0C62U);
 	psu_mask_write(0xFD1A0020, 0x00717F00U, 0x00015000U);
 	psu_mask_write(0xFD1A0020, 0x00000008U, 0x00000008U);
@@ -56,27 +56,29 @@ static unsigned long psu_pll_init_data(void)
 
 static unsigned long psu_clock_init_data(void)
 {
-	psu_mask_write(0xFF5E0068, 0x013F3F07U, 0x01010800U);
-	psu_mask_write(0xFF5E0078, 0x013F3F07U, 0x01010A00U);
-	psu_mask_write(0xFF5E0124, 0x013F3F07U, 0x01010A00U);
-	psu_mask_write(0xFF5E0080, 0x013F3F07U, 0x01010500U);
+	psu_mask_write(0xFF5E0068, 0x013F3F07U, 0x01010C00U);
+	psu_mask_write(0xFF5E006C, 0x013F3F07U, 0x01010800U);
+	psu_mask_write(0xFF18030C, 0x00000003U, 0x00000000U);
+	psu_mask_write(0xFF5E0078, 0x013F3F07U, 0x01010F00U);
+	psu_mask_write(0xFF5E0124, 0x013F3F07U, 0x01010F00U);
+	psu_mask_write(0xFF5E0080, 0x013F3F07U, 0x01010800U);
 	psu_mask_write(0xFF5E0090, 0x01003F07U, 0x01000200U);
-	psu_mask_write(0xFF5E009C, 0x01003F07U, 0x01000402U);
-	psu_mask_write(0xFF5E00A4, 0x01003F07U, 0x01000500U);
-	psu_mask_write(0xFF5E00A8, 0x01003F07U, 0x01000202U);
-	psu_mask_write(0xFF5E00AC, 0x01003F07U, 0x01000A02U);
-	psu_mask_write(0xFF5E00B0, 0x01003F07U, 0x01000402U);
-	psu_mask_write(0xFF5E00B8, 0x01003F07U, 0x01000202U);
-	psu_mask_write(0xFF5E00C0, 0x013F3F07U, 0x01010A00U);
-	psu_mask_write(0xFF5E00C4, 0x013F3F07U, 0x01010A00U);
-	psu_mask_write(0xFF5E0108, 0x013F3F07U, 0x01011402U);
+	psu_mask_write(0xFF5E009C, 0x01003F07U, 0x01000602U);
+	psu_mask_write(0xFF5E00A4, 0x01003F07U, 0x01000800U);
+	psu_mask_write(0xFF5E00A8, 0x01003F07U, 0x01000302U);
+	psu_mask_write(0xFF5E00AC, 0x01003F07U, 0x01000F02U);
+	psu_mask_write(0xFF5E00B0, 0x01003F07U, 0x01000602U);
+	psu_mask_write(0xFF5E00B8, 0x01003F07U, 0x01000302U);
+	psu_mask_write(0xFF5E00C0, 0x013F3F07U, 0x01010F00U);
+	psu_mask_write(0xFF5E00C4, 0x013F3F07U, 0x01010F00U);
+	psu_mask_write(0xFF5E0108, 0x013F3F07U, 0x01011E02U);
 	psu_mask_write(0xFF5E0104, 0x00000007U, 0x00000000U);
-	psu_mask_write(0xFF5E0128, 0x01003F07U, 0x01000A00U);
+	psu_mask_write(0xFF5E0128, 0x01003F07U, 0x01000F00U);
 	psu_mask_write(0xFD1A0060, 0x03003F07U, 0x03000100U);
 	psu_mask_write(0xFD1A0068, 0x01003F07U, 0x01000200U);
 	psu_mask_write(0xFD1A0070, 0x013F3F07U, 0x01010500U);
-	psu_mask_write(0xFD1A0074, 0x013F3F07U, 0x01013C03U);
-	psu_mask_write(0xFD1A007C, 0x013F3F07U, 0x01013803U);
+	psu_mask_write(0xFD1A0074, 0x013F3F07U, 0x01011603U);
+	psu_mask_write(0xFD1A007C, 0x013F3F07U, 0x01011403U);
 	psu_mask_write(0xFD1A0080, 0x00003F07U, 0x00000200U);
 	psu_mask_write(0xFD1A0084, 0x07003F07U, 0x07000100U);
 	psu_mask_write(0xFD1A00B8, 0x01003F07U, 0x01000203U);
@@ -393,44 +395,28 @@ static unsigned long psu_mio_init_data(void)
 	psu_mask_write(0xFF180028, 0x000000FEU, 0x00000080U);
 	psu_mask_write(0xFF18002C, 0x000000FEU, 0x00000080U);
 	psu_mask_write(0xFF180030, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180034, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180038, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF18003C, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180040, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180044, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180048, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF18004C, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180050, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180054, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180058, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF18005C, 0x000000FEU, 0x00000000U);
+	psu_mask_write(0xFF180034, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF180038, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF18003C, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF180040, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF180044, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF180048, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF18004C, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF180050, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF180054, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF180058, 0x000000FEU, 0x00000008U);
+	psu_mask_write(0xFF18005C, 0x000000FEU, 0x00000008U);
 	psu_mask_write(0xFF180060, 0x000000FEU, 0x00000040U);
 	psu_mask_write(0xFF180064, 0x000000FEU, 0x00000040U);
 	psu_mask_write(0xFF180068, 0x000000FEU, 0x00000008U);
-	psu_mask_write(0xFF18006C, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180070, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180074, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180078, 0x000000FEU, 0x00000000U);
+	psu_mask_write(0xFF18006C, 0x000000FEU, 0x00000018U);
+	psu_mask_write(0xFF180070, 0x000000FEU, 0x00000018U);
+	psu_mask_write(0xFF180074, 0x000000FEU, 0x00000018U);
+	psu_mask_write(0xFF180078, 0x000000FEU, 0x00000018U);
 	psu_mask_write(0xFF18007C, 0x000000FEU, 0x00000008U);
-	psu_mask_write(0xFF180080, 0x000000FEU, 0x00000008U);
-	psu_mask_write(0xFF180084, 0x000000FEU, 0x00000008U);
 	psu_mask_write(0xFF180090, 0x000000FEU, 0x000000C0U);
 	psu_mask_write(0xFF180094, 0x000000FEU, 0x000000C0U);
-	psu_mask_write(0xFF180098, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF18009C, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800A0, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800A4, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800A8, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800AC, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800B0, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800B4, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800B8, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800BC, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800C0, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800C4, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800C8, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF1800CC, 0x000000FEU, 0x00000000U);
-	psu_mask_write(0xFF180204, 0xFFFFFFFFU, 0x84000000U);
+	psu_mask_write(0xFF180204, 0xFFFFFFFFU, 0xD4000000U);
 	psu_mask_write(0xFF180208, 0x000FFFFFU, 0x00000020U);
 	psu_mask_write(0xFF180138, 0x03FFFFFFU, 0x00000000U);
 	psu_mask_write(0xFF18013C, 0x03FFFFFFU, 0x03FFFFFFU);
@@ -465,20 +451,22 @@ static unsigned long psu_peripherals_pre_init_data(void)
 
 static unsigned long psu_peripherals_init_data(void)
 {
-	psu_mask_write(0xFD1A0100, 0x0000807CU, 0x00000000U);
+	psu_mask_write(0xFD1A0100, 0x0001807CU, 0x00000000U);
 	psu_mask_write(0xFF5E0238, 0x001A0000U, 0x00000000U);
 	psu_mask_write(0xFF5E023C, 0x0093C018U, 0x00000000U);
 	psu_mask_write(0xFF5E0238, 0x00000001U, 0x00000000U);
 	psu_mask_write(0xFF180390, 0x00000004U, 0x00000004U);
+	psu_mask_write(0xFF5E0238, 0x00000020U, 0x00000000U);
+	psu_mask_write(0xFF180310, 0x00000001U, 0x00000001U);
+	psu_mask_write(0xFF180320, 0x00003384U, 0x00001284U);
+	psu_mask_write(0xFF18031C, 0x00007FFEU, 0x00006450U);
+	psu_mask_write(0xFF180358, 0x00080000U, 0x00080000U);
+	psu_mask_write(0xFF180324, 0x000003C0U, 0x00000000U);
 	psu_mask_write(0xFF5E0238, 0x00000400U, 0x00000000U);
 	psu_mask_write(0xFF5E0238, 0x00008000U, 0x00000000U);
 	psu_mask_write(0xFF5E0238, 0x00000010U, 0x00000000U);
 	psu_mask_write(0xFF5E0238, 0x00007800U, 0x00000000U);
 	psu_mask_write(0xFF5E0238, 0x00000004U, 0x00000000U);
-	psu_mask_write(0xFF010034, 0x000000FFU, 0x00000006U);
-	psu_mask_write(0xFF010018, 0x0000FFFFU, 0x0000007CU);
-	psu_mask_write(0xFF010000, 0x000001FFU, 0x00000017U);
-	psu_mask_write(0xFF010004, 0x000003FFU, 0x00000020U);
 	psu_mask_write(0xFF5E0238, 0x00040000U, 0x00000000U);
 	psu_mask_write(0xFF4B0024, 0x000000FFU, 0x000000FFU);
 	psu_mask_write(0xFFCA5000, 0x00001FFFU, 0x00000000U);
Signature · 1 line
2.25.1

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

A message that is not in the archive (sent off-list or not yet received): 20241218180354.1a89879b@booty

#7 lore raw

Re: [Buildroot] [PATCH v1 3/4] configs/zynqmp_kria_kv260_defconfig: bump to xilinx-v2024.2

Hi Luca,

Quoted 64 lines

Hello Luca,

Quoted 47 lines

This patch bumps the zynqmp_kria_kv260_defconfig to xilinx-v2024.2 which includes the following updates:

- ATF v2.10
- Linux v6.6.40
- U-Boot v2024.01

I noticed I am unable to boot a Kria KV260 Vision AI Starter kit after this series. The symptom is the boot process hungs after:

--- snip ---

I tested the following versions:

1. 2024.11-rc1-36-ga6db4cde0fcb (just before the bump) -> OK
2. 2024.11-rc1-41-gd33a2cd51a3f (just after the bump) -> hangs
3. 2024.11-187-gf97b67be7429 (current Buildroot master) -> hangs

Steps I took to test:

git checkout <commit>
git clean -xdf
git checkout -- .
make zynqmp_kria_kv260_defconfig
grep BR2_TARGET_UBOOT_ZYNQMP_PMUFW .config # => always shows BR2_TARGET_UBOOT_ZYNQMP_PMUFW_PREBUILT=y utils/brmake
( cd output/images; cp boot.bin sbirt.bin; dd if=u-boot.itb seek=128 bs=4k of=sbirt.bin ) # Upgrade sbirt.bin using the SBIRT tool

# The following three lines are not really needed: the problem happens

 # before actually reading the uSD card:
 umount /media/$USER/*
 sudo dd if=output/images/sdcard.img of=/dev/sdb
 umount /media/$USER/* && sync  

Do you have any clues?

Thank you for reporting this!

Unfortunately, it appears that our kria software is not quite as mature as I believed. When I bumped the defconfigs to xilinx_v2024.2, I only actually run tested one defconfig per family. For kria, I tested the kd240 starter kit and it boots as expected. I thought this meant that the kv260 and kr260 would be fine by association.

Quoted 4 lines

I have just run tested the kv260, and I have duplicated your issue, so we do indeed have a problem here. I am working on it with high priority.

I am going to run test the kr260 now as well.

Please apply the attached patch to your u-boot build. It resolves the boot issue for me, and I believe it will resolve the issue for you as well.

The attached patch resolves the issue. This is good, thanks for the quick action.

On the other hand I am confused after having received in my inbox two different patches which appear to address the same issue:

Quoted 7 lines

1. A U-Boot patch changing one bit in psu_init_gpl.c [1]
2. A Buildroot patch adding a patch from upstream U-Boot [2]

[1] https://lore.kernel.org/all/[email protected]/
[2] https://lore.kernel.org/all/[email protected]/

Are those two actually solving the same bug?

Yes, either patch will solve the immediate issue of not being able to boot.

Quoted 2 lines

If they are, why proposing two different fixes, one for U-Boot and one for Buildroot?

Since either patch solves the problem, I chose to include Michal's patch which is already committed upstream for buildroot. From that perspective, I do not really need to send any patches upstream to u-boot to solve the boot issue because Michal's patch is already committed upstream.

However, the main reason why this happened is because the psu_init that the FSBL uses does not match the psu_init that the SPL uses. And the FSBL solution is still what AMD uses for our official release testing. So even though Michal's patch is not included in our 2024.2 release, the FSBL does not have an issue because the DP is taken out of reset by the FSBL psu_init.

Since this is not the first time I have seen issues with the SPL flow having an untested boot failure, I want to fix this issue in the SPL psu_init as well. The register change of my patch is simply matching the FSBL configuration of that same register. This is why I have gone ahead and submitted a second patch upstream to u-boot correcting the psu_init, even though this patch is not required for buildroot or solving our boot issue.

Does this help clear things up? Do you have any thoughts / opinions?

Quoted 1 line

It would be good to have this clarified before applying any fixes.

Completely understood.

Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#8 lore raw

PATCH 4/4 board/xilinx/patches: remove xilinx_v2024.1 hashes

In reply to Neal Frager via buildroot

Now that all defconfigs have been bumped to xilinx_v2024.2, the xilinx_v2024.1 hashes can be removed.

---
 .../patches/arm-trusted-firmware/arm-trusted-firmware.hash       | 1 -
 board/xilinx/patches/linux/linux.hash                            | 1 -
 board/xilinx/patches/uboot/uboot.hash                            | 1 -
 board/xilinx/patches/xilinx-prebuilt/xilinx-prebuilt.hash        | 1 -
 4 files changed, 4 deletions(-)
board/xilinx/patches/arm-trusted-firmware/arm-trusted-firmware.hash +0 -1
index 2ef3a98196..15cceebb80 100644
@@ -1,3 +1,2 @@
 # Locally calculated
-sha256  c3369c89eab4e452bbc76c630e5dccb6c0ae588c0175b6c8549aa0241deb06ef  xlnx_rebase_v2.10_2024.1.tar.gz
 sha256  a45390c9e1d584a389abd37ee49dce3f8d3b41718b1fd7c977608b5387a38955  xlnx_rebase_v2.10_2024.2.tar.gz
board/xilinx/patches/linux/linux.hash +0 -1
index 6f269e1c71..41bf2141fb 100644
@@ -1,3 +1,2 @@
 # Locally calculated
-sha256  6415cfcfd74e943d6ae44f6c1edcae09bf6cd89410b03c4290bf1464a8368f84  xlnx_rebase_v6.6_LTS_merge_6.6.40.tar.gz
 sha256  8ebbbe2d40597d9a5f36d47a1dfe4caffcef3d9f5ffa059ed4504bb761282593  xlnx_rebase_v6.6_LTS_2024.2.tar.gz
board/xilinx/patches/uboot/uboot.hash +0 -1
index 1fb12d1a11..de0e6adad1 100644
@@ -1,3 +1,2 @@
 # Locally calculated
-sha256  58e391a001d9d8ed347ab3258ff7c8435c866b1ff2b2c22ebc95af592444c0f5  xlnx_rebase_v2024.01_2024.1.tar.gz
 sha256  f1a86ccdbe60bac89177a24bbfd56fc6e8e67823669f0997de563c3cc0ea4dd1  xlnx_rebase_v2024.01_2024.2.tar.gz
board/xilinx/patches/xilinx-prebuilt/xilinx-prebuilt.hash +0 -1
index 3bd33a29a0..fe6963872c 100644
@@ -1,3 +1,2 @@
 # Locally calculated
-sha256  7abcba4e0e44e3a4adf9c1f971d918575226d7604dfd64a386baaa00c1c6c35f  xilinx-prebuilt-xilinx_v2024.1.tar.gz
 sha256  ef61a4b249ecbf632a25cc34c3b03b8290be44397ff739467ac92ec1701e23bf  xilinx-prebuilt-xilinx_v2024.2.tar.gz
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw
In reply to Neal Frager via buildroot
Quoted 7 lines · Neal Frager via buildroot

This patch bumps the zynqmp_kria_kd240_defconfig to xilinx-v2024.2 which includes the following updates:

- ATF v2.10
- Linux v6.6.40
- U-Boot v2024.01

Quoted 7 lines

The board specific u-boot patch for the kd240 is no longer necessary, as it is included with the xilinx-v2024.2 release tag.

The following patch has thus been removed:
board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch

Series applied to next, thanks.

Quoted 154 lines
---
 ...arm64-zynqmp-Enable-usb3-for-k24-som.patch | 81 -------------------
 configs/zynqmp_kria_kd240_defconfig           |  8 +-
 2 files changed, 4 insertions(+), 85 deletions(-)
 delete mode 100644 

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -1
deleted file mode 100644
index 0cc10d344e..0000000000
--- 

a/board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch +++ /dev/null

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -6
@@ -1,81 +0,0 @@
-From 73c99c29508d7adfe11b6a81f13cf00efab5f9de Mon Sep 17 00:00:00 2001
-From: Neal Frager <[email protected]>
-Date: Tue, 4 Jun 2024 09:15:23 +0100
-Subject: [PATCH] arm64: zynqmp: Enable usb3 for k24 som
-
-This patch corrects the mio and pll configuration registers for using 

usb3
-on the kd240 starter kit. Without this patch, the usb3 to sd card bridge does
-not initialize correctly and u-boot is unable to find the OS located on the

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -3
-kd240 starter kit sd card.
-
-In addition, this patch correctly configures mio76 and mio77 as gpio 

pins

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -4
-which are used as reset gpio pins on the kd240 starter kit.
-
-Signed-off-by: Neal Frager <[email protected]>
-Upstream: 

https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
----
- .../zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c | 23
++++++++-----------
- 1 file changed, 10 insertions(+), 13 deletions(-)

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -2
-
-diff --git a/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c 

b/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -15
-index 166e61431b..274203ffaa 100644
---- a/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c
-+++ b/board/xilinx/zynqmp/zynqmp-sm-k24-revA/psu_init_gpl.c
-@@ -528,8 +528,8 @@ static unsigned long psu_mio_init_data(void)
- 	psu_mask_write(0xFF180124, 0x000000FEU, 0x00000002U);
- 	psu_mask_write(0xFF180128, 0x000000FEU, 0x00000002U);
- 	psu_mask_write(0xFF18012C, 0x000000FEU, 0x00000002U);
--	psu_mask_write(0xFF180130, 0x000000FEU, 0x000000C0U);
--	psu_mask_write(0xFF180134, 0x000000FEU, 0x000000C0U);
-+	psu_mask_write(0xFF180130, 0x000000FEU, 0x00000000U);
-+	psu_mask_write(0xFF180134, 0x000000FEU, 0x00000000U);
- 	psu_mask_write(0xFF180204, 0xFFFFFFFFU, 0x50000000U);
- 	psu_mask_write(0xFF180208, 0xFFFFFFFFU, 0x00B02020U);
- 	psu_mask_write(0xFF18020C, 0x00003FFFU, 0x00000FC0U);
-@@ -569,21 +569,16 @@ static unsigned long 

psu_peripherals_init_data(void)

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -25
- 	psu_mask_write(0xFD1A0100, 0x0001807CU, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x001A0000U, 0x00000000U);
- 	psu_mask_write(0xFF5E023C, 0x0093C018U, 0x00000000U);
--	psu_mask_write(0xFF5E0230, 0x00000008U, 0x00000000U);
-+	psu_mask_write(0xFF5E0230, 0x00000002U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00000001U, 0x00000000U);
- 	psu_mask_write(0xFF180390, 0x00000004U, 0x00000004U);
- 	psu_mask_write(0xFF5E023C, 0x00000400U, 0x00000000U);
--	psu_mask_write(0xFF5E0238, 0x00000040U, 0x00000000U);
--	psu_mask_write(0xFF180310, 0x00008000U, 0x00000000U);
--	psu_mask_write(0xFF180320, 0x33840000U, 0x02840000U);
--	psu_mask_write(0xFF18031C, 0x7FFE0000U, 0x64500000U);
--	psu_mask_write(0xFF180358, 0x00000008U, 0x00000008U);
--	psu_mask_write(0xFF180324, 0x03C00000U, 0x00000000U);
-+	psu_mask_write(0xFF5E0238, 0x00000080U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00000400U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00008000U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00000010U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00007800U, 0x00000000U);
--	psu_mask_write(0xFF5E0238, 0x00000004U, 0x00000000U);
-+	psu_mask_write(0xFF5E0238, 0x00000006U, 0x00000000U);
- 	psu_mask_write(0xFF5E0238, 0x00040000U, 0x00000000U);
- 	psu_mask_write(0xFF4B0024, 0x000000FFU, 0x000000FFU);
- 	psu_mask_write(0xFFCA5000, 0x00001FFFU, 0x00000000U);
-@@ -591,13 +586,15 @@ static unsigned long 

psu_peripherals_init_data(void)

board/zynqmp/kria/kd240/patches/uboot/0001-arm64-zynqmp-Enable-usb3-for-k24-som.patch deleted +0 -21
- 	psu_mask_write(0xFFA60040, 0x80000000U, 0x80000000U);
- 	psu_mask_write(0xFF260020, 0xFFFFFFFFU, 0x05F5DD18U);
- 	psu_mask_write(0xFF260000, 0x00000001U, 0x00000001U);
--	psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000202U);
-+	psu_mask_write(0xFF0A0284, 0x03FFFFFFU, 0x01000000U);
-+	psu_mask_write(0xFF0A0288, 0x03FFFFFFU, 0x01000000U);
-+	psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0100U);
-
- 	mask_delay(1);
--	psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000002U);
-+	psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0000U);
-
- 	mask_delay(5);
--	psu_mask_write(0xFF5E0250, 0x00000F0FU, 0x00000202U);
-+	psu_mask_write(0xFF0A0014, 0x03FF03FFU, 0x02FF0100U);
-
- 	return 1;
- }
---
-2.25.1
-
configs/zynqmp_kria_kd240_defconfig +0 -1
index 8cbc172a41..d47c3e27e5 100644
@@ -1,13 +1,13 @@
 BR2_aarch64=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6=y
-BR2_GLOBAL_PATCH_DIR="board/zynqmp/kria/kd240/patches 

board/xilinx/patches"
+BR2_GLOBAL_PATCH_DIR="board/xilinx/patches"
BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_ROOTFS_POST_BUILD_SCRIPT="board/zynqmp/post-build.sh
board/zynqmp/kria/kd240/kd240.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/zynqmp/post-image.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="ttyPS1,115200 sda2 ${UBOOT_DIR}"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
-BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_merge_6.6.40)/xlnx_rebase_v6.6_LTS_merge_6.6.40.tar.gz" +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,linux-xlnx,xlnx_rebase_v6.6_LTS_2024.2)/xlnx_rebase_v6.6_LTS_2024.2.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="xilinx"
BR2_LINUX_KERNEL_DTS_SUPPORT=y

BR2_LINUX_KERNEL_INTREE_DTS_NAME="xilinx/zynqmp-smk-k24-revA-sck-kd-g-revA"

configs/zynqmp_kria_kd240_defconfig +0 -1
@@ -17,14 +17,14 @@ BR2_TARGET_ROOTFS_EXT2_4=y
 # BR2_TARGET_ROOTFS_TAR is not set
 BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
 BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL=y
-BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call 

github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.1)/xlnx_rebase_v2.10_2024.1.tar.gz" +BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,arm-trusted-firmware,xlnx_rebase_v2.10_2024.2)/xlnx_rebase_v2.10_2024.2.tar.gz"
BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="zynqmp" BR2_TARGET_ARM_TRUSTED_FIRMWARE_BL31_UBOOT=y

BR2_TARGET_ARM_TRUSTED_FIRMWARE_ADDITIONAL_VARIABLES="ZYNQMP_CONSOLE=cadence1"
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
-BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.1)/xlnx_rebase_v2024.01_2024.1.tar.gz" +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,Xilinx,u-boot-xlnx,xlnx_rebase_v2024.01_2024.2)/xlnx_rebase_v2024.01_2024.2.tar.gz"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="xilinx_zynqmp_kria" BR2_TARGET_UBOOT_NEEDS_DTC=y
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
--
2.25.1

Quoted 4 lines

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

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