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
MicroZed Hardware Design How to flash FSBL only into QSPI?
  • 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 Not Answered
  • Replies 4 replies
  • Subscribers 336 subscribers
  • Views 1872 views
  • Users 0 members are here
Related

How to flash FSBL only into QSPI?

Former Member
Former Member over 10 years ago

Hi all,
I successfully built a new FSBL for my MicroZed based on my hardware design.
Is it possible to flash it into QSPI, without touching the only u-boot?
On other Zynq boards I successfully did this with u-boot, by uploading the new FSBL binary from TFTP and writing it with "sf write" to address 0x40000 (but I do not know from where this address came from).
Or I have to rebuild also u-boot from source, rebuild a BOOT.BIN and flash it?

Thanks
Davide

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 10 years ago

    Hi Davide,

    The most straightforward way to do this is, as you suggested, to rebuild BOOT.BIN and flash it.

    However, if you are one for doing a bit of experimentation so that you can more easily update the FSBL without touching the other pieces of the boot image, I think what you want to do is possible.

    Take a look at UG585 where Table 6-5 shows the structure of the BootROM Header:

    http://www.xilinx.com/support/documentation/user_guides/ug585-Zynq-7000-TRM.pdf

    According to that document, the FSBL image is supposed to start at address 0x8C0, so I am not sure where the 0x40000 address you suggested came from either.

    The Zynq Boot Image Generator (bootgen) offers some hooks to allow you to specify the offset of the different "partitions" within the boot image.  Take a look at this Xilinx wiki page for more information:

    http://www.wiki.xilinx.com/Prepare+boot+image

    It does not look like you can relocate the FSBL partition but you could use some strategy to locate the other partitions such that there is ample room for your FSBL to grow/shrink with future versions of Xilinx tools.

    If you were to place your U-Boot code at an offset where you could guarantee that writes of future FSBL versions would not spill over into the U-Boot region, then you should be able to update only the FSBL partition.

    If you have some success with this, please share your results back with the community.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 10 years ago

    One other thing to help avoid confusion...

    Since we are talking about QSPI flash, you would actually generate a boot.mcs file to program to the flash rather than a boot.bin but they are both generated by bootgen.

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago

    Ok, thanks for your help.
    Just a small question:
    Here http://www.wiki.xilinx.com/Prepare+Boot+Medium on "Program the QSPI through U-Boot" it says that boot.bin must reside in DDR to be flashed (uploaded by TFTP I suppose), not boot.mcs.
    Is that correct? Are these instructions ok for MicroZed?
    Is the starting address of 0 correct?
    Thanks
    Davide

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • zedhed
    0 zedhed over 10 years ago

    Hi Davide,

    Yes, these instructions should be okay for MicroZed with a starting QSPI address of 0 as well.

    As for the correct filename, you are correct.

    The boot.mcs file is a special format that should be used with the Xilinx SDK "Program Flash" tool.

    If you are doing the QSPI write from U-boot, then the using the boot.bin container format is appropriate.

    Regards,

    -Kevin

    • 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