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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 2020.1 failed to compile with tagged version
  • 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 6 replies
  • Answers 1 answer
  • Subscribers 361 subscribers
  • Views 1941 views
  • Users 0 members are here
  • Ultrazed Hardware Design
Related

Petalinux 2020.1 failed to compile with tagged version

pmdp3
pmdp3 over 5 years ago

Hello,

 

I am trying to build petalinux using ./make_uz7ev_evcc.sh

I set both the petalinux and the hdl version to tag 2020p1_uz_petalinux_UZ7EV_EVCC_20201104_065342

I am using Vitis 2020.1.

When the code runs create_petalinux_project(), it fails at

petalinux-config --silentconfig --get-hw-description=./hw_platform/ -p ${PETALINUX_PROJECTS_FOLDER}/${PETALINUX_PROJECT_NAME}

with:

[INFO] generating user layers

ERROR: Failed to add user layer: /home/pdaye/workspace/ultrazed/git/avnet/petalinux/projects/uz7ev_evcc_2020_1/project-spec/meta-user

ERROR: Failed to config project.

ERROR: Get hw description Failed!

 

Does anyone have an idea to the reason why it is happening?

Yours,

 

Pierre

  • Sign in to reply
  • Cancel

Top Replies

  • drozwood90
    drozwood90 over 5 years ago +1 verified
    Hi there, I think you changed the wrong variable. You do not change the version from 2020.1. That needs to stay the same. The only thing that would change is the meta-avnet definition in common.sh. However…
  • pmdp3
    pmdp3 over 5 years ago +1
    Thank you, it is working now! Yours Pierre
  • drozwood90
    drozwood90 over 5 years ago in reply to pmdp3 +1 suggested
    Hi there, Without knowing exactly which variables you changed, my feeling, related to what you posted, is you removed the ability of the tool to be able to tell what version of tool it is supposed to work…
Parents
  • drozwood90
    0 drozwood90 over 5 years ago

    Hi there,

     

    I think you changed the wrong variable.

    You do not change the version from 2020.1.  That needs to stay the same.  The only thing that would change is the meta-avnet definition in common.sh.

    However, you should not have to modify that either.

     

    All you need to do is pull down that tag itself.  All the variables, tagstamp.txt and anything else would be setup properly.

     

    Here is a script that I use when I am working with the 2020.1 tags/tips/etc.

    copy of getClones.sh

    # Zynq 7000 (non-Vitis)
    #branchTag=2020p1_minized_petalinux_MINIZED_20201104_065342
    #branchTag=2020p1_mz_petalinux_MZ7010_FMCCC_20201104_065342
    #branchTag=2020p1_mz_petalinux_MZ7020_FMCCC_20201104_065342
    #branchTag=2020p1_pz_petalinux_PZ7010_FMC2_20201104_065342
    #branchTag=2020p1_pz_petalinux_PZ7015_FMC2_20201104_065342
    #branchTag=2020p1_pz_petalinux_PZ7020_FMC2_20201104_065342
    #branchTag=2020p1_pz_petalinux_PZ7030_FMC2_20201104_065342
    
    
    # UltraScale+ (Vitis Capable)
    #branchTag=2020p1_ultra96v2_oob_ULTRA96V2_20201104_065342
    #branchTag=2020p1_uz_petalinux_UZ3EG_IOCC_20201104_065342
    #branchTag=2020p1_uz_petalinux_UZ3EG_PCIEC_20201104_065342
    branchTag=2020p1_uz_petalinux_UZ7EV_EVCC_20201104_065342
    
    
    #branchTag=2020.1
    
    
    if [ -z ${PETALINUX_VER+x} ]; 
    then 
         echo "PETALINUX_VER is unset"; 
    else 
         echo "PETALINUX_VER is set to '$PETALINUX_VER'"; 
    fi
    
    
    echo "Cloning '$branchTag'"; 
    git clone https://github.com/Avnet/vitis.git
    cd vitis
    git checkout ${branchTag}
    cd ..
    git clone https://github.com/Avnet/bdf.git
    git clone https://github.com/Avnet/hdl.git
    git clone https://github.com/Avnet/petalinux.git
    cd hdl
    git checkout ${branchTag}
    cd ..
    cd petalinux
    git checkout ${branchTag}
    cd ..

     

    Copy this into ~/getClones.sh

    save it, and set it to executable

    sudo chmod 755 getClones.sh

     

    cd to your projects folder

    ex:

    cd ~/projects
    mkdir getTag
    cd getTag

     

    Run the script

    ./getClones.sh

     

    --Dan

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • pmdp3
    0 pmdp3 over 5 years ago in reply to drozwood90

    Hello,

     

    Thank you for your quick response to my request! This is very kind of you.

    I am currently running the code you provided.

    In the meantime, and for my personnal knowledge, I don't understand why meta-avnet should have an impact at this point.

    From my reading of the make_uz7ev_evcc.sh script,

    1. First you check the repos and the env variables
    2. Then you check if you have to build the XSA
    3. Then you create the petalinux projet
    4. Then you configure the petalinux project

    The meta-avnet layer is, from what I understand, added during step 4 (configure_petalinux_project ln 89 call config.board.uz7ev_evcc.sh which does the patching).

    So I don't get where the problem could be as I haven't call the meta-avnet layer at that time...

     

    (In the meantime, the code is finished and it works! Thank you very much)

     

    Yours,

     

    Pierre

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • drozwood90
    0 drozwood90 over 5 years ago in reply to pmdp3

    Hi there,

     

    Without knowing exactly which variables you changed, my feeling, related to what you posted, is you removed the ability of the tool to be able to tell what version of tool it is supposed to work with - which then upsets a chain of events and other variables related to that.

     

    We are working on some cleaner ways to handle this and trying to make things more clear.  This last release was the first time we tried this.

     

    Regardless, I am very happy that you got everything working now!

     

    --Dan

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • drozwood90
    0 drozwood90 over 5 years ago in reply to pmdp3

    Hi there,

     

    Without knowing exactly which variables you changed, my feeling, related to what you posted, is you removed the ability of the tool to be able to tell what version of tool it is supposed to work with - which then upsets a chain of events and other variables related to that.

     

    We are working on some cleaner ways to handle this and trying to make things more clear.  This last release was the first time we tried this.

     

    Regardless, I am very happy that you got everything working now!

     

    --Dan

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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 © 2026 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