Hi Marek,

On 09/04/2015 09:59 PM, Marek Vasut wrote:
Can't you just call relocate_code the same way arm does it in
arch/arm/lib/crt0.S ?

We didn't include relocation records in nios2 binary image, so there is no real relocation like that of ARM.

Altera provides small boot loaders for cfi/sf along with their nios2 jtag flash programmer, which will load the image to the linked address in sdram. The relocating loop in start.S works only if such Altera boot loader is not used, ie, booting directly from cfi flash.

Best regards,
Thomas Chou
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to