element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development MicroZed + Yocto : with official "microzed-zynq7" machine, U-Boot does not start from SD card
  • Forums
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 3 replies
  • Subscribers 40 subscribers
  • Views 225 views
  • Users 0 members are here
Related

MicroZed + Yocto : with official "microzed-zynq7" machine, U-Boot does not start from SD card

gsavaton
gsavaton over 3 years ago

I am building a Yocto Linux image for the MicroZed using the official meta-xilinx layer (Yocto branch "rocko" + meta-xilinx layer with branch "rel-v2018.3").

 

Using MACHINE = "microzed-zynq7" in my local.conf generates an image that fails to boot from SD card:

  • At startup, the blue LED indicates that the PL is configured.
  • The USB-UART port does not output anything.

 

As a workaround, I have created a custom machine configuration based on the official microzed-zynq7.conf with the following modifications:

 

# Use the ZedBoard configuration for U-Boot instead of MicroZed
UBOOT_MACHINE = "zynq_zed_config"

# Keep the device tree of the MicroZed KERNEL_DEVICETREE = "zynq-microzed.dtb"

# Enable the "u-boot-xlnx" recipe (with U-Boot 2018.3)
# instead of the "u-boot" recipe (that provides U-Boot 2017.09).
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-xlnx"

The bootloader generated with this machine definition works correctly and I get a fully working Linux system.

 

In both attempts, the u-boot.elf file from the Yocto build is added to the same bitstream and FSBL generated by Vivado + SDK using the officiel MicroZed board files.

  • Do you know why the microzed-zynq7 machine definition does not generate a working bootloader in my case?
  • Do you think my workaround is safe to use? Should I try something else?
  • Reply
  • Cancel
  • Cancel
Parents
  • dexterous.me82
    dexterous.me82 over 2 years ago

    I tried the same. I have the microzed zynqboard from AVNET.

     

    Next, I have opened xilinx sdk to create fsbl project.

    Next, I have created the bootimage using -

    fsbl image and the uboot.elf generated from the yocto.

     

    However, when I have put this boot.bin, I get the following error.

    I have added debug info for fsbl too. I have tried adding even the dtb file but it didn't help.

    Do I need to rename the file before adding that in the xilinx sdk?

    Does it have any sequence like fsbl first then uboot.elf and then dtb file?

    What am I missing here, please help?

     

     

     

    Xilinx First Stage Boot Loader

    Release 2018.1  Feb 12 2020-16:06:04

    Devcfg driver initialized

    Silicon Version 3.1

    Boot mode is SD

    SD: rc= 0

    SD Init Done

    Flash Base Address: 0xE0100000

    Reboot status register: 0x60600000

    Multiboot Register: 0x0000C000

    Image Start Address: 0x00000000

    Partition Header Offset:0x00000C80

    Partition Count: 2

    Partition Number: 1

    Header Dump

    Image Word Len: 0x0002184D

    Data Word Len: 0x0002184D

    Partition Word Len:0x0002184D

    Load Addr: 0x04000000

    Exec Addr: 0x04000000

    Partition Start: 0x000075D0

    Partition Attr: 0x00000010

    Partition Checksum Offset: 0x00000000

    Section Count: 0x00000001

    Checksum: 0xF7F93EE7

    Application

    Handoff Address: 0x04000000

    In FsblHookBeforeHandoff function

    SUCCESSFUL_HANDOFF

    FSBL Status = 0x1

    No valid device tree binary found - please append one to U-Boot binary, use u-boot-dtb.bin or define CONFIG_OF_EMBED. For sandbox, use -d <file.dtb>

    initcall sequence 0405f82c failed at call 04055fc8 (err=-1)

    ### ERROR ### Please RESET the board ###

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • narrucmot
    narrucmot over 2 years ago in reply to dexterous.me82

    We at Avnet don't normally do our Linux development with a native yocto flow, so this isn't something we can support.  We use Xilinx PetaLinux.  Think of PetaLinux as a productivity layer between you and yocto "under the covers".  That said, I do not know what is defined in the "microzed-zynq7" machine.

     

    Your best bet may be to start with something known-good like our posted BSPs for the MicroZed:

    MicroZed

    We have BSPs for most recent versions of PetaLinux.

     

    Consult Xilinx UG1144 for how to "install" the BSP:

    https://www.xilinx.com/support/documentation/sw_manuals/xilinx2019_1/ug1144-petalinux-tools-reference-guide.pdf

     

    Cheers,

    Tom

     

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
  • dexterous.me82
    dexterous.me82 over 2 years ago in reply to narrucmot

    My basic question is let say I want to just build u-boot for microzed-zynq7 board. how can I do so?

    I don't want to use petalinux or yocto. I just want some plain steps that will work and will generate the correct u-boot.elf.

    Basically, the basic make command to generate the u-boot.elf. From where I should clone the u-boot code and next from where I

    should download the cross compiler/sdk to build the u-boot code.

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
Reply
  • dexterous.me82
    dexterous.me82 over 2 years ago in reply to narrucmot

    My basic question is let say I want to just build u-boot for microzed-zynq7 board. how can I do so?

    I don't want to use petalinux or yocto. I just want some plain steps that will work and will generate the correct u-boot.elf.

    Basically, the basic make command to generate the u-boot.elf. From where I should clone the u-boot code and next from where I

    should download the cross compiler/sdk to build the u-boot code.

    • Cancel
    • Up 0 Down
    • Reply
    • Cancel
Children
No Data
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube