Skip to contentSkip to conversation

jffs2 indirect access.

PATCH New Kenneth Johansson 2 participants 2 messages Jul 24, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 jffs2 indirect access.

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.

Signature · 11 lines
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 
#1 lore raw

PATCH 1/1 jffs2 indirect access.

Dear Kenneth,

Quoted 4 lines · in message <1059050105.31114.89.camel@spawn> you wrote:

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.

OK, just for the record: I will NOT merge this patch into the public tree. Please let me know when you decide otherwise.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"Wish not to seem, but to be, the best."                  - Aeschylus