MTD concat support for linux and UBI

Norbert van Bolhuis nvbolhuis at aimvalley.nl
Thu Jan 20 09:59:51 EST 2011


On 01/20/11 15:24, Holger Brunck wrote:
> Hi all,
> I have got a general question to the MTD concat feature in Linux. Is it allowed
> to concatenate NOR flashes with different writebuffersizes? Currently the code
> allows this.
> If so I see a problem for different sizes when dealing with UBI volumes
> comprehending such flashes. Some days ago some patches were added to adjust the
> min I/O size for UBI to the writebuffersize of the flash. If now two flashes
> with different writebuffersizes are concatenated whats the way forward? I see
> two solutions:
> 1) Using the writebuffersize from the flash with the largest writebuffer for min
> I/O size in UBI.
> 2) Adapting the concat feature in Linux to forbid concatenating flashes with
> different writebuffersizes.
>

You're right.

MTD concat already checks for incompatibilites between the
subdevices and I guess it should take into account writebuffer
size too.

---
N. van Bolhuis.





More information about the linux-mtd mailing list