Re: blockmtd device on top of /dev/null

2021-12-04 Thread Petro Karashchenko
Hello, I've added MTD null support in https://github.com/apache/incubator-nuttx/pull/4937 I will appreciate if you can take a look. Best regards, Petro On 02/12/2021 09:49, Xiang Xiao wrote: If you want to test a new file system and want to isolate it from the potential MTD driver problem,

Re: blockmtd device on top of /dev/null

2021-12-01 Thread Xiang Xiao
If you want to test a new file system and want to isolate it from the potential MTD driver problem, you can try RAMMTD: https://github.com/apache/incubator-nuttx/blob/master/drivers/mtd/rammtd.c On Thu, Dec 2, 2021 at 7:06 AM Petro Karashchenko < petro.karashche...@gmail.com> wrote: > Hello, > >

Re: blockmtd device on top of /dev/null

2021-12-01 Thread Gregory Nutt
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