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
Software Application Development Zynq FSBL is unable to Load BOOT.bin from user selected EMMC offset sector (partition)
  • 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 3 replies
  • Subscribers 327 subscribers
  • Views 772 views
  • Users 0 members are here
  • qspi
  • BootROM
  • EMMC Partitions
  • fsbl
  • zynq-7000
  • linux
Related

Zynq FSBL is unable to Load BOOT.bin from user selected EMMC offset sector (partition)

adielement
adielement 4 months ago

I am working on Zynq-7030 custom board, (software: Vivado 2019.1 → SDK 2019.1).

I have successfully accessed emmc (mmc1 in my case). Created partitions and made understanding of all emmc related commands. My board has two boot modes. One is for SD card and other is QSPI boot.

To load images from EMMC, I need to store bootloader at QSPI (since boot mode is QSPI), so that bootloader boots first and then proceeds to other images loading, that are placed at emmc.

I want to separately load boot.bin, kernel image, dtb and rootfs for each partition of emmc, based on whatever user selects at bootup. In simple words, there should be a user code that asks from user to select the partition to boot from. Say partition 3 is selected, the boot.bin , kernel image, dtb and rootfs corresponding that partition 3 will be booted up and others will not be booted.

I did research on this and found that BootROM allows FSBL to boot from QSPI to OCM. Now I am stuck in customizing FSBL to take user input and then load corresponding images. I made a simple design in Vivado and enabled only EMMC (mmc1/ sd1) and disabled SD (mmc0/sd0) then generated fsbl.elf from SDK. The fsbl.elf is generated by default method, so it does not take user input and then can load corresponding images according to that user input.

I need way out for this. I have beginner level expertise in embedded C so I need help in how to read the offset sector of EMMC to laod BOOT.bin (that was stored using dd command in the EMMC).

Is my understanding of this approach is correct or I need to adapt alternate for this? If it is correct then I will appreciate help in FSBL code customization. 

  • Sign in to reply
  • Cancel

Top Replies

  • tony56887
    tony56887 3 months ago in reply to adielement +1
    Primary boot from QSPI with only fsbl, which then hands off to boot from eMMC as secondary boot with full image. Sounds like you have this understood and I also believe this part is achievable. But what…
  • adielement
    0 adielement 4 months ago

    Can anyone please help me with this. I am stuck in it for many days.

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

    tony56887  do you have any idea on this?

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

    Primary boot from QSPI with only fsbl, which then hands off to boot from eMMC as secondary boot with full image. Sounds like you have this understood and I also believe this part is achievable.

    But what you need is user prompt and the ability to select which image/partition to load out of multiple partitions on the eMMC? This seems more advanced, and is not provided easily as default functionality by xilinx that i'm aware of. If it's possible you would need to customize your fsbl. I would recommend asking about this on the Xilinx forums.

    • Cancel
    • Vote Up +1 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