Re: [U-Boot] JFFS2 with NAND flash is very SLOW ...

On Tuesday 02 June 2009 15:56:25 Pierre Savary wrote:
In fact it is not better with this config: #define CONFIG_ICACHE_ON #define CONFIG_DCACHE_ON #define CONFIG_SYS_DCACHE_SIZE 32768 #define CONFIG_SYS_ICACHE_SIZE 32768 #define CONFIG_SYS_CACHELINE_SIZE 32
My architecture is arm926ejs and it seems that CACHE management is not implemented...
I just measure a load of uImage (2MB) ... it takes more than 2 minutes :-(
Yes, this is really slow. Jean-Christophe will be able to tell us if caches are supported on this platform in U-Boot.
Best regards, Stefan
===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office@denx.de =====================================================================

On 15:59 Tue 02 Jun , Stefan Roese wrote:
On Tuesday 02 June 2009 15:56:25 Pierre Savary wrote:
In fact it is not better with this config: #define CONFIG_ICACHE_ON #define CONFIG_DCACHE_ON #define CONFIG_SYS_DCACHE_SIZE 32768 #define CONFIG_SYS_ICACHE_SIZE 32768 #define CONFIG_SYS_CACHELINE_SIZE 32
My architecture is arm926ejs and it seems that CACHE management is not implemented...
I just measure a load of uImage (2MB) ... it takes more than 2 minutes :-(
Yes, this is really slow. Jean-Christophe will be able to tell us if caches are supported on this platform in U-Boot.
I've not yet find time to implement the MMU support for arm (needed for D-Cache support), I've plan to add it for the next release (not for this next merge window)
I-Cache is supported
but 2 mins is really slow, could show us your code?
Best Regards, J.

Which source code? I use the 2009.03 version without modification. This is my config file: [...] #define CONFIG_CMD_NAND #define CONFIG_SYS_MAX_FLASH_BANKS 1 #define CONFIG_SYS_MAX_NAND_DEVICE 1 #define CONFIG_SYS_NAND_BASE 0x20020000 #define NAND_MAX_CHIPS 1 #define CONFIG_ENV_IS_IN_NAND [...] #define CONFIG_CMD_JFFS2 [...] #define CONFIG_JFFS2_NAND #undef CONFIG_JFFS2_CMDLINE #define CONFIG_JFFS2_DEV "nand0" #define CONFIG_JFFS2_PART_SIZE 0x00C00000 #define CONFIG_JFFS2_PART_OFFSET 0x000C8000 [...] #define CONFIG_ICACHE_ON #define CONFIG_DCACHE_ON #define CONFIG_SYS_DCACHE_SIZE 32768 #define CONFIG_SYS_ICACHE_SIZE 32768 #define CONFIG_SYS_CACHELINE_SIZE 32 [...]
And in fact it is better with I-Cache enabled. I carried out more precise measurements and I obtain: 1min45 without I-cache and 40sec with I-cache. It is better but not enough...
Thanks for your help. Best Regards,
Pierre
-----Message d'origine----- De : u-boot-bounces@lists.denx.de [mailto:u-boot-bounces@lists.denx.de] De la part de Jean-Christophe PLAGNIOL-VILLARD Envoyé : mardi 2 juin 2009 17:06 À : Stefan Roese Cc : Pierre Savary; 'Cote, Sylvain'; u-boot@lists.denx.de Objet : Re: [U-Boot] JFFS2 with NAND flash is very SLOW ...
On 15:59 Tue 02 Jun , Stefan Roese wrote:
On Tuesday 02 June 2009 15:56:25 Pierre Savary wrote:
In fact it is not better with this config: #define CONFIG_ICACHE_ON #define CONFIG_DCACHE_ON #define CONFIG_SYS_DCACHE_SIZE 32768 #define CONFIG_SYS_ICACHE_SIZE 32768 #define CONFIG_SYS_CACHELINE_SIZE 32
My architecture is arm926ejs and it seems that CACHE management is not implemented...
I just measure a load of uImage (2MB) ... it takes more than 2 minutes
:-(
Yes, this is really slow. Jean-Christophe will be able to tell us if
caches
are supported on this platform in U-Boot.
I've not yet find time to implement the MMU support for arm (needed for D-Cache support), I've plan to add it for the next release (not for this next merge window)
I-Cache is supported
but 2 mins is really slow, could show us your code?
Best Regards, J. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
participants (3)
-
Jean-Christophe PLAGNIOL-VILLARD
-
Pierre Savary
-
Stefan Roese