circuitpython/ports/esp32/partitions.csv
Damien George 31de44775c esp32: Add VFS FAT partition to partitions.csv and mount it as the FS.
This patch uses the newly-added esp32.Partition class to replace the
existing FlashBdev class.  Partition objects implement the block protocol
so can be directly mounted via uos.mount().  This has the following
benefits:

- allows the filesystem partition location and size to be specified in
  partitions.csv, and overridden by a particular board
- very easily allows to have multiple filesystems by simply adding extra
  entries to partitions.csv
- improves efficiency/speed of filesystem operations because the block
  device is implemented fully in C
- opens the possibility to have encrypted flash storage (since Partitions
  can be encrypted)

Note that this patch is fully backwards compatible: existing filesystems
remain untouched and work with this new code.
2019-09-10 15:14:13 +10:00

331 B

1# Name, Type, SubType, Offset, Size, Flags
2# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
3nvs, data, nvs, 0x9000, 0x6000,
4phy_init, data, phy, 0xf000, 0x1000,
5factory, app, factory, 0x10000, 0x180000,
6vfs, data, fat, 0x200000, 0x200000,