You won't have the block drive unless you do what Greg suggested.
But for mounting nxffs on an MTD partition you don't need the block driver.
Thanks, Sara.
Yes, we double faulted on that. The sequences of operations would not
produce a block driver BUT a block driver is not needed.
The snippet you pasted are with some typos.
Try it:
/****************************************************************************
* Name: format_nxffs
*
* Description:
* Register a mtd driver and mount a Little FS over it.
I assume that is a typo in the original file? "Little FS"
*
* Parameters:
* mtd - Pointer to a pre-allocated mtd partition.
* mnt_pt - Mount point
*
* Returned Value:
* Zero on success; a negated errno value on failure.
*
****************************************************************************/
#if defined (CONFIG_ESP32_SPIFLASH_NXFFS)
static int format_nxffs(FAR struct mtd_dev_s *mtd, const char *mnt_pt)
The option is to mount the NXFFS from the NSH command line. But then
you have to omit the block driver argument:
nsh> mount -t nxffs /mnt/mystuff