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