There is not too much to /dev/null.  You could probably create a standalone
mtd_null.c driver.

Or maybe use the existing filemtd.c on /dev/null.  That might work.

There is also a fake MTD flash device in arch/arm/sim//up_[q]spiflash.c
Those actually emulate flash devices and are great for testing.

On Wed, Dec 1, 2021 at 5:06 PM Petro Karashchenko <
petro.karashche...@gmail.com> wrote:

> Hello,
>
> Is it possible to create a "fake" MTD device on top /dev/null?
>
> In theory I think that should be possible. Does anyone see any drawbacks
> with such approach?
>
> Best regards,
> Petro
>

Reply via email to