[PATCH 05/11] [POWERPC] TQM5200 DTS

David Gibson david at gibson.dropbear.id.au
Fri Oct 26 11:33:43 EST 2007


On Thu, Oct 25, 2007 at 05:46:19PM +0200, Marian Balakowicz wrote:
> Grant Likely wrote:
> > On 10/25/07, Martin Krause <Martin.Krause at tqs.de> wrote:
[snip]
> >> On a board with 16 MiB FLASH for example the "big-fs" _and_ the "misc"
> >> partition could not be used. "big-fs", because the memory is too small
> >> (which is OK) and "misc", because it overlaps 1 MiB over the physikal
> >> flash border. So only the first 9 MiB of the flash could be used in Linux.
> >> The remaining 7 MiB couldn't be accessed.
> > 
> > Perhaps it would be better to drop the flash layout from the in-kernel
> > dts files entirely since flash layout can be a fluid thing.
> 
> Well, but that would not be really user friendly, I'd rather stick
> with some default config.

Strictly speaking the device-tree is not the right place for flash
partitioning information.  We put it there because it's preferable to
having hardcoded per-board flash layouts in the code itself.

It only really works well, though, when there are strong conventions
(shared with the firmware) about how to partition the flash.

Where it's really up to the user to determine how they want to lay out
their flash, putting things in the device tree isn't a really good
idea.

Incidentally, it's not required that *all* the flash address space be
in partitions, so it is possible only give partitions for those flash
chunks which the firmware needs to know about.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson



More information about the Linuxppc-dev mailing list