From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Savary Date: Tue, 2 Jun 2009 15:56:25 +0200 Subject: [U-Boot] JFFS2 with NAND flash is very SLOW ... In-Reply-To: <200906021531.58571.sr@denx.de> References: <579B119545DAEF4689C8FBEEFEC5793F01D4FEDA3AE0@ATLMBX.verint.corp.verintsystems.com> <200906021517.31737.sr@denx.de> <00c601c9e385$63278660$29769320$@savary@kerlink.fr> <200906021531.58571.sr@denx.de> Message-ID: <00c701c9e389$ec518540$c4f48fc0$@savary@kerlink.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 :-( Pierre -----Message d'origine----- De?: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] De la part de Stefan Roese Envoy??: mardi 2 juin 2009 15:32 ??: u-boot at lists.denx.de Cc?: Pierre Savary; 'Cote, Sylvain' Objet?: Re: [U-Boot] JFFS2 with NAND flash is very SLOW ... On Tuesday 02 June 2009 15:23:57 Pierre Savary wrote: > Is it better to use or not D-cache and I-cache? Depends a bit on the "application". From my experience I-Cache is most important. But for memory intensive applications (JFFS2 might be such a beast) D-cache could be very helpful as well. Best is to have both enabled of course. > Currently, in my config file, I have only > #define CONFIG_CMD_CACHE > What do I have to add? Defining the cache commands doesn't insure that caches are really enabled. Some platforms don't support I- and/or D-cache in U-Boot. I can only speak for PPC4xx which has I-cache enabled and "usually" D-cache disabled (because of cache-coherency issues). This might be different on your platform. Again, just enabling the cache commands will most likely not help here. 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 at denx.de ===================================================================== _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot