Hi,
I am new to this, but basically: has anyone successfully build a bootable image for the microZed using PetaLinux 2020.1?
Here is what I am doing, and this process DOES work for 2019.2, or at least does using a "borrowed" .hdf archive resulting in a bootable image.
However, I am using Viitis 2020.1, hence I need to use Petalinux 2020.1 because of the .xsa archive.
I am also referencing UG1144 for 2020.1.
source ~/petalinux/settings.sh
mkdir ~/projects
cd ~/projects
petalinux-create -t project -s ../zynq/mz7010_fmccc_2019_1/mz7010_fmccc_2019_1.bsp
cd mz7010_fmccc_2019_1/
touch project-spec/meta-user/conf/user-rootfsconfig
sed -i 's/thud/zeus/' project-spec/meta-user/conf/layer.conf # change thud to zeus
sed -i 's/plnx-zynq7/zynq-generic/' project-spec/configs/config # plnx-zynq7 is not used anymore, use zynq-generic
cp windows-share/design_1_wrapper.xsa . # Use XSA from Vivado 2020.1, basic platform with Zynq7 PS as per UG1144
petalinux-config -c rootfs
petalinux-config -c kernel # I don't think I need to do this to create a bootable image
petalinux-config --get-hw-description=.
petalinux-build
and it fails, near the end of the run, with
| *** Can't find default configuration "arch/../configs/zynq_zc702_defconfig"!
which is odd, because I have not specified zc702 anywhere, I am using "template" as specified in UG1144 page 118.
And as I stated above, a similar procedure worked for PetaLinux 2019.2 with the DSG config set to "template".
Oh, and if I do:
petalinux-config --get-hw-description=. --defconfig=~/git/buildroot/configs/zynq_microzed_defconfig
where defconfig is borrowed from buildroot, it is seemingly ignored and still fails with the same error.
Maybe Petalinux 2020.1 will only work with a zc702, in which case why won't it find the defconfig file? Confused!
Any ideas please?
Thanks,
Dave
PS a more concise output of the fail:
| gcc -isystem/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/lib -L/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/lib -Wl,--enable-new-dtags -Wl,-rpath-link,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/lib -Wl,-rpath-link,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/lib -Wl,-rpath,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/lib -Wl,-rpath,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/lib -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2 -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o
| scripts/kconfig/conf --defconfig=arch/../configs/zynq_zc702_defconfig Kconfig
| ***
| *** Can't find default configuration "arch/../configs/zynq_zc702_defconfig"!
| ***