diff options
| -rw-r--r-- | README | 5 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 14 | ||||
| -rw-r--r-- | arch/powerpc/cpu/mpc85xx/u-boot.lds | 8 | 
3 files changed, 27 insertions, 0 deletions
| @@ -4088,6 +4088,11 @@ Low Level (hardware related) configuration options:  		that is executed before the actual U-Boot. E.g. when  		compiling a NAND SPL. +- CONFIG_SYS_MPC85XX_NO_RESETVEC +		Only for 85xx systems. If this variable is specified, the section +		.resetvec is not kept and the section .bootpg is placed in the +		previous 4k of the .text section. +  - CONFIG_ARCH_MAP_SYSMEM  		Generally U-Boot (and in particular the md command) uses  		effective address. It is therefore not necessary to regard diff --git a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds index cf6fa7c93..4591760e2 100644 --- a/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +++ b/arch/powerpc/cpu/mpc85xx/u-boot-spl.lds @@ -26,6 +26,13 @@  #include "config.h"	/* CONFIG_BOARDDIR */  OUTPUT_ARCH(powerpc) +#ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC +PHDRS +{ +	text PT_LOAD; +	bss PT_LOAD; +} +#endif  SECTIONS  {  	. = CONFIG_SPL_TEXT_BASE; @@ -68,9 +75,16 @@ SECTIONS  #else  #error unknown NAND controller  #endif +#ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC +	.bootpg ADDR(.text) - 0x1000 : +	{ +		KEEP(*(.bootpg)) +	} :text = 0xffff +#else  	.resetvec ADDR(.text) + RESET_VECTOR_OFFSET : {  		KEEP(*(.resetvec))  	} = 0xffff +#endif  	/*  	 * Make sure that the bss segment isn't linked at 0x0, otherwise its diff --git a/arch/powerpc/cpu/mpc85xx/u-boot.lds b/arch/powerpc/cpu/mpc85xx/u-boot.lds index 0503dce5a..2643563d4 100644 --- a/arch/powerpc/cpu/mpc85xx/u-boot.lds +++ b/arch/powerpc/cpu/mpc85xx/u-boot.lds @@ -95,6 +95,13 @@ SECTIONS    . = ALIGN(256);    __init_end = .; +#ifdef CONFIG_SYS_MPC85XX_NO_RESETVEC +  .bootpg ADDR(.text) - 0x1000 : +  { +    KEEP(arch/powerpc/cpu/mpc85xx/start.o (.bootpg)) +  } :text = 0xffff +  . = ADDR(.text) + 0x80000; +#else    .bootpg RESET_VECTOR_ADDRESS - 0xffc :    {      arch/powerpc/cpu/mpc85xx/start.o	(.bootpg) @@ -117,6 +124,7 @@ SECTIONS  #if (RESET_VECTOR_ADDRESS == 0xfffffffc)    . |= 0x10;  #endif +#endif    __bss_start = .;    .bss (NOLOAD)       : |