Hi,
I'm still trying to build an image for the microzed 7010:
I followed instructions from here: Using Avnet Build Scripts to Build a PetaLinux BSP (2019.2 and earlier) , thank you narrucmot for the info. as well as UG1144.
The steps I think I need to do are:
To Build the 2020.1 BSP:
cd ~
mkdir -p git/avnet
cd git/avnet
git clone git://github.com/avnet/bdf.git -b master
git clone git://github.com/avnet/hdl.git -b 2020.1
git clone git://github.com/avnet/petalinux.git -b 2020.1
cd /home/stanley/git/avnet/petalinux/scripts
source /tools/Xilinx/Vivado/2020.1/settings64.sh
source ~/petalinux/settings.sh
vi /tools/Xilinx/Vivado/2020.1/bin/vivado # add "ulimit -s 16384"
./make_mz7010_fmccc.sh
Build a new project from the BSP:
cd ~/projects/petalinux
petalinux-create -t project -s ~/git/avnet/petalinux/projects/mz7010_fmccc_2020_1.bsp
cd mz7010_fmccc_2020_1/
petalinux-config --get-hw-description=~/git/avnet/hdl/Projects/mz_petalinux/MZ7010_FMCCC_2020_1 # for MZ7010_FMCCC.xsa
petalinux-config -c rootfs
petalinux-config -c kernel
petalinux-build
I eventually get the following error:
INFO: sourcing build tools
[INFO] building petalinux-image-minimal
[INFO] sourcing build environment
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-image-minimal
Loading cache: 100% |################################################################################################################################| Time: 0:00:01
Loaded 4259 entries from dependency cache.
Parsing recipes: 100% |##############################################################################################################################| Time: 0:02:03
Parsing of 2992 .bb files complete (2990 cached, 2 parsed). 4261 targets, 198 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |###########################################################################################################################| Time: 0:00:02
Checking sstate mirror object availability: 100% |###################################################################################################| Time: 0:00:10
Sstate summary: Wanted 125 Found 16 Missed 109 Current 880 (12% match, 89% complete)
NOTE: Executing Tasks
NOTE: Setscene tasks completed
ERROR: petalinux-image-minimal-1.0-r0 do_image_wic: No kickstart files from WKS_FILES were found: petalinux-image-minimal.mz7010-fmccc.wks petalinux-image-minimal.wks. Please set WKS_FILE or WKS_FILES appropriately.
ERROR: petalinux-image-minimal-1.0-r0 do_image_wic: Execution of '/home/stanley/projects/petalinux/mz7010_fmccc_2020_1/build/tmp/work/mz7010_fmccc-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/temp/run.do_image_wic.22626' failed with exit code 1:
WARNING: /home/stanley/projects/petalinux/mz7010_fmccc_2020_1/build/tmp/work/mz7010_fmccc-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/temp/run.do_image_wic.22626:1 exit 1 from 'exit 1'
ERROR: Logfile of failure stored in: /home/stanley/projects/petalinux/mz7010_fmccc_2020_1/build/tmp/work/mz7010_fmccc-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/temp/log.do_image_wic.22626
ERROR: Task (/home/stanley/projects/petalinux/mz7010_fmccc_2020_1/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3653 tasks of which 3652 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/stanley/projects/petalinux/mz7010_fmccc_2020_1/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_image_wic
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build petalinux-image-minimal
There are .wic files available such as avnet-image-minimal-mz7010-fmccc.wic and rootfs.wic, do I need to generate this ?
Also, it is not clear to me if building petalinux-image-minimal will include any apps created with:
petalinux-create -t apps --template c --name myapp --enable ?
Building avnet-image-minimal does build OK, but does not include myapp, am I on the right path please?
Kind Regards, Dave.