6f9431c3ad
This patch adds support for Xilinx Kria KD240 starter kit. KD240 features can be found here: https://www.xilinx.com/products/som/kria/kd240-drives-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. 3. The KD240 has a USB to SD card bridge, so the Linux kernel and file system are found on /dev/sda1 and /dev/sda2. 4. The following patches have been submitted upstream to u-boot. Without these patches, the usb, sd card and ethernet peripherals do not work correctly. https://patchwork.ozlabs.org/project/uboot/patch/20231213134007.2818069-1-neal.frager@amd.com/ https://patchwork.ozlabs.org/project/uboot/patch/20231213134052.2818879-1-neal.frager@amd.com/ Signed-off-by: Neal Frager <neal.frager@amd.com> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com> [Peter: add upstream tag, drop patch numbering from patches] Signed-off-by: Peter Korsgaard <peter@korsgaard.com> |
||
---|---|---|
.. | ||
kria | ||
patches/arm-trusted-firmware | ||
zcu102 | ||
zcu104 | ||
zcu106 | ||
genimage.cfg | ||
post-build.sh | ||
post-image.sh | ||
readme.txt |
readme.txt
*************************************************** Xilinx ZCU102 / ZCU104 / ZCU106 boards - ZynqMP SoC *************************************************** This document describes the Buildroot support for the ZCU102, ZCU104 and ZCU106 boards by Xilinx, based on the Zynq UltraScale+ MPSoC (aka ZynqMP). It has been tested with the ZCU102 and ZCU106 production boards. Evaluation board features can be found here with the links below. ZCU102: https://www.xilinx.com/products/boards-and-kits/zcu102.html ZCU104: https://www.xilinx.com/products/boards-and-kits/zcu104.html ZCU106: https://www.xilinx.com/products/boards-and-kits/zcu106.html How to build it =============== Configure Buildroot: (use the command for the specific board) $ make zynqmp_zcu102_defconfig $ make zynqmp_zcu104_defconfig $ make zynqmp_zcu106_defconfig Compile everything and build the rootfs image: $ make Result of the build ------------------- After building, you should get a tree like this: output/images/ +-- atf-uboot.ub +-- bl31.bin +-- boot.bin +-- boot.vfat +-- Image +-- rootfs.ext2 +-- rootfs.ext4 -> rootfs.ext2 +-- sdcard.img +-- system.dtb -> zynqmp-zcu106-revA.dtb +-- u-boot.itb `-- zynqmp-zcu106-revA.dtb How to write the SD card ======================== WARNING! This will destroy all the card content. Use with care! The sdcard.img file is a complete bootable image ready to be written on the boot medium. To install it, simply copy the image to an SD card: # dd if=output/images/sdcard.img of=/dev/sdX Where 'sdX' is the device node of the SD. Eject the SD card, insert it in the board, and power it up.