Userspace write to UBI partitions

Ricard Wanderlof ricard.wanderlof at axis.com
Wed Feb 8 02:35:21 EST 2012


On Tue, 7 Feb 2012, Shmulik Ladkani wrote:

>> I'll try this out. In the meantime, there doesn't seem to be an ioctl for
>> erasing blocks?
>>
> Well, another option would be using Gluebi - (CONFIG_MTD_UBI_GLUEBI).
> It exposes a "regular" mtd for every existing volume.
>
> You'd be able to work using standard mtd interfaces on it (mtdchar
> ioctls, e.g. MEMERASE, or even the mtdblock abstraction).

For other reasons, gluebi is not a viable alternative for us. Mainly 
because it puts an mtd device on _every_ ubi volume, meaning that volumes 
can't be removed or resized while gluebi is enabled.

/Ricard
-- 
Ricard Wolf Wanderlöf                           ricardw(at)axis.com
Axis Communications AB, Lund, Sweden            www.axis.com
Phone +46 46 272 2016                           Fax +46 46 13 61 30



More information about the linux-mtd mailing list