Laczen opened a new pull request, #16789: URL: https://github.com/apache/nuttx/pull/16789
## Summary NVBLK provides a block device that operates on top of a non volatile memory (as a mtd device) that enables wear levelling for non volatile memory. It's operation is similar to the dhara wear levelling library, but nvblk is meant to be used on smaller (nor, mram, rram) memory. I am also the author and maintainer of the nvblk library. A block device can be created during startup by using: ``` nvblk_initialize(0, mtd, CONFIG_MTD_NVBLK_DEFAULT_LBS, CONFIG_MTD_NVBLK_DEFAULT_IOBS, CONFIG_MTD_NVBLK_DEFAULT_SPEB); ``` and a fat filesystem on top of this as: ``` nsh> mkfatfs /dev/mtdblock0 nsh> mount -t vfat /dev/mtdblock0 /mnt ``` this fat filesystem can then be used: ``` nsh> echo "test" > /mnt/test.txt nsh> cat test.txt test nsh> ``` ## Impact Impact on users: none, new type of block device is provided for future use Impact on build proces: none, new type of block device is provided for future use Impact on hardware: none, Impact on documentation: none (a sample config will be added), Impact on security: none, Impact on compatibility: none ## Testing The correct operation of this block device was verified on esp32-devkitc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org