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
  • 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 Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
MicroZed Hardware Design Petalinux 2020.1 build for microZed
  • 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 1 reply
  • Subscribers 331 subscribers
  • Views 1374 views
  • Users 0 members are here
Related

Petalinux 2020.1 build for microZed

ldeevans
ldeevans over 4 years ago

Hi,

 

I am new to this, but basically: has anyone successfully build a bootable image for the microZed using PetaLinux 2020.1?

 

Here is what I am doing, and this process DOES work for 2019.2, or at least does using a "borrowed" .hdf archive resulting in a bootable image.

However, I am using Viitis 2020.1, hence I need to use Petalinux 2020.1 because of the .xsa archive.

I am also referencing UG1144 for 2020.1.

 

source ~/petalinux/settings.sh

mkdir ~/projects

cd ~/projects

petalinux-create -t project -s ../zynq/mz7010_fmccc_2019_1/mz7010_fmccc_2019_1.bsp

cd mz7010_fmccc_2019_1/

touch project-spec/meta-user/conf/user-rootfsconfig

sed -i 's/thud/zeus/' project-spec/meta-user/conf/layer.conf # change thud to zeus

sed -i 's/plnx-zynq7/zynq-generic/' project-spec/configs/config # plnx-zynq7 is not used anymore, use zynq-generic

cp windows-share/design_1_wrapper.xsa . # Use XSA from Vivado 2020.1, basic platform with Zynq7 PS as per UG1144

petalinux-config -c rootfs

petalinux-config -c kernel # I don't think I need to do this to create a bootable image

petalinux-config --get-hw-description=.

petalinux-build

 

and it fails, near the end of the run, with

| *** Can't find default configuration "arch/../configs/zynq_zc702_defconfig"!

 

which is odd, because I have not specified zc702 anywhere, I am using "template" as specified in UG1144 page 118.

And as I stated above, a similar procedure worked for PetaLinux 2019.2 with the DSG config set to "template".

 

Oh, and if I do:

petalinux-config --get-hw-description=. --defconfig=~/git/buildroot/configs/zynq_microzed_defconfig

where defconfig is borrowed from buildroot, it is seemingly ignored and still fails with the same error.

Maybe Petalinux 2020.1 will only work with a zc702, in which case why won't it find the defconfig file? Confused!

 

Any ideas please?

Thanks,

Dave

 

PS a more concise output of the fail:

 

|   gcc  -isystem/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/include -O2 -pipe -L/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/lib                         -L/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/lib                         -Wl,--enable-new-dtags                         -Wl,-rpath-link,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath-link,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/lib                         -Wl,-rpath,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/usr/lib                         -Wl,-rpath,/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/u-boot-xlnx/v2020.01-xilinx-v2020.1+gitAUTOINC+86c84c0d0f-r0/recipe-sysroot-native/lib                         -Wl,-O1 -Wl,--allow-shlib-undefined -Wl,--dynamic-linker=/home/stanley/projects/mz7010_fmccc_2019_1/build/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2  -o scripts/kconfig/conf scripts/kconfig/conf.o scripts/kconfig/zconf.tab.o

| scripts/kconfig/conf  --defconfig=arch/../configs/zynq_zc702_defconfig Kconfig

| ***

| *** Can't find default configuration "arch/../configs/zynq_zc702_defconfig"!

| ***

  • Sign in to reply
  • Cancel

Top Replies

  • narrucmot
    narrucmot over 4 years ago +1 verified
    Hi David, You may want to start with a known-good PetaLinux 2020.1 BSP for MicroZed to build and boot a known-good OS image. Pre-built boot binaries are included in the BSP. They can be downloaded from…
  • narrucmot
    0 narrucmot over 4 years ago

    Hi David,

     

    You may want to start with a known-good PetaLinux 2020.1 BSP for MicroZed to build and boot a known-good OS image.  Pre-built boot binaries are included in the BSP.  They can be downloaded from here:

    http://avnet.me/zedsupport then navigate to 2020.1 -> BSP

     

    You can also follow the guides below to get started using Avnet's hdl and petalinux repositories to build the underlying Vivado hardware platform and PetaLinux BSP from scratch.  This example is for the Ultra96-V2, but it can be easily modified for the MicroZed:

    Avnet HDL git HOWTO (Vivado 2020.1 and earlier)

    Using Avnet Build Scripts to Build a PetaLinux BSP (2019.2 and earlier)

     

    --Tom

    • 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