From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kenneth Johansson Date: 24 Jul 2003 14:35:05 +0200 Subject: [U-Boot-Users] [PATCH] jffs2 indirect access. Message-ID: <1059050105.31114.89.camel@spawn> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This is a patch that alters the jffs2 code to work on flash devices that is not directly memory mapped without the need to copy the whole flash to RAM. It is not ready for inclusion and I do not think I will push it as it was quite a bit slower than I expected. It also needs a little more cleanup. A callback function is added to struct part_info that works like memcpy and is the thing actually reading the flash. The offset member is gone and the jffs2 code always uses 0 as the start address for the filesystem. It is up to the callback function to remap that into something useful. This code however uses less memory than copying the flash to ram but it is slower. jffs2_scan_empty() could use some speedup but even in situations when that one is not taking mush time this is slower by a factor of 2-3. It's only faster if you happens to have ridiculously slow flash. I'm going on vacation and is not going to work more on this so if someone wants this added to u-boot you have to fix a proper patch yourself. -- Kenneth Johansson Ericsson AB Tel: +46 8 719 70 20 Tellusborgsv?gen 90 Fax: +46 8 719 29 45 126 25 Stockholm ken at switchboard.ericsson.se -------------- next part -------------- A non-text attachment was scrubbed... Name: jffs2.diff Type: text/x-patch Size: 24509 bytes Desc: not available Url : http://lists.denx.de/pipermail/u-boot/attachments/20030724/12f8e620/attachment.bin