[U-Boot] [PATCH 2/3] iMX31: Add support to copy NAND Flash code to RAM
Alan Carvalho de Assis
acassis at gmail.com
Wed Oct 8 20:52:27 CEST 2008
Hi Scott,
On Tue, Oct 7, 2008 at 3:03 PM, Scott Wood <scottwood at freescale.com> wrote:
> Alan Carvalho de Assis wrote:
>>
>> From 473120de8390abd78014cac9fe0925cb49f57fbe Mon Sep 17 00:00:00 2001
>> From: Alan Carvalho de Assis <alan.assis at freescale.com>
>> Date: Sun, 5 Oct 2008 19:59:47 -0300
>> Subject: [PATCH] iMX31: Add support to copy NAND Flash code to RAM
>>
>> This code is executed from internal 2KB NAND Flash Controller RAM buffer
>> and will copy the remaining U-Boot code from NAND Flash verifying its
>> bad blocks (case it exists).
>>
>> Signed-off-by: Alan Carvalho de Assis <alan.assis at freescale.com>
>> ---
>> cpu/arm1136/mx31/Makefile | 2 +
>> cpu/arm1136/mx31/nand_copy.S | 263
>> +++++++++++++++++++++++++++++++++
>> include/asm-arm/arch-mx31/mx31-regs.h | 69 +++++++++
>
> Please use the nand_spl infrastructure to whatever extent is practical.
>
> Does this code really need to be in assembly to fit?
I reused the source code from RedBoot. I think using nand_spl is the
best approach, but it will needs more effort to complete.
I am afraid about the 2KB NAND loader limitation, this is too tight to
fill using C code. I will investigate to verify if it is feasible.
Anyway, right now we can have iMX31PDK booting with this code as an
option for users willing to use U-Boot in this board.
> -Scott
>
Best Regards,
Alan
P.S.: I am sending this email again because I sent it erroneously only to Scott
More information about the U-Boot
mailing list