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 Must use petalinux-package command in newest pull of 2019.2 branch in github.com/Avnet/hdl repo for MiniZed
  • 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
  • Replies 4 replies
  • Subscribers 348 subscribers
  • Views 475 views
  • Users 0 members are here
  • MiniZed Hardware Design
  • zedboardcmty
Related

Must use petalinux-package command in newest pull of 2019.2 branch in github.com/Avnet/hdl repo for MiniZed

adorebit
adorebit over 5 years ago

Today I realized that one must flash both the BOOT.bin and image.ub for a successful boot of PetaLinux in the newest pull of the 2019.2 branch in the github.com/Avnet/hdl repo for the new hdl/Projects/minized_petalinux project.

 

After creating the FPGA bitfile and issuing the config and build PetaLinux commands, the FSBL, Linux image and FPGA bitfile must be packaged using a command like this:

 

$ petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/minized_petalinux_wrapper.bit --uboot

 

Then the FSBL, Linux image and FPGA bitfiles can be loaded into the eMMC and QSPI (after logging into the MiniZed using the factory image):

 

# mkdir /mnt/usb

# mkdir /mnt/emmc

# mount /dev/sda1 /mnt/usb

# mount /dev/mmcblk1p1 /mnt/emmc

# flashcp /mnt/usb/BOOT.BIN /dev/mtd0

# ls /mnt/emmc

# cp /mnt/usb/image.ub /mnt/emmc/.

# ls /mnt/emmc -l

# sync

# umount /mnt/emmc

# umount /mnt/usb

 

Unless the FSBL, FPGA bitfile and Linux image are packaged and loaded together, I was not able to perform a successful boot of PetaLinux on the MiniZed on the newest pull of github.com/Avnet/hdl 2019.2 branch

 

Much of this info is available in the document Booting_MiniZed_Using_QSPI_and_eMMC_2017_2_01.pdf, however, the steps on page 20 must be complete for a successful 2019.2 PetaLinux boot.

 

Cheers,

-Cody

  • Sign in to reply
  • Cancel
  • drozwood90
    drozwood90 over 5 years ago

    Cody,

     

    Thanks for posting this!  Yes, in the past there was not a "ton" of changes to the rootfs or other parts, so there was "some" compatibility.  Good practice is to always flash both.  Generally you do not need to if you stay WITHIN the same version of the build - unless you add / remove something explicitly - but again, good practice to always flash both.

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • adorebit
    adorebit over 5 years ago in reply to drozwood90

    Thanks for the Reply Daniel, I'm currently in the middle of a PetaLinux/BitBake/Yocto/Vivado/Vitis learning push (with 2019.2), so I'll try to post observations and/or other things that make me crazy! Hopefully with the help of folks on this forum, things will be a little less painful

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • drozwood90
    drozwood90 over 5 years ago in reply to adorebit

    Cody,

     

    That would be useful.  I'm working on a few guides and what-not so this is the right time for feedback!

    As soon as I get my first one reviewed, I'll be posting the next Learning Vitis series.

    Vitis does have a similar, but ultimately NOT the same flow as prior versions, especially once you start messing with Vitis accelerators.  That is, unless you are already familiar with SDACCEL's flow!  It is very similar to that.

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • swag23
    swag23 over 5 years ago

    its exceptional! thanks for sharing Cody

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