From: "Christian Magnusson" <christian.magnusson@runaware.com>
To: <linux-mtd@lists.infradead.org>
Subject: patch for writeable mtd-partitions.
Date: Tue, 9 Mar 2004 09:36:20 +0100 [thread overview]
Message-ID: <200403090834.i298Y3rl026934@mail.runaware.com> (raw)
Hi again...
(I sent this to uclinux-dev mailing list before, but I guess this list
should have a copy of it too.)
I added support for write-able mtd-partitions at minor boundary. The diff
could be found at this link:
http://home.mag.cx/uclinux/patches/linux-2.6.x/mtdpart.diff
(I've been working with the linux-2.6.2-uc0 kernel in
uClinux-dist-20040218.tar.gz)
Could somebody review the patch and add it to the CVS? It works for me, but
I guess somebody have comments on optimisation and coding style etc.
The patch will fix the problem when you have a flash with different erase
block sizes. In my case I have two AM79LV004T roms with This layout:
"Image" 0x000000-0x0F8000
"Config" 0x0F8000-0x100000
The erase size for the flash is:
0x000000-0x0E0000 (7 blocks a 0x20000)
0x0E0000-0x0F0000 (1 block a 0x10000)
0x0F0000-0x0F8000 (2 blocks a 0x04000)
0x0F8000-0x100000 (1 block a 0x08000)
Before it was impossible to get a writeable partition for "Image" since it
detected the erase size to 0x20000, and 0x0F8000%0x20000 is NOT zero.
With the patch a partition could start/end at 0x0F4000 too which wasn't
possible before.
/Christian
reply other threads:[~2004-03-09 8:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200403090834.i298Y3rl026934@mail.runaware.com \
--to=christian.magnusson@runaware.com \
--cc=linux-mtd@lists.infradead.org \
/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