UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Visitor tomaszes
Visitor
475 Views
Registered: ‎12-26-2018

Zynq 7000 Running bare-metal only on SD-card

Hello,

I am trying to boot a baremetal application that just uses the sample hello world SDK program from an SD card.  I do not want to use petalinux if possible.

I am using the ZC702 reference platform with 2018.3 Vivado and SDK.

Here's the steps I have done so far:

1) Created a reference vivado design from the ZC702 board.  Exported to SDK, I was able to boot Linux on an SD card with the reference platform.

2) In XSDK, created a hardware platform based off the viviado design .hdf.

3) In XSDK, created a FSBL application on Cortex 0.  No other BSP modfications.

4) In XSDK, created a hello world application on Cortex 0. Same behavior if I try Cortex 1.  No other BSP modficiations.

5) In XSDK, created a BOOT.BIN that has the following BIF:

//arch = zynq; split = false; format = BIN
the_ROM_image:
{
    [bootloader]C:\basic_xilinx_ref\fsbl\Debug\fsbl.elf
    C:\basic_xilinx_ref\ref_plat0\zc702demo_wrapper.bit
    C:\basic_xilinx_ref\hello\Debug\hello1.elf
}

Formatted SD card correctly (it runs Petalinux).  Put BOOT.bin on /boot parition.  I am unable to see any prints.

If I use JTAG with the application we can see the prints.  Petalinux works ok.

Any advice what we might be doing incorrectly?  Is U-boot required for bare metal only?

Thank you,

 

 

0 Kudos
3 Replies
Moderator
Moderator
450 Views
Registered: ‎03-19-2014

Re: Zynq 7000 Running bare-metal only on SD-card

Per UG585, boot.bin must be in the root of the SD file system.   U-boot is not used in baremetal applications.   

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Observer sabankocal
Observer
141 Views
Registered: ‎08-02-2019

Re: Zynq 7000 Running bare-metal only on SD-card

Hello,

I lived same problem. My mistake was:

I have already ZC702 Vivado design, I want to port it to TE0745(Trenz), I only changed board Part from Project settings, I tried boot from SD card and SDK Debug but no print.

When I started from Trenz Reference Design(Clocking and all of wirings are correctly initialized), and SDK Debug works and boot from SD is working.

Regards,

Saban

0 Kudos
Moderator
Moderator
130 Views
Registered: ‎03-19-2014

Re: Zynq 7000 Running bare-metal only on SD-card

It sounds like your ZC702 design was not ported correctly.

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos