From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pierre Savary Date: Tue, 2 Jun 2009 17:30:08 +0200 Subject: [U-Boot] JFFS2 with NAND flash is very SLOW ... In-Reply-To: <20090602150609.GI6399@game.jcrosoft.org> References: <579B119545DAEF4689C8FBEEFEC5793F01D4FEDA3AE0@ATLMBX.verint.corp.verintsystems.com> <200906021531.58571.sr@denx.de> <200906021559.43446.sr@denx.de> <20090602150609.GI6399@game.jcrosoft.org> Message-ID: <00d401c9e397$03a06560$0ae13020$@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 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 at lists.denx.de [mailto:u-boot-bounces at 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 at 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 at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot