Initial Commit
- initial default booting image
This commit is contained in:
106
boot/xilinx-prebuilt/Config.in
Normal file
106
boot/xilinx-prebuilt/Config.in
Normal file
@@ -0,0 +1,106 @@
|
||||
menuconfig BR2_TARGET_XILINX_PREBUILT
|
||||
bool "xilinx-prebuilt"
|
||||
help
|
||||
Pre-built firmware files for Xilinx boards.
|
||||
|
||||
The pre-built firmware applications will only be installed
|
||||
if they are not being built by the xilinx-embeddedsw
|
||||
package.
|
||||
|
||||
Users can mix and match applications to build with
|
||||
xilinx-embeddedsw and applications to simply install with
|
||||
xilinx-prebuilt.
|
||||
|
||||
https://github.com/Xilinx/soc-prebuilt-firmware
|
||||
|
||||
if BR2_TARGET_XILINX_PREBUILT
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_VERSION
|
||||
string "prebuilt version"
|
||||
default "xilinx_v2026.1"
|
||||
help
|
||||
Release version of Xilinx firmware.
|
||||
Must be xilinx_v2023.1 or newer.
|
||||
|
||||
choice
|
||||
bool "family variant"
|
||||
default BR2_TARGET_XILINX_PREBUILT_VERSAL if BR2_PACKAGE_VERSAL_FIRMWARE # legacy
|
||||
default BR2_TARGET_XILINX_PREBUILT_VERSAL if BR2_cortex_a72
|
||||
default BR2_TARGET_XILINX_PREBUILT_VERSAL2 if BR2_cortex_a78
|
||||
default BR2_TARGET_XILINX_PREBUILT_ZYNQMP
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_ZYNQMP
|
||||
bool "zynqmp"
|
||||
depends on BR2_cortex_a53
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_KRIA
|
||||
bool "kria"
|
||||
depends on BR2_cortex_a53
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_VERSAL
|
||||
bool "versal"
|
||||
depends on BR2_cortex_a72
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_VERSAL2
|
||||
bool "versal2"
|
||||
depends on BR2_cortex_a78
|
||||
help
|
||||
Version must be xilinx_v2025.2 or newer.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
bool "download a prebuilt Versal XSA"
|
||||
depends on BR2_TARGET_XILINX_PREBUILT_VERSAL || BR2_TARGET_XILINX_PREBUILT_VERSAL2
|
||||
help
|
||||
The Xilinx Support Archive (XSA) provides custom Xilinx
|
||||
firmware files generated by the AMD Vivado Design Suite.
|
||||
This option applies to either versal or versal2.
|
||||
|
||||
https://docs.amd.com/r/en-US/ug1400-vitis-embedded/Creating-a-Hardware-Design-XSA-File
|
||||
|
||||
if BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA_LOCATION
|
||||
string "URL of custom XSA"
|
||||
help
|
||||
This option allows to specify a URL pointing to an XSA source
|
||||
file. This URL can use any protocol recognized by Buildroot,
|
||||
like http://, ftp://, file:// or scp://.
|
||||
|
||||
When pointing to a local XSA using file:// or simply the
|
||||
local path, you may want to use a make variable like
|
||||
$(TOPDIR) to reference the root of the Buildroot tree.
|
||||
|
||||
This option applies to either versal or versal2.
|
||||
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_VERSAL_PLD_PDI
|
||||
bool "install versal pld.pdi"
|
||||
depends on BR2_TARGET_XILINX_PREBUILT_VERSAL || BR2_TARGET_XILINX_PREBUILT_VERSAL2
|
||||
help
|
||||
When using the Versal Segmented Configuration, there is a
|
||||
pld.pdi file containing the FPGA bitstream which can be
|
||||
loaded at run-time. By enabling this option, the pld.pdi
|
||||
will be installed to the target /lib/firmware/xilinx dir.
|
||||
This option applies to either versal or versal2.
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_FAMILY
|
||||
string
|
||||
default "zynqmp" if BR2_TARGET_XILINX_PREBUILT_ZYNQMP
|
||||
default "kria" if BR2_TARGET_XILINX_PREBUILT_KRIA
|
||||
default "versal" if BR2_TARGET_XILINX_PREBUILT_VERSAL
|
||||
default "versal_2ve_2vm" if BR2_TARGET_XILINX_PREBUILT_VERSAL2
|
||||
|
||||
config BR2_TARGET_XILINX_PREBUILT_BOARD
|
||||
string "board name"
|
||||
default "zcu102" if BR2_TARGET_XILINX_PREBUILT_ZYNQMP
|
||||
default "kr260" if BR2_TARGET_XILINX_PREBUILT_KRIA
|
||||
default "vck190" if BR2_TARGET_XILINX_PREBUILT_VERSAL
|
||||
default "vek385" if BR2_TARGET_XILINX_PREBUILT_VERSAL2
|
||||
help
|
||||
Name of Xilinx target board.
|
||||
Used for installing the appropriate firmware.
|
||||
|
||||
endif # BR2_TARGET_XILINX_PREBUILT
|
||||
143
boot/xilinx-prebuilt/xilinx-prebuilt.mk
Normal file
143
boot/xilinx-prebuilt/xilinx-prebuilt.mk
Normal file
@@ -0,0 +1,143 @@
|
||||
################################################################################
|
||||
#
|
||||
# xilinx-prebuilt
|
||||
#
|
||||
################################################################################
|
||||
|
||||
XILINX_PREBUILT_VERSION = $(call qstrip,$(BR2_TARGET_XILINX_PREBUILT_VERSION))
|
||||
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA),y)
|
||||
XILINX_PREBUILT_FILE = $(call qstrip,$(BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA_LOCATION))
|
||||
XILINX_PREBUILT_SITE = $(patsubst %/,%,$(dir $(XILINX_PREBUILT_FILE)))
|
||||
XILINX_PREBUILT_SOURCE = $(notdir $(XILINX_PREBUILT_FILE))
|
||||
ifeq ($(findstring ://,$(XILINX_PREBUILT_FILE)),)
|
||||
XILINX_PREBUILT_SITE_METHOD = file
|
||||
endif
|
||||
define XILINX_PREBUILT_EXTRACT_CMDS
|
||||
$(UNZIP) $(XILINX_PREBUILT_DL_DIR)/$(XILINX_PREBUILT_SOURCE) -d $(@D)
|
||||
endef
|
||||
else # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
XILINX_PREBUILT_SITE = $(call github,Xilinx,soc-prebuilt-firmware,$(XILINX_PREBUILT_VERSION))
|
||||
XILINX_PREBUILT_LICENSE = MIT
|
||||
XILINX_PREBUILT_LICENSE_FILES = LICENSE
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
|
||||
XILINX_PREBUILT_INSTALL_IMAGES = YES
|
||||
|
||||
XILINX_PREBUILT_FAMILY = $(call qstrip,$(BR2_TARGET_XILINX_PREBUILT_FAMILY))
|
||||
XILINX_PREBUILT_BOARD = $(call qstrip,$(BR2_TARGET_XILINX_PREBUILT_BOARD))
|
||||
|
||||
XILINX_PREBUILT_BOARD_DIR = $(@D)/$(XILINX_PREBUILT_BOARD)-$(XILINX_PREBUILT_FAMILY)
|
||||
|
||||
# Common Files for All Versal Families
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL)$(BR2_TARGET_XILINX_PREBUILT_VERSAL2),y)
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA),y)
|
||||
# Supports either plm.elf or plmfw.elf filenames
|
||||
XILINX_PREBUILT_PLM = $(@D)/pdi_files/gen_files/plm*.elf
|
||||
# We need the *.pdi glob, because the file has different names for the
|
||||
# different boards, and it has to be named boot.pdi when installed.
|
||||
# If Segmented Configuration is used, there will be two pdi files and we need
|
||||
# the file that has "_boot.pdi" in the filename.
|
||||
define XILINX_PREBUILT_INSTALL_VERSAL_XSA_BOOT_PDI
|
||||
$(INSTALL) -D -m 0644 \
|
||||
$(if $(wildcard $(@D)/*_boot.pdi), \
|
||||
$(@D)/*_boot.pdi, \
|
||||
$(@D)/*.pdi \
|
||||
) \
|
||||
$(BINARIES_DIR)/boot.pdi
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL_PLD_PDI),y)
|
||||
# Install pld.pdi in target file system for run-time loading when using
|
||||
# Versal Segmented Configuration.
|
||||
define XILINX_PREBUILT_INSTALL_VERSAL_XSA_PLD_PDI
|
||||
$(if $(wildcard $(@D)/*_pld.pdi),
|
||||
mkdir -p $(TARGET_DIR)/lib/firmware/xilinx && \
|
||||
$(INSTALL) -D -m 0644 $(@D)/*_pld.pdi \
|
||||
$(TARGET_DIR)/lib/firmware/xilinx
|
||||
)
|
||||
endef
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_PLD_PDI
|
||||
else # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
# Supports either plm.elf or plmfw.elf filenames
|
||||
XILINX_PREBUILT_PLM = $(XILINX_PREBUILT_BOARD_DIR)/plm*.elf
|
||||
# We need the *.pdi glob, because the file has different names for the
|
||||
# different boards, and it has to be named boot.pdi when installed.
|
||||
# If Segmented Configuration is used, there will be two pdi files and we need
|
||||
# the file that has "_boot.pdi" in the filename.
|
||||
define XILINX_PREBUILT_INSTALL_VERSAL_BOOT_PDI
|
||||
$(INSTALL) -D -m 0644 \
|
||||
$(if $(wildcard $(XILINX_PREBUILT_BOARD_DIR)/*_boot.pdi), \
|
||||
$(XILINX_PREBUILT_BOARD_DIR)/*_boot.pdi, \
|
||||
$(XILINX_PREBUILT_BOARD_DIR)/*.pdi \
|
||||
) \
|
||||
$(BINARIES_DIR)/boot.pdi
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL_PLD_PDI),y)
|
||||
# Install pld.pdi in target file system for run-time loading when using
|
||||
# Versal Segmented Configuration.
|
||||
define XILINX_PREBUILT_INSTALL_VERSAL_PLD_PDI
|
||||
$(if $(wildcard $(XILINX_PREBUILT_BOARD_DIR)/*_pld.pdi),
|
||||
mkdir -p $(TARGET_DIR)/lib/firmware/xilinx && \
|
||||
$(INSTALL) -D -m 0644 $(XILINX_PREBUILT_BOARD_DIR)/*_pld.pdi \
|
||||
$(TARGET_DIR)/lib/firmware/xilinx
|
||||
)
|
||||
endef
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_PLD_PDI
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
|
||||
ifneq ($(BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PLM),y)
|
||||
ifneq ($(BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL2_PLM),y)
|
||||
define XILINX_PREBUILT_INSTALL_VERSAL_PLM
|
||||
$(INSTALL) -D -m 0755 $(XILINX_PREBUILT_PLM) \
|
||||
$(BINARIES_DIR)/plm.elf
|
||||
endef
|
||||
endif # !BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL2_PLM
|
||||
endif # !BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PLM
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL | BR2_TARGET_XILINX_PREBUILT_VERSAL2
|
||||
|
||||
# Files specific to Versal Gen1
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL),y)
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA),y)
|
||||
# Unlike the psmfw.elf file for Xilinx development boards,
|
||||
# AMD Vivado Design Suite currently generates a file named psm_fw.elf.
|
||||
# Future versions of AMD Vivado will generate a file named psmfw.elf,
|
||||
# so to support current and future AMD Vivado versions, the filename
|
||||
# psm*fw.elf is used.
|
||||
XILINX_PREBUILT_PSMFW = $(@D)/pdi_files/static_files/psm*fw.elf
|
||||
else # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
XILINX_PREBUILT_PSMFW = $(XILINX_PREBUILT_BOARD_DIR)/psmfw.elf
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL_XSA
|
||||
|
||||
ifneq ($(BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PSMFW),y)
|
||||
define XILINX_PREBUILT_INSTALL_VERSAL_PSMFW
|
||||
$(INSTALL) -D -m 0755 $(XILINX_PREBUILT_PSMFW) \
|
||||
$(BINARIES_DIR)/psmfw.elf
|
||||
endef
|
||||
endif # !BR2_TARGET_XILINX_EMBEDDEDSW_VERSAL_PSMFW
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_VERSAL
|
||||
|
||||
ifeq ($(BR2_TARGET_XILINX_PREBUILT_KRIA)$(BR2_TARGET_XILINX_PREBUILT_ZYNQMP),y)
|
||||
ifneq ($(BR2_TARGET_XILINX_EMBEDDEDSW_ZYNQMP_PMUFW),y)
|
||||
define XILINX_PREBUILT_INSTALL_ZYNQMP_PMUFW
|
||||
$(INSTALL) -D -m 0755 $(XILINX_PREBUILT_BOARD_DIR)/pmufw.elf \
|
||||
$(BINARIES_DIR)/pmufw.elf
|
||||
endef
|
||||
endif # !BR2_TARGET_XILINX_EMBEDDEDSW_ZYNQMP_PMUFW
|
||||
endif # BR2_TARGET_XILINX_PREBUILT_KRIA | BR2_TARGET_XILINX_PREBUILT_ZYNQMP
|
||||
|
||||
define XILINX_PREBUILT_INSTALL_IMAGES_CMDS
|
||||
$(XILINX_PREBUILT_INSTALL_VERSAL_PLM)
|
||||
$(XILINX_PREBUILT_INSTALL_VERSAL_PSMFW)
|
||||
$(XILINX_PREBUILT_INSTALL_VERSAL_BOOT_PDI)
|
||||
$(XILINX_PREBUILT_INSTALL_VERSAL_XSA_BOOT_PDI)
|
||||
$(XILINX_PREBUILT_INSTALL_ZYNQMP_PMUFW)
|
||||
endef
|
||||
|
||||
define XILINX_PREBUILT_INSTALL_TARGET_CMDS
|
||||
$(XILINX_PREBUILT_INSTALL_VERSAL_PLD_PDI)
|
||||
$(XILINX_PREBUILT_INSTALL_VERSAL_XSA_PLD_PDI)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
5
boot/xilinx-prebuilt/xilinx_v2026.1/xilinx-prebuilt.hash
Normal file
5
boot/xilinx-prebuilt/xilinx_v2026.1/xilinx-prebuilt.hash
Normal file
@@ -0,0 +1,5 @@
|
||||
# Locally calculated
|
||||
sha256 6e02391f0dae67a46efc260729901da9c110b956880d0ff2617701f8b6cf0e1c xilinx-prebuilt-xilinx_v2026.1.tar.gz
|
||||
|
||||
# Locally calculated
|
||||
sha256 e4a8315687fbd55fc6bf0965c968bd95c8b73b8a957bb10b2ba618d5390b0e3a LICENSE
|
||||
Reference in New Issue
Block a user