[RFC] mtd-utils: add support for erase regions

Ezequiel Garcia ezequiel at vanguardiasur.com.ar
Sat Apr 23 09:08:08 PDT 2016


On 21 April 2016 at 11:34, Rotariu, Marian <Marian_Rotariu at mentor.com> wrote:
> Hello all,
>
> For the moment, mtd-utils does not take into consideration erase
> regions, already used in some mtd kernel drivers. The only purpose for
> the ioctl(MEMGETREGIONINFO) is for debugging or for dumping mtd info.
>
> In one of the SoC that I use, there is a flash with multiple sector
> sizes (4KB/64KB) and I mapped multiple config data in the area with 4KB
> sizes for finer granularity. Unfortunately, I cannot use flash_erase or
> any other mtd-utils tool to erase 4K-sectors where the data resides
> because the mtd erasesize is 64KB (the "major"/default erase size for
> the device). Therefore, every time I want to change something small I
> have to delete an entire 64KB space and rewrite the necessary sectors.
>
> I created some patches that add support for erase regions in mtd-utils
> and I thought of sharing them here. Are these modifications of interest
> for the upstream mtd-utils?
>

Yes, this is known issue and it would be great if we can tackle it
somehow.

Thanks,
-- 
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar



More information about the linux-mtd mailing list