Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Contributor
timo-ge
Posts: 48
Registered: ‎11-12-2007
0

relocate simpleImage to execute from flash

Hi guys,

did someone tried to execute the simple loader directly from flash?

Is it possible by changing the linkerscript or will I run in more problems doing this?

I just want to avoid copying the image around to safe some boot time.

Best regards,

tg

Regular Contributor
zben
Posts: 57
Registered: ‎01-29-2008
0

Re: relocate simpleImage to execute from flash

Why don't you run your simple image directly from internal block RAM (or memory cache block RAM) ?

If it is small enough it is possible.

 

Otherwise you may succeed changing the linker script only if there is no need of a driver to read/write from Flash, and you put your reset vector to the physical address of your Flash

Contributor
timo-ge
Posts: 48
Registered: ‎11-12-2007
0

Re: relocate simpleImage to execute from flash

Well, the simpleImage is approx. 1.5 to 2MB of size, this is definitely larger than fpga bram. 

I've decided to write a small bootloader which is capable of booting a uImage. The device-tree will be stored in bram (dependent of the fpga image)

The bootloader will run directly from bram, and decompresses the kernel from flash to ram.

Regular Contributor
zben
Posts: 57
Registered: ‎01-29-2008
0

Re: relocate simpleImage to execute from flash

Ho ok I did not understand that your "simple loader" was the simpeImage.

That's the good way to do : put a small bootloader in BRAM. That's what I did too. However for me I think that the device-tree is stored inside the kernel, not in BRAM. I use a script from Xilinx to convert the simpleImage to a Flash friendly image

 

Rest regards