[U-Boot-Users] [PATCH 4/8] New board SIMPC8313 support: support forbooting from NAND in start.S

Kumar Gala galak at kernel.crashing.org
Sat May 31 08:07:29 CEST 2008


On May 30, 2008, at 5:51 PM, Scott Wood wrote:

> On Sat, May 31, 2008 at 06:47:21AM +0800, Liu Dave wrote:
>>
>> ---
>> cpu/mpc83xx/start.S |  310
>> ++++++++++++++++++++++++++++++++++++---------------
>> 1 files changed, 220 insertions(+), 90 deletions(-)
>>
>> diff --git a/cpu/mpc83xx/start.S b/cpu/mpc83xx/start.S
>> index 309eb30..39bcaa8 100644
>> --- a/cpu/mpc83xx/start.S
>> +++ b/cpu/mpc83xx/start.S
>> @@ -63,6 +63,9 @@
>>  * Use r14 to access the GOT
>>  */
>> 	START_GOT
>> +#if defined(CONFIG_NAND_SPL)
>> +	GOT_ENTRY(_GOT_TABLE_)
>> +#else
>> 	GOT_ENTRY(_GOT2_TABLE_)
>> 	GOT_ENTRY(_FIXUP_TABLE_)
>>
>> @@ -74,6 +77,7 @@
>> 	GOT_ENTRY(__init_end)
>> 	GOT_ENTRY(_end)
>> 	GOT_ENTRY(__bss_start)
>> +#endif /* CONFIG_NAND_SPL */
>> 	END_GOT
>>
>> [Dave] I strongly suggest we create one lite new start.S for the  
>> NAND boot,
>>       not modify the original start.S
>
> I'd prefer otherwise, if we can keep the #ifdeffing to a minimum.

w/o knowing what has to fit in the first 4k page for NAND for 83xx,  
86xx, and 85xx its difficult to suggest solutions.  However could we  
do something evil and #include start_template.S in the two locations  
or something like that (So the actual source isn't duplicated)?

- k




More information about the U-Boot mailing list