public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* patch for writeable mtd-partitions.
@ 2004-03-09  8:36 Christian Magnusson
  0 siblings, 0 replies; only message in thread
From: Christian Magnusson @ 2004-03-09  8:36 UTC (permalink / raw)
  To: linux-mtd


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-09  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09  8:36 patch for writeable mtd-partitions Christian Magnusson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox