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
Path to Programmable
  • Challenges & Projects
  • Design Challenges
  • Path to Programmable
  • More
  • Cancel
Path to Programmable
Blog Path to Programmable Blog 11 - Booting Zynq-7000
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: avnrdf
  • Date Created: 20 Dec 2018 7:27 AM Date Created
  • Views 2217 views
  • Likes 2 likes
  • Comments 0 comments
  • soc
  • path to programmable
  • zynq
  • xilinx
  • xilinx sdk
  • fpga
  • bootloader
  • avnet minized
  • zynq-7000
  • minized
Related
Recommended

Path to Programmable Blog 11 - Booting Zynq-7000

avnrdf
avnrdf
20 Dec 2018

The next set of videos were centered around the Zynq-7000 boot process. In the previous labs, we programmed the PL & PS over JTAG, which requires an external master. Programming a bootloader to the non-volatile memory on the MiniZed allows it to boot-up and execute applications independently.

 

Chapter 6 Video - First Stage Bootloader

 

Zynq-7000 is a processor first solution: the PS boots first, and programs the PL.

 

imageimage

When the PS boots up, CPU0 runs the initialization code in the factory programmed BootROM, which then decides the boot source (NAND, NOR, Quad-SPI or SD) of the FSBL (first stage boot loader) based on the state of the boot pins. The FSBL takes over and either executes from the on-chip memory, or in place from the flash. It initializes the PS, (PLL, MIO, memory controller), programs the PL if it detects a bitstream, and executes the application once it's done. The application could be a standalone application, or a second stage bootloader like U-boot. U-boot loads the OS kernel, which in turn can be sourced from multiple sources (NAND, NOR, QSPI, USB, GigE etc.)

 

Zynq supports secure & non-secure boot modes. If the FSBL is encrypted, the BootROM disables JTAG and makes use of the PL's AES-256 & HMAC engines.

 

These documents provide an overview of this entire process:

UltraFast Embedded Design Methodology Guide UG1046

Zynq-7000 SoC TRM UG585

Zynq-7000 All Programmable SoC Software Developers Guide UG821

 

 

Lab 6 - First Stage Boot Loader (FSBL)

 

Users can program their own FSBL by creating a new application in Xilinx SDK and using the FSBL template.

imageimage

The lab instruction document then went over the contents of the main() function of the FSBL - which first calls the ps7_init() that initializes the PS, and later starts checking the boot mode pins and calls the appropriate function that loads the bootloader from the selected source.

imageimage

 

Chapter 7 Video - Flash Programming and Boot-up

 

This video explained the boot process in a little more detail and briefly went over the tools in Xilinx SDK that create the boot image & program QSPI.

imageimageimage

 

Lab 7 - Boot from Flash

 

In this lab, we used the previously created application [(t)est_Peripheral] & FSBL.

The Boot Image wizard packages the FSBL, bitstream and application, and generates a .mcs file (.mcs for QSPI, or .bin for SD card images)

image image

The flash memory programming tool requires an image file (the .mcs file that was just created) and the FSBL's .elf file that can be would in the FSBL project directory

image

According to the instructions in the training document, once the flash is programmed, the device will automatically boot and run the 'Test Peripherals' application if the boot mode is set to Flash.

I did not program the flash as I didn't want to overwrite the demo application - though does Avnet provide instructions and files to restore the MiniZed.

 

Progress:

 

image Chapter 6 Video - First Stage Bootloader

image Lab 6 - First Stage Boot Loader (FSBL)

image Chapter 7 Video - Flash Programming and Boot-up

image Lab 7 - Boot from Flash

  • Sign in to reply
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