configs/zynqmp_kria_kr260_defconfig: new defconfig
PATCH v4 1/1 configs/zynqmp_kria_kr260_defconfig: new defconfig
This patch adds support for Xilinx Kria KR260 starter kit.
KR260 features can be found here:
https://www.xilinx.com/products/som/kria/kr260-robotics-starter-kit.html
While the Kria SOM is based on a ZynqMP SoC, there are some key boot config differences from the other ZynqMP evaluation boards.
1. There are no boot switches on Kria SOMs. The boot mode is thus hard configured for QSPI flash. A pre-programmed boot.bin comes with every Starter Kit. U-Boot can then find the Linux kernel and file system on the SD card.
Optional instructions for updating the boot.bin in the QSPI flash can be found in the readme.txt file and the link below.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513/Kria+K26+SOM
2. Kria SOMs use UART1 for the console instead of UART0. For this reason, Kria Starter Kits will use a separate extlinux.conf file from other ZynqMP evaluation boards.
---V1->V2:
- corrected Linux DTS name
- removed uboot patch which is already committed in 2022.2V2->V3:
- added DEVELOPERS updateV3->V4:
- added u-boot patch for CONFIG_MULTI_DTB_FIT build issue
--- DEVELOPERS | 3 +- board/zynqmp/kria/kr260/kr260.sh | 12 + board/zynqmp/kria/kr260/pm_cfg_obj.c | 493 +++++++++++++++++++++++++++ board/zynqmp/kria/readme.txt | 13 +- configs/zynqmp_kria_kr260_defconfig | 41 +++ 5 files changed, 556 insertions(+), 6 deletions(-) create mode 100755 board/zynqmp/kria/kr260/kr260.sh create mode 100644 board/zynqmp/kria/kr260/pm_cfg_obj.c create mode 100644 configs/zynqmp_kria_kr260_defconfig
DEVELOPERS +2 -1
@@ -2172,9 +2172,10 @@ F: board/zynqmp/ F: board/zynqmp/kria/ F: configs/versal_vck190_defconfig F: configs/zynq_zc706_defconfig +F: configs/zynqmp_kria_kr260_defconfig +F: configs/zynqmp_kria_kv260_defconfig F: configs/zynqmp_zcu102_defconfig F: configs/zynqmp_zcu106_defconfig -F: configs/zynqmp_kria_kv260_defconfig F: package/bootgen/ F: package/versal-firmware/
board/zynqmp/kria/kr260/kr260.sh new file +12 -0
@@ -0,0 +1,12 @@ +#!/bin/sh + +# This is a temporary work around for generating kr260 u-boot.itb. +# The problem is there is no way to currently configure u-boot to apply +# the carrier board dtb overlay during build, so all kr260 carrier board +# drivers are missing. +# This will be removed when u-boot can build the kr260 u-boot.itb natively. + +UBOOT_DIR=$4 + +fdtoverlay -o ${UBOOT_DIR}/fit-dtb.blob -i ${UBOOT_DIR}/arch/arm/dts/zynqmp-smk-k26-revA.dtb ${UBOOT_DIR}/arch/arm/dts/zynqmp-sck-kr-g-revB.dtbo +${UBOOT_DIR}/tools/mkimage -E -f ${UBOOT_DIR}/u-boot.its -B 0x8 ${BINARIES_DIR}/u-boot.itb
board/zynqmp/kria/kr260/pm_cfg_obj.c new file +493 -0
493 lines not on this page · raw message
board/zynqmp/kria/readme.txt +8 -5
@@ -3,14 +3,17 @@ Xilinx Kria SOM Starter Kits - ZynqMP SoC ************************************************** This document describes the Buildroot support for the Kria -KV260 starter kit by Xilinx, based on Kria SOM including the +KV260 and KR260 starter kits by Xilinx, based on Kria SOM including the Zynq UltraScale+ MPSoC (aka ZynqMP). It has been tested with -the KV260 production board. +the KV260 and KR260 production boards. -Evaluation board features can be found here with the link below. +Evaluation board features can be found here with the links below. KV260: -https://www.xilinx.com/products/boards-and-kits/kv260.html +https://www.xilinx.com/products/som/kria/kv260-vision-starter-kit.html + +KR260: +https://www.xilinx.com/products/som/kria/kr260-robotics-starter-kit.html How to build it ===============
@@ -65,7 +68,7 @@ in that the boot.bin and u-boot.itb files need to be flashed into the QSPI boot flash such that U-Boot can then load all of the remaining images from the SD card. -In addition, the KV260 Starter Kit QSPI comes pre-flashed with +In addition, the KV260 and KR260 Starter Kits QSPI comes pre-flashed with a utility designed to make updating the QSPI flash memory easier.
configs/zynqmp_kria_kr260_defconfig new file +41 -0
41 lines not on this page · raw message
Signature · 6 lines
2.17.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello everyone,
This patch is dependent on the following patch being committed first:
https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Quoted 9 lines
This patch adds support for Xilinx Kria KR260 starter kit.
KR260 features can be found here:
https://www.xilinx.com/products/som/kria/kr260-robotics-starter-kit.htmlWhile the Kria SOM is based on a ZynqMP SoC, there are some key boot config differences from the other ZynqMP evaluation boards.
1. There are no boot switches on Kria SOMs. The boot mode is thus hard configured for QSPI flash. A pre-programmed boot.bin comes with every Starter Kit. U-Boot can then find the Linux kernel and file system on the SD card.
Quoted 7 lines
Optional instructions for updating the boot.bin in the QSPI flash can be found in the readme.txt file and the link below.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513/Kria+K26+SOM
2. Kria SOMs use UART1 for the console instead of UART0. For this reason, Kria Starter Kits will use a separate extlinux.conf file from other ZynqMP evaluation boards.
Signed-off-by Neal Frager <[email protected]>
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 16 lines · On Thu, 22 Dec 2022 13:33:50 +0000 Neal Frager <[email protected]> wrote:
This patch adds support for Xilinx Kria KR260 starter kit.
KR260 features can be found here:
https://www.xilinx.com/products/som/kria/kr260-robotics-starter-kit.htmlWhile the Kria SOM is based on a ZynqMP SoC, there are some key boot config differences from the other ZynqMP evaluation boards.
1. There are no boot switches on Kria SOMs. The boot mode is thus hard configured for QSPI flash. A pre-programmed boot.bin comes with every Starter Kit. U-Boot can then find the Linux kernel and file system on the SD card.
Optional instructions for updating the boot.bin in the QSPI flash can be found in the readme.txt file and the link below.
Quoted 7 lines
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513/Kria+K26+SOM
2. Kria SOMs use UART1 for the console instead of UART0. For this reason, Kria Starter Kits will use a separate extlinux.conf file from other ZynqMP evaluation boards.
Signed-off-by Neal Frager <[email protected]>
Signature · 7 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello,
Quoted 21 lines · On Wed, 28 Dec 2022 09:56:26 +0100 Luca Ceresoli via buildroot…
Quoted 18 lines · On Thu, 22 Dec 2022 13:33:50 +0000 Neal Frager <[email protected]> wrote:
This patch adds support for Xilinx Kria KR260 starter kit.
KR260 features can be found here:
https://www.xilinx.com/products/som/kria/kr260-robotics-starter-kit.htmlWhile the Kria SOM is based on a ZynqMP SoC, there are some key boot config differences from the other ZynqMP evaluation boards.
1. There are no boot switches on Kria SOMs. The boot mode is thus hard configured for QSPI flash. A pre-programmed boot.bin comes with every Starter Kit. U-Boot can then find the Linux kernel and file system on the SD card.
Optional instructions for updating the boot.bin in the QSPI flash can be found in the readme.txt file and the link below.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513/Kria+K26+SOM
Quoted 7 lines
Quoted 5 lines
2. Kria SOMs use UART1 for the console instead of UART0. For this reason, Kria Starter Kits will use a separate extlinux.conf file from other ZynqMP evaluation boards.
Signed-off-by Neal Frager <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>
The dependency patch got applied to master, so this one should be clear to go.
Strange however, I can't find this one in patchwork.
Signature · 7 lines
Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Luca,
Quoted 32 lines · Luca Ceresoli
Hello,
Quoted 28 lines
On Wed, 28 Dec 2022 09:56:26 +0100
Luca Ceresoli via buildroot <[email protected]> wrote:Quoted 22 lines · On Thu, 22 Dec 2022 13:33:50 +0000 Neal Frager <[email protected]> wrote:
This patch adds support for Xilinx Kria KR260 starter kit.
KR260 features can be found here:
https://www.xilinx.com/products/som/kria/kr260-robotics-starter-kit.htmlWhile the Kria SOM is based on a ZynqMP SoC, there are some key boot config differences from the other ZynqMP evaluation boards.
1. There are no boot switches on Kria SOMs. The boot mode is thus hard configured for QSPI flash. A pre-programmed boot.bin comes with every Starter Kit. U-Boot can then find the Linux kernel and file system on the SD card.
Optional instructions for updating the boot.bin in the QSPI flash can be found in the readme.txt file and the link below.
https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/1641152513/Kria+K26+SOM
2. Kria SOMs use UART1 for the console instead of UART0. For this reason, Kria Starter Kits will use a separate extlinux.conf file from other ZynqMP evaluation boards.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Neal Frager <[email protected]>Reviewed-by Luca Ceresoli <[email protected]>The dependency patch got applied to master, so this one should be clear to go.
Strange however, I can't find this one in patchwork.
Yes, I took this patch down as I discovered another issue which is effecting only the kr260 starter kit.
On the kr260, the sd card interface is connected via a usb to sd card bridge.
The u-boot pinctrl driver is failing to configure the mio tri-state registers correctly which causes the sd card not to be detected in u-boot.
I am able to fix the problem by modifying the psu_init routine, but this is not a proper solution.
It could cause problems for people using the k26 som with their own daughter board since all kria based designs use the same psu_init_gpl.c.
I am working on identifying a proper solution before bringing this defconfig to buildroot with a v5 of the patch.
Quoted 5 lines
Signature · 4 lines
-- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Best regards,
Neal Frager
AMD
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot