Userspace write to UBI partitions

Shmulik Ladkani shmulik.ladkani at gmail.com
Tue Feb 7 11:29:44 EST 2012


On Tue, 7 Feb 2012 16:20:58 +0100 (CET) Ricard Wanderlof <ricard.wanderlof at axis.com> wrote:
> 
> Is it possible to do a userspace write to a UBI volume as if it were plain 
> flash memory, i.e. should I be able to do "cat somefile > /dev/ubi0_0" ? I 
> get a 'Write Error: Operation not permitted' when I do this (Linux 2.6.35) 
> but I'm pretty sure that I've used UBI volumes that way in the past, may 
> have been with older kernels then.

Is your volume dynamic or static?

If dynamic, have you tried setting the UBI_VOL_PROP_DIRECT_WRITE
property by issuing a UBI_IOCSETVOLPROP volume ioctl?
(formerly named UBI_PROP_DIRECT_WRITE and UBI_IOCSETPROP)

Regards,
Shmulik



More information about the linux-mtd mailing list