my Compile environment is ubuntun18.4+vitis 2020.1+petalinux 2020.1,
my hardware is AVET's UltraZed PCIe Carrier Card ,
my BSP package is uz3eg_pciec_2020_1.tar.
After I created ,configed the BSP,
As I compiled the BSP with petalinux-build, below is log for error:
lance@ubuntu:~$ petalinux-create -t project -s uz3eg_bsp/uz3eg_pciec_2020_1.bsp
INFO: Create project:
INFO: Projects:
INFO: * uz3eg_pciec_2020_1
INFO: has been successfully installed to /home/lance/
INFO: New project successfully created in /home/lance/
lance@ubuntu:~$ ls
Desktop Downloads Music Public uz3eg_bsp Videos vitis_pid35289.str xrc.log
Documents examples.desktop Pictures Templates uz3eg_pciec_2020_1 vitis_pid22268.str workspace
lance@ubuntu:~$ cd uz3eg_pciec_2020_1/
lance@ubuntu:~/uz3eg_pciec_2020_1$ ls
components config.project hardware pre-built project-spec
lance@ubuntu:~/uz3eg_pciec_2020_1$ petalinux-build
INFO: sourcing build tools
[INFO] building project
[INFO] generating Kconfig for project
[INFO] silentconfig project
[INFO] extracting yocto SDK to components/yocto
[INFO] sourcing build environment
[INFO] generating kconfig for Rootfs
[INFO] silentconfig rootfs
[INFO] generating plnxtool conf
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-image-minimal
ERROR: OE-core's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:
Failed to create a file in SSTATE_DIR: Permission denied.
You could try using /media/training/BUILD/projects/uzegpcietag/petalinux/projects/cache/sstate_2020.1/aarch64/ in SSTATE_MIRRORS rather than as an SSTATE_CACHE.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
ERROR: Failed to build project
So how to solve this issue?