[U-Boot] [PATCH 1/3] atmel_nand: if don't have gf table in rom code we will build it runtime

Bo Shen voice.shen at atmel.com
Tue Oct 28 10:27:33 CET 2014


Hi Andreas,

On 10/28/2014 04:05 PM, Bo Shen wrote:
> Hi Andreas,
>
> On 10/25/2014 06:22 AM, Andreas Bießmann wrote:
>>>               ATMEL_BASE_PMERRLOC;
>>> >+#if defined(NO_GALOIS_TABLE_IN_ROM)
>>> >+    /* Set pmecc_rom_base as the begin of gf table */
>>> >+    int size = host->pmecc_sector_size == 512 ?
>>> >+        PMECC_INDEX_TABLE_SIZE_512 :
>>> >+        PMECC_INDEX_TABLE_SIZE_1024;
>>> >+    pmecc_galois_table = malloc(2 * size * sizeof(uint16_t));
>> I fear this will not work with current SPL implementation ...
>
> Yes, when I try to implement the SPL support for sama5d4ek board, I
> really meet this issue. I don't know what reason cause this issue. So,
> can you give me some hints about it? Thanks.

I use the nand read.raw and nand write.raw command with wrong parameter.

It is OK for SPL with this kind of code on sama5d4ek.

Sorry for this noise.

> Best Regards,
> Bo Shen
>

Best Regards,
Bo Shen


More information about the U-Boot mailing list