cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tomaszes
Observer
Observer
1,239 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
glena
Moderator
Moderator
1,214 Views
Registered: ‎03-19-2014

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
sabankocal
Voyager
Voyager
905 Views
Registered: ‎08-02-2019

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

<--- If reply is helpful, please feel free to give Kudos, and close if it answers your question --->
0 Kudos
glena
Moderator
Moderator
894 Views
Registered: ‎03-19-2014

It sounds like your ZC702 design was not ported correctly.

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