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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
FPGA
  • Technologies
  • More
FPGA
Forum Minized BSP 2019.2 error
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join FPGA to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Answers 4 answers
  • Subscribers 530 subscribers
  • Views 2674 views
  • Users 0 members are here
  • minized_petalinux
  • petalinux
  • bsp
  • minized
Related

Minized BSP 2019.2 error

bartokon
bartokon over 5 years ago

Hi,

 

I have downloaded minized BSP for 2019.2 version but I couldn't build it.

Petalinux throws me an error while building:

 

[INFO] building project

[INFO] sourcing bitbake

[INFO] generating user layers

[INFO] generating workspace directory

INFO: bitbake petalinux-user-image

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.

 

I tried to find solution on my own but without luck.

Can someone point me to right direction or provide solution?

 

Thanks!

  • Sign in to reply
  • Cancel

Top Replies

  • bartokon
    bartokon over 5 years ago +1 verified
    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…
  • narrucmot
    narrucmot over 5 years ago +1 suggested
    This is error is an unforeseen artifact of creating this BSP with the Avnet build script ( Using Avnet Build Scripts to Build a PetaLinux BSP (2019.2 and earlier) ). The script makes changes to the <>…
  • narrucmot
    narrucmot over 4 years ago in reply to bartokon +1
    The PetaLinux 2020.1 BSPs for all of the Zed and UltraZed SOMs and SBCs are being developed now. I suspect the error you are seeing may have something to do with something that has changed in the tools…
  • bartokon
    0 bartokon over 5 years ago

    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.

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

    This is error is an unforeseen artifact of creating this BSP with the Avnet build script (Using Avnet Build Scripts to Build a PetaLinux BSP (2019.2 and earlier) ).  The script makes changes to the <>/project-spec/configs/config and <>/project-spec/meta-user/conf/petalinuxbsp.conf files to allow the BSPs to build faster using the local DL_DIR and SSTATE_DIR  folders. This is described in this Element14 blog article Accelerating PetaLinux BSP Build Time .  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.  This will be fixed in future BSPs and in the build scripts.

     

    --Tom

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

    Thank you, Tom, for creating those BSP's they are really helpful for learning how Petalinux work image

     

    I'm trying to create system for 2020.1 version based on your work, but petalinux is getting stuck after u-boot must be some error with &amba{} configuration...

     

    Do you know when can we expect 2020.1 version for minized?

     

    Thanks, have a nice weekend/

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

    The PetaLinux 2020.1 BSPs for all of the Zed and UltraZed SOMs and SBCs are being developed now.  I suspect the error you are seeing may have something to do with something that has changed in the tools since 2019.2.  Not surprising considering that, as is Xilinx custom, the Linux kernel, u-boot, and Yocto versions all changed with the 2020.1 release.  I will see what I can find out about a possible fix or workaround.  This forum indicates you are working with a MiniZed - what BSP are you trying to build?

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bartokon
    0 bartokon over 4 years ago in reply to narrucmot

    I'm doing my master’s degree in next year, and I thought that I could make some Minized acceleration tutorials with Vitis because of it.

     

    All the tutorials I have found are based on outdated tools, so in my opinion it's silly to make tutorial on those. As I can see BSP provided by Avnet are not acceleration ready, so you still need to make modifications to make it work with acceleration flow. I have now modified successfully Minized project 2019.2 to boot from PMOD-SDCARD, so I think it's a good start.

     

    Now I'm fighting with XRT and Vitis issues

    Vitis has some bugs regarding packaging wrong bitstream to boot.bin and I forgot about clk_ignore_unused in kernel args.

    Now after tweaks vector addition is working image

     

    I'm looking forward to 2020.1 bsps for Minized!

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

    Hi Bartosz,

     

    You mention "BSP provided by Avnet are not acceleration ready" - what do you mean?  What modifications did you need to make?  When developing the BSPs for the SOMs and SBCs we add all the bits and pieces that we know of to enable further accelerator development in Vitis.  I would be interested to know what you believe is missing.

     

    Thanks!

    Tom

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

    Hello Tom,

     

    I just have re-created project from Avnet github just to double check.

     

    So this is output from Vitis after adding platform sysroots (cortexa9t2hf-neon-xilinx-linux-gnueabi) from "petalinux-build --sdk". This is EMMC version

    image

    As you can see, ZYNQ sysroot is missing some libraries.

    Following Adam Taylor Microzed chronicles you can see that He is adding ZOCL and XRT libraries and drivers to petalinux project.

     

    So there could be two solutions:

    I'm creating Vitis project wrong or BSP's are not 100% ready (HW platform is OK).

     

    Could you check if I'm right on your side?

    I have created tutorial on Hackster how I made it work on Minized.

     

    Thanks,

    Bartosz.

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

    OK, I believe the ZOCL and XRT packages are added to the UltraZed and Ultra96 BSPs.  I will see about also adding them to the Zynq SOMs and MiniZed.

     

    Thank you for sharing your successful recipe on Hackster.io!

     

    --Tom

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jchang_endiag
    0 jchang_endiag over 4 years ago in reply to narrucmot

    I still see this error with uz7_evcc_2020_1.tar.gz, which shows last modified November 6, 2020.  Could someone verify that it has been fixed for future BSPs?

     

    Thanks.

    Joe

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • narrucmot
    0 narrucmot over 4 years ago in reply to jchang_endiag

    Hi Joe,

     

    We are planning to fix this for the upcoming 2020.2 BSPs and also add some other enhancements to aid rebuilding the BSP.  In the meantime the fix is still to manually edit the
    <project root>/project-spec/meta-user/conf/petalinuxbsp.conf file and comment out the "DL_DIR" and "SSTATE_DIR" lines.

     

    --Tom

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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