Re: Replacing SmartFS to LittleFS

2021-04-29 Thread Flavio Castro Alves Filho
Hello Xiang, > > > Yes, if you just want to create an empty littlefs partition, littlefs > driver can do it without the userspace tool assistance. > Either run the mount command from nsh: > mount -t littlefs -o autoformat /dev/mtd /mnt > Or call mount function from board_initialize like this: > mo

Re: Replacing SmartFS to LittleFS

2021-04-28 Thread Xiang Xiao
On Thu, Apr 29, 2021 at 8:12 AM Flavio Castro Alves Filho < flavio.al...@gmail.com> wrote: > Hello Xiang, > > Thank you for your quick response. > > How do I manage the format of a littlefs 'disk' from programming (not > nutshell) ? > > If you want to generate the initial littlefs image in host en

Re: Replacing SmartFS to LittleFS

2021-04-28 Thread Flavio Castro Alves Filho
Hello Xiang, Thank you for your quick response. How do I manage the format of a littlefs 'disk' from programming (not nutshell) ? I am looking for something similar to 'mksmatfs' function. Or only the flash_eraseall function is enough? Or should I add the "-o autoformat" option on the last para

Re: Replacing SmartFS to LittleFS

2021-04-28 Thread Xiang Xiao
LittleFS can talk directly with the standard MTD driver, so you just need: 1. Call register_mtddriver in your board file 2. Run mount from nsh like this: mount -t littlefs -o autoformat /dev/mtd /mnt On Wed, Apr 28, 2021 at 8:03 PM Flavio Castro Alves Filho < flavio.al...@gmail