News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

zsys_wrapper.bit is missing during PetaLinux build process

Started by DavidElSaig, October 05, 2021, 02:46:50 PM

Previous topic - Next topic

DavidElSaig

Hello,

I am trying to build Petalinux 2020.2 for the TE0715-04-30-1C module using a CentOS 7 based docker image with Vitis 2020.2 already installed.
Everything seems to go well, and I didn't see any errors. But then when I reach the packaging stage I notice that the bit file for the --fpga option is missing. I was advised it would be either at /images/linux/system.bit or at project-spec/hw-description/zsys_wrapper.bit but none are found in fact "find . -iname '*.bit'" returns nothing so no bit files are generated at all.

What I have done:

./petalinux-v2020.2-final-installer.run --dir ~/petalinux20202 --platform "arm"
. ~/petalinux20202/settings.sh
mkdir ~/petalinux_2020_2_trenz
cd ~/petalinux_2020_2_trenz
cp /data/trenz_te0715_04_30_1c_base_202020_2.zip ~/petalinux_2020_2_trenz
unzip trenz_te0715_04_30_1c_base_202020_2.zip
petalinux-create -t project --template zynq --name petalinux
cd petalinux
petalinux-config --get-hw-description=../trenz_te0715_04_30_1c_base_202020_2/hw/
echo 'OE_TERMINAL = "screen"' >> project-spec/meta-user/conf/petalinuxbsp.conf
petalinux-config -c kernel
# go to Device Drivers > Staging devices, and set "Xilinx PL clock enabler" to built-in

(
cat <<'EOF'
/include/ "system-conf.dtsi"
/ {
    fclk0: fclk0 {
    status = "okay";
    compatible = "xlnx,fclk";
    clocks = <&clkc 15>;
    };
};

&amba {
  zyxclmm_drm {
    compatible = "xlnx,zocl";
    status = "okay";
  };
};
EOF
) > project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

echo 'EXTRA_IMAGE_FEATURES = "debug-tweaks"' >> project-spec/meta-user/conf/petalinuxbsp.conf
echo 'IMAGE_AUTOLOGIN = "1"' >> project-spec/meta-user/conf/petalinuxbsp.conf

echo 'CONFIG_opencl-clhpp-dev' >> project-spec/meta-user/conf/user-rootfsconfig
echo 'CONFIG_opencl-headers-dev' >> project-spec/meta-user/conf/user-rootfsconfig
echo 'CONFIG_xrt' >> project-spec/meta-user/conf/user-rootfsconfig
echo 'CONFIG_zocl' >> project-spec/meta-user/conf/user-rootfsconfig

petalinux-config -c rootfs
# set everything in the user packages group to built-in

petalinux-build
petalinux-package --boot --fsbl ./images/linux/zynq_fsbl.elf --fpga ./images/linux/system.bit --u-boot --force


At the end petalinux-package fails with a file doesn't exist message.
As I understand the petalinux-config --get-hw-description command should've generated the bit file. I've atached my config.log from after it was called.
The trenz_te0715_04_30_1c_base_202020_2.zip file was prepared by my colleague and it works for him. Let me know if I should attach that as well.

I must be missing some step, but I'm not sure why. Can you help?

Thanks,
David

JH

Hi,
it depends how your colleague has created the xsa file. you can create it with or without bitstream included. If bitstream is included, that all files will normally extracted with your run "petalinux-config --get-hw-description"

br
John