Merge branch 'feature/enable-variable-partition-size-fatfs' into 'master'

fatfs: enabled reading sector size and sectors count from boot sector in rawflash

Closes IDF-4130

See merge request espressif/esp-idf!20412
This commit is contained in:
Roland Dobai
2022-09-30 15:24:26 +08:00
5 changed files with 57 additions and 31 deletions

View File

@@ -185,9 +185,7 @@ class FATFS:
def main() -> None:
args = get_args_for_partition_generator('Create a FAT filesystem and populate it with directory content')
if args.sector_size != 0x1000:
raise NotImplementedError('The sector size not equal to 4096 is currently not supported for read-only mode!')
args = get_args_for_partition_generator('Create a FAT filesystem and populate it with directory content', wl=False)
fatfs = FATFS(sector_size=args.sector_size,
sectors_per_cluster=args.sectors_per_cluster,
size=args.partition_size,