The implementation uses the object based capabilities, which avoids
complication about different flash block sizes. The ROM partition is
placed between the text and writable filesystem sections, and the latter
size is unchanged. VfsRom sizes are:
- NRF51x22: 12K
- NRF52832: 128K
- NRF52840: 256K
- NRF9160: 256K
Use frozen `_boot.py` to set up and mount the filesystem, replacing a mix
of C-Code and Python code. The mkfs part has been simplified to save code.
Tested with Microbit and Arduino Nano Connect.
Signed-off-by: Damien George <damien@micropython.org>
Signed-off-by: robert-hh <robert@hammelrath.com>
Applies to drivers/examples/extmod/port-modules/tools.
This work was funded through GitHub Sponsors.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
Add a helper script _mkfs.py which automatically formats the file system if
nrf.Flash() is located and a VFS file system has been included in the
compilation.
The precedence is: first LFS1, LFS2 then FAT.