]> git.sur5r.net Git - u-boot/commit
powerpc/mpc85xx: support application without resetvec segment in the linker script
authorYing Zhang <b40530@freescale.com>
Mon, 20 May 2013 06:07:23 +0000 (14:07 +0800)
committerAndy Fleming <afleming@freescale.com>
Thu, 20 Jun 2013 22:08:50 +0000 (17:08 -0500)
commit5df572f0131cf5e0abd8ce4e8f57841b790c40d4
tree23a4eb5bd8468e4172a137946838ef7f9ad8e091
parent505c293ffd67170507154c3660d8d880d3edd9da
powerpc/mpc85xx: support application without resetvec segment in the linker script

For SD/SPI 2-stage bootloader, the On-Chip Rom code loads the SPL into L2 SRAM,
then jump to it to begin execution. After that, the SPL loads the final uboot
image into DDR, then jump to it to begin execution. The segment .resetvec in
the SPL and in final U-boot is useless.

So, add new symbols CONFIG_SYS_MPC85XX_NO_RESETVEC for this application.
If CONFIG_SYS_MPC85XX_NO_RESETVEC is set, the segment .resetvec is excluded
and the segment .bootpg is placed in the previous 4K of the segment .text.

Signed-off-by: Ying Zhang <b40530@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
README
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds
arch/powerpc/cpu/mpc85xx/u-boot.lds