I'm having trouble getting the minized_sbc_base petalinux project to build.
Here are the steps I performed:
I cloned the three repos:
$ cd ~
$ mkdir -p git/avnet
$ cd git/avnet
$ git clone https://github.com/avnet/bdf.git
$ git clone https://github.com/avnet/hdl.git
$ git clone https://github.com/avnet/petalinux.git
And checked out the branches (bdf is ok at master):
$ cd hdl
$ git checkout 2021.2
$ cd ../petalinux
$ git checkout 2021.2
$ cd scripts
$ ./make_minized_sbc_base.sh
It creates and builds the vivado project just fine. Then is copies the .bit and .xsa as expected.
Here is the output of the script:
Importing hardware definition minized_sbc_base.xsa from HDL project folder ...
Importing hardware bitstream minized_sbc_base_wrapper.bit from HDL project folder...
[INFO] Sourcing buildtools
INFO: Getting hardware description...
INFO: Renaming minized_sbc_base.xsa to system.xsa
[INFO] Generating Kconfig for project
[INFO] Silentconfig project
[INFO] Extracting yocto SDK to components/yocto. This may take time!
[INFO] Sourcing build environment
[INFO] Generating kconfig for Rootfs
[INFO] Silentconfig rootfs
[INFO] Generating plnxtool conf
[INFO] Adding user layers
[INFO] Generating workspace directory
Patching PetaLinux project config ...
Tag 2021p2_minized_sbc_20210426_105325 not found. Cloning 2021.2 branch instead.
***WARNING: This may result in build mismatch!***
Stop (<ctrl>-c) in the next 5 seconds if this is not OK.
Pause here for 5 seconds
Clone meta-avnet layer and checkout 2021.2 branch
Cloning into 'project-spec/meta-avnet'...
remote: Enumerating objects: 2704, done.
remote: Counting objects: 100% (1266/1266), done.
remote: Compressing objects: 100% (685/685), done.
remote: Total 2704 (delta 721), reused 947 (delta 504), pack-reused 1438
Receiving objects: 100% (2704/2704), 7.76 MiB | 5.85 MiB/s, done.
Resolving deltas: 100% (1326/1326), done.
Setting cache (sstate and download) path (/home/dev/test/petalinux/projects/cache) ...
[INFO] Sourcing buildtools
[INFO] Silentconfig project
[INFO] Sourcing build environment
[INFO] Generating kconfig for Rootfs
[INFO] Silentconfig rootfs
[INFO] Generating plnxtool conf
[INFO] Adding user layers
[INFO] Generating workspace directory
[INFO] Successfully configured project
Modifying project config for INITRD boot support...
[INFO] Sourcing buildtools
[INFO] Silentconfig project
[INFO] Sourcing build environment
[INFO] Generating kconfig for Rootfs
[INFO] Silentconfig rootfs
[INFO] Generating plnxtool conf
[INFO] Generating workspace directory
[INFO] Successfully configured project
Building project...
[INFO] Sourcing buildtools
[INFO] Building avnet-image-full
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake avnet-image-full
NOTE: Started PRServer with DBfile: /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 39873, PID: 2629570
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##########################################################################| Time: 0:03:32
Parsing of 3513 .bb files complete (0 cached, 3513 parsed). 5170 targets, 278 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Fetching uninative binary shim file:///home/dev/test/petalinux/projects/minized_sbc_base_2021_2/components/yocto/downloads/uninative/5ec5a9276046e7eceeac749a18b175667384e1f445cd4526300a41404d985a5b/x86_64-nativesdk-libc.tar.xz;sha256sum=5ec5a9276046e7eceeac749a18b175667384e1f445cd4526300a41404d985a5b (will check PREMIRRORS first)
Initialising tasks: 100% |######################################################################################################| Time: 0:00:09
Checking sstate mirror object availability: 100% |###############################################################################################################################| Time: 0:00:47
Sstate summary: Wanted 2138 Found 1662 Missed 476 Current 0 (77% match, 0% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6336 tasks of which 2845 didn't need to be rerun and all succeeded.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built avnet-image-full
[INFO] Sourcing buildtools
INFO: Getting system flash information...
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/zynq_fsbl.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/project-spec/hw-description/minized_sbc_base.bit"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/u-boot.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/system.dtb"
INFO: Generating zynq binary package BOOT.BIN...
****** Xilinx Bootgen v2021.2
**** Build date : Sep 30 2021-06:08:18
** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.
[INFO] : Bootimage generated successfully
INFO: Binary is ready.
WARNING: Unable to access the TFTPBOOT folder /tftpboot!!!
WARNING: Skip file copy to TFTPBOOT folder!!!
[INFO] Sourcing buildtools
INFO: Getting system flash information...
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/zynq_fsbl.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/system.bit"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/u-boot.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/system.dtb"
INFO: Generating zynq binary package BOOT.BIN...
****** Xilinx Bootgen v2021.2
**** Build date : Sep 30 2021-06:08:18
** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.
[INFO] : Bootimage generated successfully
INFO: Binary is ready.
WARNING: Unable to access the TFTPBOOT folder /tftpboot!!!
WARNING: Skip file copy to TFTPBOOT folder!!!
Modifying project config for INITRD boot support...
[INFO] Sourcing buildtools
[INFO] Silentconfig project
[INFO] Sourcing build environment
[INFO] Generating kconfig for Rootfs
[INFO] Silentconfig rootfs
[INFO] Generating plnxtool conf
[INFO] Generating workspace directory
[INFO] Successfully configured project
Building project...
[INFO] Sourcing buildtools
[INFO] Building avnet-image-full
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake avnet-image-full
NOTE: Started PRServer with DBfile: /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 34731, PID: 144671
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################################################################################| Time: 0:01:56
Parsing of 3513 .bb files complete (0 cached, 3513 parsed). 5170 targets, 278 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################################################################################################################################| Time: 0:00:18
Sstate summary: Wanted 298 Found 251 Missed 47 Current 1825 (84% match, 97% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 6293 tasks of which 5596 didn't need to be rerun and all succeeded.
INFO: Failed to copy built images to tftp dir: /tftpboot
[INFO] Successfully built avnet-image-full
[INFO] Sourcing buildtools
INFO: Getting system flash information...
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/zynq_fsbl.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/project-spec/hw-description/minized_sbc_base.bit"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/u-boot.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/system.dtb"
INFO: Generating zynq binary package BOOT.BIN...
****** Xilinx Bootgen v2021.2
**** Build date : Sep 30 2021-06:08:18
** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.
[INFO] : Bootimage generated successfully
INFO: Binary is ready.
WARNING: Unable to access the TFTPBOOT folder /tftpboot!!!
WARNING: Skip file copy to TFTPBOOT folder!!!
[INFO] Sourcing buildtools
INFO: Getting system flash information...
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/zynq_fsbl.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/system.bit"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/u-boot.elf"
INFO: File in BOOT BIN: "/home/dev/test/petalinux/projects/minized_sbc_base_2021_2/images/linux/system.dtb"
INFO: Generating zynq binary package BOOT.BIN...
****** Xilinx Bootgen v2021.2
**** Build date : Sep 30 2021-06:08:18
** Copyright 1986-2021 Xilinx, Inc. All Rights Reserved.
[INFO] : Bootimage generated successfully
INFO: Binary is ready.
WARNING: Unable to access the TFTPBOOT folder /tftpboot!!!
WARNING: Skip file copy to TFTPBOOT folder!!!
Modifying project config for EXT4 boot support...
[INFO] Sourcing buildtools
[INFO] Silentconfig project
[INFO] Sourcing build environment
[INFO] Generating kconfig for Rootfs
[INFO] Silentconfig rootfs
[INFO] Generating plnxtool conf
[INFO] Generating workspace directory
[INFO] Successfully configured project
Building project...
[INFO] Sourcing buildtools
[INFO] Building avnet-image-full
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake avnet-image-full
NOTE: Started PRServer with DBfile: /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 34333, PID: 215614
Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################################################################################| Time: 0:01:54
Parsing of 3513 .bb files complete (0 cached, 3513 parsed). 5170 targets, 278 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'u-boot' (but /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb DEPENDS on or otherwise requires it)
u-boot was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-xlnx, not u-boot
ERROR: Required build target 'avnet-image-full' has no buildable providers.
Missing or unbuildable dependency chain was: ['avnet-image-full', 'virtual/boot-bin', 'u-boot']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build avnet-image-full. Check the /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/build/build.log file for more details...
[INFO] Sourcing buildtools
[INFO] Building avnet-image-full
[INFO] Sourcing build environment
[INFO] Generating workspace directory
INFO: bitbake avnet-image-full
NOTE: Started PRServer with DBfile: /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/build/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 34819, PID: 216273
Loading cache: 100% |############################################################################################################################################################| Time: 0:00:01
Loaded 5165 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################################################################################| Time: 0:00:01
Parsing of 3513 .bb files complete (3508 cached, 5 parsed). 5170 targets, 278 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing PROVIDES 'u-boot' (but /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/components/yocto/layers/meta-xilinx/meta-xilinx-bsp/recipes-bsp/bootbin/xilinx-bootbin_1.0.bb DEPENDS on or otherwise requires it)
u-boot was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-xlnx, not u-boot
ERROR: Required build target 'avnet-image-full' has no buildable providers.
Missing or unbuildable dependency chain was: ['avnet-image-full', 'virtual/boot-bin', 'u-boot']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build avnet-image-full. Check the /home/dev/test/petalinux/projects/minized_sbc_base_2021_2/build/build.log file for more details...
________________________________________
Since I'm using the stuff directly from the avnet git repo I'm not sure why I'm getting errors and could use a little help in figuring out why I have a "Missing or unbuildable dependency chain was: ['avnet-image-full', 'virtual/boot-bin', 'u-boot']".
Any help would be appreciated.
Thanks.