Avnet / petalinux

Repository used to support automated builds under PetaLinux tools that use Yocto.
59 stars 20 forks source link

Building u96v2 BSP for 2022.1: xilinx-board.inc not found #56

Open TitechTraj opened 2 years ago

TitechTraj commented 2 years ago

Hi,

I am trying to build the latest u96v2 platform for Vitis 2022.1 to run the latest Vitis-AI 2.5. I cloned the repositories and started building the hardware, then when compiling petalinux, the project fails and in the log file I can read: ERROR: ParseError at /home/<project path>/u96v2_sbc_base_2022_1/project-spec/meta-avnet/conf/machine/u96v2-sbc.conf:10: Could not include required file conf/machine/include/xilinx-board.inc

I looked around online and couldn't find where this "xilinx-board.inc" file is. Is it supposed to be included in the petalinux installation directory, or in the meta-avnet downloaded repository? Can it be ignored or how can I fix this dependency issue?

Thank you!

TitechTraj commented 2 years ago

I think I didn't google enough before posting. The file is supposed to be in the meta-xilinx repository, however it seems to be removed in 2022.1 and replaced with xilinx-board-pre.inc and xilinx-board-post.inc which both are deprecated: https://github.com/Xilinx/meta-xilinx/tree/xlnx-rel-v2022.1/meta-xilinx-core/conf/machine/include

I will try to compile with removing the line "required file conf/machine/include/xilinx-board.inc" from the u96v2-sbc.conf file and see if any other errors might raise.

TitechTraj commented 2 years ago

The process runs now but there is a new error: ERROR: ultra96-startup-pages-1.0+gitAUTOINC+e692f5493f-r0 do_package: Didn't find service unit 'ultra96-startup-page.service', specified in SYSTEMD_SERVICE:ultra96-startup-pages. both when using avnet-image-minimal and avnet-image-full

I am not very familiar with petlinux, yocto or bitbake. By searching through the petalinux project, I could find the file in : ./components/yocto/layers/meta-petalinux/recipes-utils/ultra96-startup-pages/files/ultra96-startup-page.service but the error says it can't find it. Should there be a directive to specify where to look for it?

Thank you

pimartos commented 2 years ago

Hi @TitechTraj I was able to build the BSP using vanilla ubuntu 22.04, and vitis/vivado/petalinux 2022.1. I just needed to remove openAMP examples (openamp-fw-echo-testd; openamp-fw-mat-muld and openamp-fw-rpc-demo) from meta-avnet/recipes-core/images regards, Pedro