element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General petalinux compile  error
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 3 replies
  • Subscribers 348 subscribers
  • Views 1637 views
  • Users 0 members are here
  • Using Xilinx Tools
  • Software Application Development
  • Ultrazed Hardware Design
Related

petalinux compile  error

lance.mo
lance.mo over 4 years ago

my Compile environment is  ubuntun18.4+vitis 2020.1+petalinux 2020.1,

my hardware is   AVET's  UltraZedTm 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?

  • Sign in to reply
  • Cancel

Top Replies

  • lance.mo
    lance.mo over 4 years ago in reply to lance.mo +1 verified
    I built my project with command " petalinux-build -c avnet-image-minimal" successfully
  • narrucmot
    0 narrucmot over 4 years ago

    Hi Lance,

     

    This error occurs because the yocto SSTATE_DIR path for your PetaLinux project does not match the path specified in the <>/uz3eg_pciec_2020_1/project-spec/meta-user/conf/petalinuxbsp.conf file.

     

    When building the BSPs for the Avnet SOMs and SBCs we specify folders for the SSTATE cache (SSTATE_DIR) and package downloads (DL_DIR) and add these settings to the petalinuxbsp.conf file.  This significantly accelerates BSP build time and is documented in the Accelerating PetaLinux BSP Build Time blog post.  The solution is to either update these settings to match your build environment or comment (#) or remove them from your petalinuxbsp.conf file.

     

    --Tom

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • lance.mo
    0 lance.mo over 4 years ago in reply to narrucmot

    Hi Tom,

     

    Thanks for your reply.

    Now I can compile the petalinux project named uz3eg_pciec_2020_1 .But I met a new issue.

    my Compile environment is  ubuntun18.4+vitis 2020.1+petalinux 2020.1,

    my hardware is   AVET's  UltraZedTm PCIe Carrier Card ,

    my BSP package is uz3eg_pciec_2020_1.tar.

     

    As I compiled the BSP with petalinux-build, below is log for error:

     

     

     

    lance@ubuntu:~/uz3eg_pciec_2020_1$ petalinux-build

    INFO: sourcing build tools

    [INFO] building project

    [INFO] sourcing build environment

    [INFO] generating user layers

    [INFO] generating workspace directory

    INFO: bitbake petalinux-image-minimal

    Loading cache: 100% |############################################| Time: 0:00:03

    Loaded 4257 entries from dependency cache.

    Parsing recipes: 100% |##########################################| Time: 0:00:03

    Parsing of 2990 .bb files complete (2988 cached, 2 parsed). 4259 targets, 171 skipped, 0 masked, 0 errors.

    NOTE: Resolving any missing task queue dependencies

    Initialising tasks: 100% |#######################################| Time: 0:00:03

    Checking sstate mirror object availability: 100% |###############| Time: 0:00:08

    Sstate summary: Wanted 164 Found 26 Missed 138 Current 869 (15% match, 86% 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.uz3eg-pciec.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/lance/uz3eg_pciec_2020_1/build/tmp/work/uz3eg_pciec-xilinx-linux/petalinux-image-minimal/1.0-r0/temp/run.do_image_wic.96798' failed with exit code 1:

    WARNING: /home/lance/uz3eg_pciec_2020_1/build/tmp/work/uz3eg_pciec-xilinx-linux/petalinux-image-minimal/1.0-r0/temp/run.do_image_wic.96798:1 exit 1 from 'exit 1'

     

     

    ERROR: Logfile of failure stored in: /home/lance/uz3eg_pciec_2020_1/build/tmp/work/uz3eg_pciec-xilinx-linux/petalinux-image-minimal/1.0-r0/temp/log.do_image_wic.96798

    ERROR: Task (/home/lance/uz3eg_pciec_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 3708 tasks of which 3266 didn't need to be rerun and 1 failed.

     

     

    Summary: 1 task failed:

      /home/lance/uz3eg_pciec_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 project

     

     

    So how to  solve this issue?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • lance.mo
    0 lance.mo over 4 years ago in reply to lance.mo

    I built my project with command "petalinux-build -c avnet-image-minimal" successfully

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube