Because there is limited QSPI Flash size, you need to shrink the rootfs size so that the rootfs can be packed into 16 MB QSPI Flash. If in your system you have larger QSPI Flash, this step can be skipped.
Use your preferred editor to open the rootfs_config file in the <PetaLinux Project>/project-spec/configs directory.
Comment the following lines:
CONFIG_imagefeature-hwcodecs=y CONFIG_can-utils=y
Save the file and quit the text editor.
Run petalinux-config -c rootfs –silentconfig to update the rootfs configuration