MTD concat support for linux and UBI
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.
Best regards
Holger Brunck
Quoted 5 lines · Holger Brunck
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
Quoted 9 lines
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.
Quoted 11 lines · Holger Brunck
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.
I think this is the way to go.
Quoted 2 lines
2) Adapting the concat feature in Linux to forbid concatenating flashes with different writebuffersizes.
Signature · 2 lines
Best Regards, Artem Bityutskiy (Битюцкий Артём)