oreh-a opened a new pull request, #8573:
URL: https://github.com/apache/nuttx/pull/8573

   ## Summary
   Adds kernel needed functionality to register filemtd device via IOCTL 
(command line tool will be added to apps folder).
   This will give possibility to mount littlefs, spiffs (and potentially 
others) based on host's files
   
   ## Impact
   No impact
   
   ## Testing
   Testing should be performed when related tool will be added to apps 
repository.
   Preparing:
   config: Simulator, enable littlfs, spiffs, filemtd + mtd loop
   apps: nsh component lomtd is not disabled
   host: create files, e.g., littlefs.dat, spiffs.dat
   
   ./nuttx
   nsh>mount -t hostfs -o fs=/home/oreh /host
   nsh>lomtd -s 1024 -e 4096 -o 0 /dev/mtd0 /host/littlefs.dat
   nsh>mount -t littlefs -f "forceformat" /dev/mtd0 /mnt0
   nsh>ls /mnt0
   
   nsh>lomtd -s 1024 -e 4096 -o 0 /dev/mtd1 /host/spiffs.dat
   nsh>mount -t spiffs -o "forceformat" /dev/mtd1 /mnt1
   nsh>ls /mnt1
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to