walnux/boards/xtensa/esp32
Laczen JMS c506c25f19 drivers/mtd: introduce nvblk
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>
```

Signed-off-by: Laczen JMS <laczenjms@gmail.com>
2025-08-06 01:53:56 +08:00
..
common drivers/mtd: introduce nvblk 2025-08-06 01:53:56 +08:00
esp32-2432S028 libc/elf: rename modlib to libelf 2025-04-11 09:43:22 +08:00
esp32-audio-kit boards/xtensa/esp32: use common board source for SDMMC 2025-06-24 08:08:55 +08:00
esp32-devkitc drivers/mtd: introduce nvblk 2025-08-06 01:53:56 +08:00
esp32-ethernet-kit boards: net tcp backlog is enabled by default 2025-06-26 09:32:54 -03:00
esp32-lyrat boards/xtensa: add SDMMC SPI defconfig to ESP32|S2|S3 boards 2025-06-24 08:08:55 +08:00
esp32-pico-kit boards/xtensa: fix build errors related to data types on ESP32|S3 2025-04-18 09:32:58 +08:00
esp32-sparrow-kit boards: net tcp backlog is enabled by default 2025-06-26 09:32:54 -03:00
esp32-wrover-kit boards/xtensa: add SDMMC SPI defconfig to ESP32|S2|S3 boards 2025-06-24 08:08:55 +08:00
lilygo_tbeam_lora_gps boards/xtensa: fix build errors related to data types on ESP32|S3 2025-04-18 09:32:58 +08:00
ttgo_eink5_v2 boards/xtensa/esp32: use common board source for SDMMC 2025-06-24 08:08:55 +08:00
ttgo_lora_esp32 boards/xtensa: fix build errors related to data types on ESP32|S3 2025-04-18 09:32:58 +08:00
ttgo_t_display_esp32 boards/xtensa/esp32: use common board source for SDMMC 2025-06-24 08:08:55 +08:00