From: Kenneth Johansson <kenneth.johansson@etx.ericsson.se>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] jffs2 indirect access.
Date: 24 Jul 2003 14:35:05 +0200 [thread overview]
Message-ID: <1059050105.31114.89.camel@spawn> (raw)
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
next reply other threads:[~2003-07-24 12:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-07-24 12:35 Kenneth Johansson [this message]
2003-07-24 13:43 ` [U-Boot-Users] [PATCH] jffs2 indirect access Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2003-07-24 14:20 Woodruff, Richard
2003-07-25 12:18 ` Kenneth Johansson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1059050105.31114.89.camel@spawn \
--to=kenneth.johansson@etx.ericsson.se \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox