Hi I trying to build a SPIFFS on esp8266 using the fstab, but the mount fails
The mos.yml:
- ["devtab.dev0.name", "s", "mydevice", {title: "Device name"}]
- ["devtab.dev0.type", "s", "sysflash", {title: "Device type"}]
- ["devtab.dev0.opts", "s", '{"addr": 3145728, "size": 524288}', {title: "Device options"}]
- ["fstab.fs0.dev", "s", "mydevice", {title: "Device name"}]
- ["fstab.fs0.type", "s", "SPIFFS", {title: "FS type"}]
- ["fstab.fs0.opts", "s", "", {title: "FS options"}]
- ["fstab.fs0.path", "s", "/fs", {title: "Mount point"}]
The error:
[Oct 1 16:57:21.730] esp_main.c:172 mongoose 1.0 (20191001-195654)
[Oct 1 16:57:21.730] esp_main.c:174 Mongoose OS 2.15.0 (20191001-195654/2.15.0-g787ac38)
[Oct 1 16:57:21.730] esp_main.c:178 CPU: ESP8266EX, 160 MHz, RAM: 51952 total, 49748 free
[Oct 1 16:57:21.730] esp_main.c:180 SDK 2.2.1(1247cc5); flash: 4M
[Oct 1 16:57:21.730] esp_exc.c:211 Reset cause: 4 (soft reset)
[Oct 1 16:57:21.730] mg_lwip_ev_mgr.c:93 Mongoose 6.15, LwIP 1.4.1
[Oct 1 16:57:21.730] mg_ssl_if_mbedtls.c:57 mbed TLS 2.16.0-cesanta4
[Oct 1 16:57:21.730] mgos_vfs_dev.c:73 sfl0: sysflash (), size 4194304
[Oct 1 16:57:21.730] mgos_vfs_dev.c:73 root: part ({"dev": "sfl0", "offset": 32768, "size": 262144}), size 262144
[Oct 1 16:57:21.730] mgos_vfs.c:147 /: SPIFFS @ root, opts
[Oct 1 16:57:21.762] mgos_vfs.c:320 /: size 233681, used: 28614, free: 205067
[Oct 1 16:57:21.931] mgos_sys_config.c:368 MAC: a2:20:a6:02:70:a2
[Oct 1 16:57:21.931] mgos_sys_config.c:376 WDT: 30 seconds
[Oct 1 16:57:21.931] mgos_i2c_gpio_maste:250 I2C GPIO init ok (SDA: 4, SCL: 5, freq: 100000)
[Oct 1 16:57:21.931] mgos_vfs_dev.c:73 mydevice: sysflash ({"addr": 3145728, "size": 524288}), size 4194304
[Oct 1 16:57:21.931] mgos_vfs.c:147 /fs: SPIFFS @ mydevice, opts
[Oct 1 16:57:21.931] mgos_vfs_fs_spiffs.:155 addr 0x0 size 4194304 bs 4096 ps 256 es 4096 nfd 10 encr 0 => -10025
[Oct 1 16:57:21.931] mgos_vfs_fs_spiffs.:203 SPIFFS mount failed
[Oct 1 16:57:21.931] mgos_vfs.c:155 FS SPIFFS : mount failed
[Oct 1 16:57:21.931] mgos_deps_init.c:116 fstab init failed
[Oct 1 16:57:21.931] esp_main.c:186 MG init error: -32
[Oct 1 16:57:21.931] esp_main.c:200 Init failed: -32
[Oct 1 16:57:22.429] mgos_vfs.c:990 Unmounting filesystems
I missing something?
I see some example that sets the fstab.fs0.opts bs, and cs, but I don’t know what these are.
I also not seting FS_SIZE in buildvars. I read that are deprecated.
Any help to understand this I appreciate.