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 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
MicroZed Hardware Design PetaLinux SD boot
  • 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 11 replies
  • Subscribers 314 subscribers
  • Views 2020 views
  • Users 0 members are here
Related

PetaLinux SD boot

Former Member
Former Member over 10 years ago

I'm having trouble figuring out how to get the image I've created for the microZed 7020 to boot on it. It runs nicely in the qemu emulator but I can't get a valid system.bit.bin file. I've found some not quiet for microZed instructions to make a .bit.bin file, but I try using any of those files the boot process ends with a timeout on DMA when trying to load the FMGA.

For reference I'm using the Avnet-MicroZed-z7020-v2014.2.bsp file with the petalinux-create command, that appears to be the most correct one to use.

SD Boot without system.bit.bin:
Copying Linux from SD to RAM...
Device: zynq_sdhci
Manufacturer ID: 2
OEM: 544d
Name: SD04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
Loading bitstream from SD/MMC/eMMC to RAM..
Device: zynq_sdhci
Manufacturer ID: 2
OEM: 544d
Name: SD04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
reading system.bit.bin
** Unable to read file system.bit.bin **
zynq-uboot>
]


With a system.bit.bin that I made using "bootgen -image test.bif -split bin -o i BOOT.BIN" but none of the .bit files I could find to convert with that matched the instructions so I think I'm doing something wrong there. But the boot attempts with that system.bit.bin all failed with:

Copying Linux from SD to RAM...
Device: zynq_sdhci
Manufacturer ID: 2
OEM: 544d
Name: SD04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
Loading bitstream from SD/MMC/eMMC to RAM..
Device: zynq_sdhci
Manufacturer ID: 2
OEM: 544d
Name: SD04G
Tran Speed: 50000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 4-bit
reading system.bit.bin
4045568 bytes read in 550 ms (7 MiB/s)
Error: Timeout waiting for DMA to complete.
fpga - loadable FPGA image support

Usage:
fpga [operation type] [device number] [image address] [image size]
fpga operations:
  dump  [dev]                   Load device to memory buffer
  info  [dev]                   list known device information
  load  [dev] [address] [size]  Load device from memory buffer
  loadb [dev] [address] [size]  Load device from bitstream buffer (Xilinx only)
  loadmk [dev] [address]        Load device generated with mkimage
        For loadmk operating on FIT format uImage address must include
        subimage unit name in the form of addr:<subimg_uname>
zynq-uboot>



Really I'm hoping someone just points me to the correct instructions for this.

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    0 Former Member over 10 years ago

    So I was wondering if the "MicroZed 7020 Open Source Linux In System QSPI Programming Tutorial" as mentioned in the other thread was what was poisoning the U-Boot env variabels, so I did the full wipe as described in the other thread then put the boot.bin created by the command you posted (petalinux-package ...) on a sd card and set the jumpers to boot from the SD card.

    Nothing happens, not a single character is printed to the terminal.



    While trying to think of things to get this all working I noticed I hadn't gone through the 4 tutorials (01_MicroZed_Zynq_Intro_2014_2_01 to 04_MicroZed_FSBL_Boot_2014_2_01) which I just did (except for the JTAG bits, not a piece of hardware we have lying around conveniently right now) and all of those worked fine.


    As to what my end goal is:
    We want linux on the mircoZed with a few applications of our writing doing their thing. The petaLinux flow of things looks really nice and reliable. As yet I'm not wanting to anything a non-standard way, I've gone as far as using a centos VM inside my Ubuntu box because of some issues running petalinux in ubuntu.


    So I'm currently wondering:
    A) What is the correct way to make those three precursor files?
    B) Is there meant to be any files along side the BOOT.BIN file on the SD card for booting from SD card?

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

    So I was wondering if the "MicroZed 7020 Open Source Linux In System QSPI Programming Tutorial" as mentioned in the other thread was what was poisoning the U-Boot env variabels, so I did the full wipe as described in the other thread then put the boot.bin created by the command you posted (petalinux-package ...) on a sd card and set the jumpers to boot from the SD card.

    Nothing happens, not a single character is printed to the terminal.



    While trying to think of things to get this all working I noticed I hadn't gone through the 4 tutorials (01_MicroZed_Zynq_Intro_2014_2_01 to 04_MicroZed_FSBL_Boot_2014_2_01) which I just did (except for the JTAG bits, not a piece of hardware we have lying around conveniently right now) and all of those worked fine.


    As to what my end goal is:
    We want linux on the mircoZed with a few applications of our writing doing their thing. The petaLinux flow of things looks really nice and reliable. As yet I'm not wanting to anything a non-standard way, I've gone as far as using a centos VM inside my Ubuntu box because of some issues running petalinux in ubuntu.


    So I'm currently wondering:
    A) What is the correct way to make those three precursor files?
    B) Is there meant to be any files along side the BOOT.BIN file on the SD card for booting from SD card?

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