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 microZed : compiling u-boot image (and creating BOOT.BIN)
  • 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
  • +1 person also asked this people also asked this
  • Replies 3 replies
  • Subscribers 328 subscribers
  • Views 1250 views
  • Users 0 members are here
Related

microZed : compiling u-boot image (and creating BOOT.BIN)

Former Member
Former Member over 10 years ago

I cloned the u-boot.git from xilinx and compiled it

[om@hexcore (v2015.2)/export/space/xilinx/src/u-boot-xlnx.git]
[791]$ ls u-boot*
2.3M u-boot*      4.0K u-boot.lds  1.2M u-boot.srec*
408K u-boot.bin*  372K u-boot.map

I created a .BIF file.
$ cat u-boot0.bif
the_ROM_image:
{
t[bootloader]/export/space/XXXX/workspace/microzed-fsbl/Debug/microzed-fsbl.elf
t/export/space/XXXX/microzed-sd-images/system.bit
t/export/space/xilinx/src/u-boot-xlnx.git/uImage.bin
}

Created BOOT.BIN
$ bootgen -image ./u-boot0.bif -o BOOT.BIN -w -log

When I boot this image, from FSBL I get the following message

.....
DMA Done !

FPGA Done !
In FsblHookAfterBitstreamDload function
Partition Number: 2
Header Dump
Image Word Len: 0x000195B6
Data Word Len: 0x000195B6
Partition Word Len:0x000195B6
Load Addr: 0x00000000
Exec Addr: 0x00000000
Partition Start: 0x000858C0
Partition Attr: 0x00000010
Partition Checksum Offset: 0x00000000
Section Count: 0x00000001
Checksum: 0xFFF2E3AC
Application
Handoff Address: 0x00000000
In FsblHookBeforeHandoff function
No Execution Address JTAG handoff

Obviously, the image does not have a load/exec address associated with.

uImage.bin is in fact the renamed binary u-boot.img.

[792]$ file uImage.bin
uImage.bin: u-boot legacy uImage, U-Boot 2015.04 for zynq board, Firmware/ARM, Firmware Image (Not compressed), 415384 bytes, Sun Aug 30 11:35:51 2015, Load Address: 0x04000000, Entry Point: 0x04000000, Header CRC: 0x9B6F14AF, Data CRC: 0xAA06E3B8

in uImage.bin, the entry point as well as load address is defined. But bootgen seems to ignore these two parameters.

How are you people compiling u-boot and creating the BOOT.BIN image? How to specify the load and entry points in the bootgen parameter list / bif file?

Thanks
BlueDev

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

    I guess I figured out how to pass load and exec addresses. Here is my new .BIF file

    [830]$ cat u-boot0.bif
    the_ROM_image:
    {
    t[bootloader]/export/space/XXXX/workspace/microzed-fsbl/Debug/microzed-fsbl.elf
    t/export/space/XXXX/microzed-sd-images/system.bit
    t[load=0x00100000,startup=0x00100000]/export/space/xilinx/src/u-boot-xlnx.git/u-boot.bin
    }

    FSBL output is,
    DMA Done !

    FPGA Done !
    In FsblHookAfterBitstreamDload function
    Partition Number: 2
    Header Dump
    Image Word Len: 0x000195A6
    Data Word Len: 0x000195A6
    Partition Word Len:0x000195A6
    Load Addr: 0x00100000 <===== NOTE THIS!
    Exec Addr: 0x00100000 <===== NOTE THIS!
    Partition Start: 0x000858C0
    Partition Attr: 0x00000010
    Partition Checksum Offset: 0x00000000
    Section Count: 0x00000001
    Checksum: 0xFFD2E3DC
    Application
    Handoff Address: 0x00100000  <===== NOTE THIS!
    In FsblHookBeforeHandoff function
    SUCCESSFUL_HANDOFF
    FSBL Status = 0x1

    <stuck here, no message from u-boot>

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

    Got it solved. In fact, it was already discussed in the forum; I happened to overlook it.

    http://microzed.org/content/u-boot-wont-boot

    Short answer is to use the make target

    zynq_zc70x_defconfig

    for microZed Board

    [om@hexcore (v2015.2)/export/space/xilinx/src/u-boot-xlnx.git]
    $ make zynq_zc70x_defconfig && make -j 6

    And the BIF file is,
    $ cat u-boot0.bif
    the_ROM_image:
    {
    t[bootloader]/export/space/XXXX/workspace/microzed-fsbl/Debug/microzed-fsbl.elf
    t/export/space/XXXX/microzed-sd-images/system.bit
    t/export/space/xilinx/src/u-boot-xlnx.git/u-boot.elf
    }

    please note the u-boot.elf file, not uImage file. I did test with .BIN or uImage files

    The output on serial console is
    ...

    DMADone!

    FPGADone!
    InFsblHookAfterBitstreamDloadfunction
    PartitionNumber:2
    HeaderDump
    ImageWordLen:0x0001966C
    DataWordLen:0x0001966C
    PartitionWordLen:0x0001966C
    LoadAddr:0x04000000
    ExecAddr:0x04000000
    PartitionStart:0x000858C0
    PartitionAttr:0x00000010
    PartitionChecksumOffset:0x00000000
    SectionCount:0x00000001
    Checksum:0xF7F2E18A
    Application
    HandoffAddress:0x04000000
    InFsblHookBeforeHandofffunction
    SUCCESSFUL_HANDOFF
    2015.04(Aug302015-15:21:58)

    Board:XilinxZynq
    I2C:ready
    DRAM:ECCdisabled1GiB
    MMC:zynq_sdhci:0
    SF:DetectedS25FL128S_64Kwithpagesize256Bytes,erasesize64KiB,total16
    MiB
    In:serial
    Out:serial
    Err:serial
    Board:XilinxZynq
    Net:Gem.e000b000
    Hitanykeytostopautoboot:0
    zynq-uboot>

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

    Former Member are you available?

    Former Member said:

    http://microzed.org/content/u-boot-wont-boot

    the link you provided does not respond now. I need to resolve same issue. can you elaborate please?

    • 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