walnux/boards
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
..
arm boards: add support for PIC32CZ CA70 Curiosity Evaluation Kit 2025-07-30 19:28:07 +08:00
arm64 boards/imx93-evk: Add a flat build config with OP-TEE 2025-08-03 13:00:47 -03:00
avr arch/avr/avrdx: do not copy const variables into RAM 2025-07-10 12:21:40 -03:00
dummy Remove exra whitespace from files (#189) 2020-01-31 09:24:49 -06:00
hc/m9s12 boards/hc/m9s12: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
mips drivers/fs:Always use register_mtddriver() to register the MTD device (patch2) 2025-07-21 15:15:30 -03:00
misoc/lm32/misoc boards/misoc/lm32: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
or1k/mor1kx/or1k boards/defconfig: remove unused config about dd 2025-04-20 00:41:26 +08:00
renesas boards: net tcp backlog is enabled by default 2025-06-26 09:32:54 -03:00
risc-v bugix/risc-v/esp32c6: Fix build error of LP_I2C 2025-08-05 08:00:12 -03:00
sim/sim/sim boards: net tcp backlog is enabled by default 2025-06-26 09:32:54 -03:00
sparc style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
tricore/tc3xx/tc397 style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
x86/qemu/qemu-i486 qemu-i486: Simplify Make.defs by include Toolchain.defs 2025-01-27 02:28:39 +08:00
x86_64/intel64/qemu-intel64 boards/qemu-intel64/qemu.ld: add .lbss, .ldata and .lrodata to approriate sections 2025-07-07 23:45:15 +08:00
xtensa drivers/mtd: introduce nvblk 2025-08-06 01:53:56 +08:00
z16/z16f/z16f2800100zcog boards/z16/z16f: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
z80 drivers/fs:Always use register_mtddriver() to register the MTD device. 2025-07-16 14:11:41 +08:00
.gitignore build: Remve the unnecessary .gitignore 2020-05-23 18:00:40 +01:00
Board.mk sh:Change expansion path logic 2024-03-04 01:18:45 +08:00
boardctl.c libc/elf: rename modlib to libelf 2025-04-11 09:43:22 +08:00
CMakeLists.txt boards: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
dummy.c boards: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00
Kconfig boards: add support for PIC32CZ CA70 Curiosity Evaluation Kit 2025-07-30 19:28:07 +08:00
Makefile boards: migrate to SPDX identifier 2024-11-12 22:20:59 +08:00