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
ZUBoard ZUBoard baremetal SD boot problem
  • 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 Suggested Answer
  • Replies 13 replies
  • Answers 1 answer
  • Subscribers 327 subscribers
  • Views 938 views
  • Users 0 members are here
  • baremetal
  • ZUBoard
  • boot
  • sd
Related

ZUBoard baremetal SD boot problem

tony56887
tony56887 5 months ago

I'm unable to boot a simple baremetal app from the SD card. Very strange problem.

  • The ZUB will boot petalinux from the SD card just fine, I've built and booted the ZUB petalinux base and trifecta builds. All using the same SD card, several times.
  • I can build my simple baremetal app in Vitis and boot it over JTAG, as well as QSPI, which works fine. Attempting to boot from SD with FSBL debug messaging enabled, I get:
    • SD: Unable to open file 1:/BOOT.BIN: 3, XFSBL_ERROR_SD_F_OPEN
  • I also have an Ultra96v2. Using the same SD card, I can boot a simple u96 baremetal app from the SD card on the u96.
  • The SD card is a 16GB delkin. I format it FAT and copy my BOOT.bin to it, simple.

Everything works fine on the U96, and the ZUB, except SD boot from the ZUB only. This is very strange and I can't figure what the issue could be. Any ideas?

  • Sign in to reply
  • Cancel

Top Replies

  • iksevas
    iksevas 5 months ago in reply to tony56887 +2
    I have heard stories of 16Gb cards not functioning on some boards but 8Gb cards working fine. I have heard stories of different manufacturers working better than others. So, I would not be surprised if…
  • tony56887
    tony56887 3 months ago in reply to adielement +1 suggested
    Solved yesterday. This was a tools issue on version 2023.2 on interface SD1. SD0 works fine as that's what ultra96 is targeting. Version 2024.2 has this fixed.
Parents
  • tony56887
    0 tony56887 3 months ago

    Extra info in case anyone sees this and has an idea. I'm attempting side by side debug with my Ultra96 to compare with FSBL debug prints turned on. These designs are simple and using identical hello world bare metal apps, just for the purpose of this SD boot issue.

    Left is u96 which boots successfully. Right is zub. Notice the zub FSBL reads the file as "1:/BOOT.BIN", unlike u96 which is just "BOOT.BIN". Then the zub can't find the file, which might make sense...?

    I'm wondering if this "1:/" is prepended in the FSBL code due to booting from SD1 instead of SD0...

    image

    Vivado/Vitis versions 2023.2

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • adielement
    0 adielement 3 months ago in reply to tony56887
    tony56887 said:
    I'm wondering if this "1:/" is prepended in the FSBL code due to booting from SD1 instead of SD0...

    You can print initSD function code statements and thier arguments (using printf or xil_printf, for debug purpose), to get reason why it is listing 1:/, either because of SD1 or anything else. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • adielement
    0 adielement 3 months ago in reply to adielement

    tony56887  you can also verify WP and CD pins as per datasheet.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • tony56887
    0 tony56887 3 months ago in reply to adielement

    Solved yesterday. This was a tools issue on version 2023.2 on interface SD1. SD0 works fine as that's what ultra96 is targeting. Version 2024.2 has this fixed.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • tony56887
    0 tony56887 3 months ago in reply to adielement

    Solved yesterday. This was a tools issue on version 2023.2 on interface SD1. SD0 works fine as that's what ultra96 is targeting. Version 2024.2 has this fixed.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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