PetaLinux for MicroZed issues, questions and answers

Other operating systems
Post Reply
Administrator
Site Admin
Posts: 81
Joined: 26-Feb-2014, 17:54

PetaLinux for MicroZed issues, questions and answers

Post by Administrator » 12-Jan-2024, 20:06

ERROR: Failed to add user layer
Solution:
sudo sysctl -n -w fs.inotify.max_user_watches=524288


ERROR: Layer meta-altera-refdes is not compatible with the core layer which only supports these series: zeus (layer is compatible with thud)
Solution:
not found... or version BSP deffers from PetaLinux

Pynq Issue:
The PYNQ build flow isn’t compatible with Petalinux 2021.1 - please use the versions specified on this page PYNQ SD Card — Python productivity for Zynq (Pynq) 28 (2020.1 for PYNQ 2.6). We’re currently in the process of updating.
According to the log file :
ERROR: Layer meta-user is not compatible with the core layer which only supports these series: zeus (layer is compatible with gatesgarth)
you should set the correct layer support as follow: inside meta-user/conf/local.conf file, try to add:
LAYERSERIES_COMPAT_mensi-user= “zeus gatesgarth”
Adding this line to conf file worked for me LAYERSERIES_COMPAT_pynq = “zeus”

https://xilinx-wiki.atlassian.net/wiki/ ... evelopment
https://www.hackster.io/whitney-knitter ... tch-6e0920

Install required packages for PetaLinux.
sudo apt-get install gawk python build-essential gcc git make zlib1g-dev gcc-multilib zlib1g:i386 gzip

Make the installer executable:
chmod +x petalinux-v2019.2-final-installer.run

Let /bin/sh be bash:
sudo dpkg-reconfigure dash
Then answer NO.

Administrator
Site Admin
Posts: 81
Joined: 26-Feb-2014, 17:54

Re: PetaLinux for MicroZed issues, questions and answers

Post by Administrator » 13-Jan-2024, 18:26

petalinux-build

Error:
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 /home/training/git/avnet/petalinux/scripts/../cache/2019_2/sstate_arm in SSTATE_MIRRORS rather than as an SSTATE_CACHE.
Solution:
I have commented last two lines in /project-spec/meta-user/conf/petalinuxbsp.conf
like this:
#DL_DIR = "/home/training/git/avnet/petalinux/scripts/../cache/2019_2/downloads"
#SSTATE_DIR = "/home/training/git/avnet/petalinux/scripts/../cache/2019_2/sstate_arm"

And for now it started building, lets hope, that it wont crash.
Problem description:
I forgot to 'undo' these file edits before posting this BSP online. Your fix to comment these lines in the petalinuxbsp.conf file is the correct one.
I am sorry for the inconvenience.
https://community.element14.com/technol ... 19-2-error

Administrator
Site Admin
Posts: 81
Joined: 26-Feb-2014, 17:54

Re: PetaLinux for MicroZed issues, questions and answers

Post by Administrator » 13-Jan-2024, 20:49

Error:
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.
Solution:
I was able to avoid this error in Petalinux 2020.1 by using:

petalinux-build -c avnet-image-minimal
or
petalinux-build -c avnet-image-full

Another solution:
The 2020.1 Ultra96 BSP has the same error. I ran config and removed wic from the list of rootfs images that petalinux is trying to create.
https://support.xilinx.com/s/question/0 ... uage=en_US
https://community.element14.com/product ... were-found

Administrator
Site Admin
Posts: 81
Joined: 26-Feb-2014, 17:54

Re: PetaLinux for MicroZed issues, questions and answers

Post by Administrator » 15-Jan-2024, 19:35

petalinux-package with some args

ERROR:
Default first stage bootloader "/home/me/PetaLinux/my_linux/images/linux/zynq_fsbl.elf" doesn't exist
Solution:
Add path to existing pre-built binary: zynq_fsbl.elf

me@me-VM:~/PetaLinux/my_linux$ petalinux-package --boot --fsbl pre-built/linux/images/zynq_fsbl.elf --u-boot --kernel

Code: Select all

me@me-VM:~/PetaLinux/my_linux$ petalinux-package --boot --fsbl pre-built/linux/images/zynq_fsbl.elf --u-boot --kernel
INFO: Sourcing build tools
INFO: File in BOOT BIN: "/home/me/PetaLinux/my_linux/pre-built/linux/images/zynq_fsbl.elf"
INFO: File in BOOT BIN: "/home/me/PetaLinux/my_linux/images/linux/u-boot.elf"
INFO: File in BOOT BIN: "/home/me/PetaLinux/my_linux/images/linux/system.dtb"
INFO: File in BOOT BIN: "/home/me/PetaLinux/my_linux/images/linux/image.ub"
INFO: Generating Zynq binary package BOOT.BIN...

****** Xilinx Bootgen v2020.2
  **** Build date : Nov 15 2020-06:11:24
    ** Copyright 1986-2020 Xilinx, Inc. All Rights Reserved.
[INFO]   : Bootimage generated successfully
INFO: Binary is ready.
https://www.instructables.com/Getting-S ... PetaLinux/

Administrator
Site Admin
Posts: 81
Joined: 26-Feb-2014, 17:54

Re: PetaLinux for MicroZed issues, questions and answers

Post by Administrator » 22-Jan-2024, 17:57

How to free disk space after petalinux-build project is done:
$petalinux-build -x distclean
and
$petalinux-build -x mrproper
Try to remove folders:
/build
/project-spec/meta-user

P.S.
The contents present in meta-user are not auto generated, hence you should not remove it.

https://support.xilinx.com/s/question/0 ... -artifacts

Post Reply