cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
imgignacio
Explorer
Explorer
1,635 Views
Registered: ‎11-24-2013

FSBL ZynqMP - Where is .elf loaded?

Jump to solution

Dear Forum,

 

how can I know in which address of the RAM the FSBL is loading the .elf file (in my case U-Boot)?

 

I am using the Xilinx FSBL to start U-Boot (and U-Boot starts then Linux) on a ZynqMP board. The rootfs is a ramdisk and the boot process looks like this:

diagram.jpg

  1. FSBL loads U-Boot on RAM
  2. U-boot loads dtb, kernel and ramfs on ram (fatload)
  3. U-boot decompresses kernel and Linux is booted (bootm)

Since I don't have much space on my RAM, I would like to have U-Boot at "the end" of the RAM, in order to have space under U-Boot for the ramdisk and all other components.

 

How can I know where this address is and how to modify it?

 

Thanks in advance for your time!

 

Regards

Ignacio

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
sadanan
Xilinx Employee
Xilinx Employee
1,910 Views
Registered: ‎10-21-2010

Hi,

You can use readelf utility (on Linux host), to dump the load addresses of the elf sections. Please note that u-boot code is relocated during run-time, so it doesn't run from the address where it's loaded. This page has some details about finding out the relocation address

 

http://www.wiki.xilinx.com/Debug+U-boot#Debug U-Boot-Debug after relocation

View solution in original post

1 Reply
sadanan
Xilinx Employee
Xilinx Employee
1,911 Views
Registered: ‎10-21-2010

Hi,

You can use readelf utility (on Linux host), to dump the load addresses of the elf sections. Please note that u-boot code is relocated during run-time, so it doesn't run from the address where it's loaded. This page has some details about finding out the relocation address

 

http://www.wiki.xilinx.com/Debug+U-boot#Debug U-Boot-Debug after relocation

View solution in original post