element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Ultrazed Hardware Design Accelerate petalinux-build
  • 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 4 replies
  • Subscribers 324 subscribers
  • Views 2281 views
  • Users 0 members are here
  • ultrazed
Related

Accelerate petalinux-build

oleb0n
oleb0n over 5 years ago

I prefer to use Petalinux with Ubuntu root filesystem. It feels like I make plenty of unnecessary steps, so please help me avoid them. Here some questions that I need to clarify:

      1. Do I really need to run "petalinux-config -c rootfs" and add dropbear if I'll use Ubuntu?

     2. Same question for "petalinux-config -c kernel" and Realtek 8152/8153 USB networking drivers (which I really use)?

     3. I found that if I unselect DisplayDriver in ZYNQ confiurator in Vivado the petalinux-build does not waste hours to add OpenCV. Is OpenCV required for the display driver or it is pre-selected just in case?

     4. I also guess that UltraZED  BSP is inflated with multiple packages that nobody needs (like Arduino), but unlike other boards if I do not use BSP in the end a get "Bad magic" message because something is wrong with device tree. It could be great to have some minimum BSP limited to serial port, ethernet and USB support.

  • Sign in to reply
  • Cancel

Top Replies

  • narrucmot
    narrucmot over 5 years ago in reply to oleb0n +1 verified
    If you plan to use an Ubuntu rootfs you can skip the PetaLinux "petalinux-config -c rootfs" altogether and if you are striving to minimize build time then examine the <project>/project-spec/configs/rootfs_config…
  • narrucmot
    0 narrucmot over 5 years ago

    If you plan to boot an Ubuntu rootfs then, no, you don't need to configure the PetaLinux rootfs to add dropbear.

     

    If you don't plan on using the USB interface with a USB <-> Ethernet adapter then, no, you don't need to configure the kernel to add those drivers.

     

    The Avnet UltraZed BSPs are meant to also be used a stepping stone for Vitis and Vitis-AI development, and thus include packages like OpenCV that you may not need if you don't plan on using Vitis or Vitis-AI.  To be specific - IIRC - OpenCV is a requirement for Vitis-AI.  If you want to minimize build time and don't need it, you can configure the rootfs to remove this package.

     

    To mount a Ubuntu rootfs at boot you need to be sure to modify the PetaLinux config.  This is described in Xilinx UG1144 (https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_2/ug1144-petalinux-tools-reference-guide.pdf ):

    image

    image

     

    --Tom

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

    Tom, thank you for the reply. 

     

    So, if I am using Ubuntu rootfs, I can run "petalinux-config -c rootfs" and un-select all packages included by default like OpenCV, gstreamer, X11? Is there a way to remove Arduino? In general, we are using OpenCV, but it is installed to the Ubuntu rootfs and all I need to update is PL part of the same project.

     

    In what case do I need to run "petalinux-config -c kernel"? In several tutorials they run both -c kernel and -c rootfs without any changes to default settings, while sometimes people suggest to run "petalinux-build" right after hardware description was imported.

    It looks like if default settings are OK, I can skip "-c kernel"?

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

    If you plan to use an Ubuntu rootfs you can skip the PetaLinux "petalinux-config -c rootfs" altogether and if you are striving to minimize build time then examine the <project>/project-spec/configs/rootfs_config file and disable the packages that are enabled (<package>=y).

     

    Generally speaking, and especially in your case of using an Ubuntu rootfs, unless you know you need to add a kernel driver module or change any kernel config settings you can skip 'petalinux-config -c kernel'.  You can run 'petalinux-build' right after importing the hardware description, making any necessary changes to the device tree (<project>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi), and making any necessary changes to the boot options, etc. ('petalinux-config').

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • FerLara
    0 FerLara over 1 year ago

    Hi,

    Regarding DisplayDriver in ZYNQ configurator in Vivado, how to unselect DisplayDriver in Vivado?

    I don`t need OpenCV since it makes a huge execution of petalinux-build which never finishes.

    Thank you in advance.

    Best Regards,

    Fernando

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