cesanta / mongoose-os

Mongoose OS - an IoT Firmware Development Framework. Supported microcontrollers: ESP32, ESP8266, CC3220, CC3200, STM32F4, STM32L4, STM32F7. Amazon AWS IoT, Microsoft Azure, Google IoT Core integrated. Code in C or JavaScript.
https://mongoose-os.com
Other
2.49k stars 430 forks source link

MOS 2.13.0+ BUG - drops sys.mount causing ext_fs to NOT MOUNT! #501

Closed tripflex closed 5 years ago

tripflex commented 5 years ago

Did clean build on latest and found my ext_fs was not mounting for some reason .. dug into this and found the problem is related to the 2.13.0+ versions of MOS, which for some reason is dropping (or not adding) the sys.mount defined in my mos.yml file.

Build using 2.12.1 and it works fine ... so anybody using 2.13.0+ and trying to use ext_fs as defined in the docs: https://mongoose-os.com/docs/mongoose-os/howtos/fs.md

It will NOT work.

conf0.json in 2.13.0+:

 "sys": {
  "atca": {
   "i2c_addr": 96,
   "ecdh_slots_mask": 12
  },
  "tz_spec": "EST5EDT4,M3.2.0/02:00:00,M11.1.0/02:00:00",
  "wdt_timeout": 30
 },

conf0.json in 2.12.1

 "sys": {
  "mount": {
   "path": "/data",
   "dev_type": "esp32part",
   "dev_opts": "{\"label\": \"data\"}",
   "fs_type": "SPIFFS"
  },
  "tz_spec": "EST5EDT4,M3.2.0/02:00:00,M11.1.0/02:00:00",
  "wdt_timeout": 30,
  "atca": {
   "i2c_addr": 96,
   "ecdh_slots_mask": 12
  }
 },

Only thing i can tell based on the commits is that this file was removed: https://github.com/cesanta/mongoose-os/blob/2.12.1/fw/src/mgos_sys_config.yaml

tripflex commented 5 years ago

https://gitter.im/cesanta/mongoose-os?at=5cc847c38446a6023ea0761c

If something is "deprecated" it would be nice if you guys WOULD MENTION THAT IN THE CHANGELOG/RELEASELOG -- more like REMOVED

UGH it's like playing whack-a-mole anytime you guys release updates 😠

nliviu commented 5 years ago

Has been restored with https://github.com/mongoose-os-libs/fstab/commit/bbcf31da4ed735f7f7ecf1fb82c75eb8dc41a561