[U-Boot] slow flash write with Freescale P1020 and PC28F256J3 NOR-flash

Christian Riesch christian.riesch at omicron.at
Tue Jan 31 21:18:27 CET 2012


Hi Daniel,

On Tuesday, January 31, 2012, Daniel Nilsson <gnuffel at gmail.com> wrote:
> I am bringing up a board that has a Freescale P1020 (PowerPC e500v2)
> and a 16-bit PC28F256J3 NOR-flash on it.
>
> My problem is that both erases and programming takes very long time.
> Reading from the flash on the other hand, is quite fast (at least a
> few MByte/s).
>
> I have set up the BR0, OR0 and other GPCM-related parameters to be as
> fast as the datasheet allows.
>
> To give an example of how slow it is, programming 24MiB data takes
> around 45 minutes. Erasing the area before programming takes 2-3
> minutes.
>
> I have based my project on a 2011.09 version of u-boot.
>
> Is there any known limitation, problem or workaround?
>

Erasing: sounds ok, seems to agree with the data sheet.

Writing should be faster. I had the same problem until I enabled buffer
write. Make sure you have

#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE

in your board config.

Regards, Christian


More information about the U-Boot mailing list