mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-09 22:08:56 +08:00
174a6aab6f
Add an NSH command to format a device with littlefs, analogous to mkfatfs for FAT filesystems. The command unmounts the mount point, then remounts with forceformat to format and mount in one step. Enable the command on boards that use littlefs as primary storage (airbrainh743 and kakuteh7v2), and document it in the airbrainh743 flight controller page as a recovery procedure for a corrupted flash filesystem. Usage: mklittlefs /dev/mtd0 /fs/flash