Re: Why is PEB not erased before writing???

Thomas Gleixner
2007-02-20T11:13:31Z

On Tue, 2007-02-20 at 16:41 +0530, Brijesh Singh wrote:
> > Did you enable CONFIG_MTD_USERSPACE_IO ? If yes, then the behaviour is
> > clear. This is a _DEBUG_ option and bypasses the normal update
> > procedure.
>
> Yes I did enable this CONFIG_MTD_UBI_USERSPACE_IO option.We can't
> write the device if this flag is not enabled.UBI treats the device as
> readonly.
> This is the usual way to write UBI device,I guess.

No. It is not. It is a _DEBUG_ option. UBI has an update mechanism. See
documentation.

tglx