Skip to contentSkip to conversation

CFI Flash write speed

U-Boot A. Geisreiter 2 participants 5 messages Aug 11, 2009 – Aug 13, 2009 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello,

I have add CFI support to my project. I use Intel strata flash P30 and PXA270 CPU. The flash is connected with 16bit to the PXA data bus. If I write to the flash I have transfer rates of roughly 75kB/sec. I think this is very slow. How can I increase the transfer rate?

Thanks,

Andreas

#1 lore raw

Dear "A. Geisreiter",

Quoted 5 lines · In message <000001ca1a94$e0216f50$a0644df0$@de> you wrote:

I have add CFI support to my project. I use Intel strata flash P30 and PXA270 CPU. The flash is connected with 16bit to the PXA data bus. If I write to the flash I have transfer rates of roughly 75kB/sec. I think this is very slow. How can I increase the transfer rate?

Did you enable CONFIG_SYS_FLASH_USE_BUFFER_WRITE ?

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
It is much easier to suggest solutions when you know nothing
#3 lore raw
In reply to a message not in the archive

Dear "A. Geisreiter",

please always keep the mailing list on Cc:. Thanks.

Quoted 3 lines · In message <004e01ca1bd8$a943a8f0$fbcafad0$@de> you wrote:

I use U-Boot version 1.3.4 and there I can't find the define CONFIG_SYS_FLASH_USE_BUFFER_WRITE. Do I need a patch or a newer version of U-Boot?

Well, using recent code is always recommended :-)

In your old version, the variable names was probably still CFG_FLASH_USE_BUFFER_WRITE

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Our business is run on trust.  We trust you will pay in advance.
#4 lore raw

Hello Mr. Denk,

CFG_FLASH_USE_BUFFER_WRITE is already defined in the project-header file. I have configured the CPU registers for access the flash memory with maximum speed. But I think it is although very slow. If I use Windows CE to copy something to the flash memory I have transfer rates of 140kB/s. With U-Boot I have only 75kB/s.
What else can I do to increase the transfer rate?

Thanks,
Andreas

#5 lore raw

Dear "A. Geisreiter",

Quoted 7 lines · In message <006201ca1c0c$55a62ea0$00f28be0$@de> you wrote:

CFG_FLASH_USE_BUFFER_WRITE is already defined in the project-header file. I have configured the CPU registers for access the flash memory with maximum speed. But I think it is although very slow. If I use Windows CE to copy something to the flash memory I have transfer rates of 140kB/s. With U-Boot I have only 75kB/s.
What else can I do to increase the transfer rate?

I guess the PXA270 suffers like all (?) ARM from the fact that data cache is not effective. Jean-Christophe has been promising for some time to submit patches that are supposed to fix this.

I have no idea though when these might hit mainline.

Best regards,

Wolfgang Denk

Signature · 8 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hello! I'm from outer space,  and I've made myself look like a signa-
ture.  While  you  are reading this, I'm having sex with your eyes. I
know it feels good to you, because you're smiling. I'm very horny, so
send me to someone else when you've had enough. Thanks!
                              Sincerely, A Stranger in a Strange Land