My goal is: To integrate fstab image file into the fw.zip
2. My actions are:I configured my esp32 (4mb flash size) according to this link. I generated an image file named ‘mnt.img’ successfully.
3. The result I see is: I am getting an error while building the code after making changes in mos.yml file regarding the image file. “FileNotFoundError: [Errno 2] No such file or directory: ‘./src/mnt.img’”.
My Build Log Contains:
FS stats : space total=233681, used=118723, free=114958
GEN /data/fwbuild-volumes/latest/apps/test/esp32/build_contexts/build_ctx_560592761/build/objs/fw_temp/manifest.json
Traceback (most recent call last):
File “/data/fwbuild-volumes/latest/apps/test/esp32/build_contexts/build_ctx_560592761/deps/modules/mongoose-os/tools/mgos_fw_meta.py”, line 543, in
handlersargs.cmd
File “/data/fwbuild-volumes/latest/apps/test/esp32/build_contexts/build_ctx_560592761/deps/modules/mongoose-os/tools/mgos_fw_meta.py”, line 366, in cmd_create_manifest
for fname in os.listdir(src):
FileNotFoundError: [Errno 2] No such file or directory: ‘./src/mnt.img’
/data/fwbuild-volumes/latest/apps/test/esp32/build_contexts/build_ctx_560592761/deps/modules/mongoose-os/tools/mk/mgos_fw_meta.mk:23: recipe for target ‘/data/fwbuild-volumes/latest/apps/test/esp32/build_contexts/build_ctx_560592761/build/objs/fw_temp/manifest.json’ failed
make: *** [/data/fwbuild-volumes/latest/apps/test/esp32/build_contexts/build_ctx_560592761/build/objs/fw_temp/manifest.json] Error 1
make: Leaving directory ‘/app’
Error: exit status 2
/go/src/github.com/mongoose-os/mos/mos/build_local.go:679:
/go/src/github.com/mongoose-os/mos/mos/build_local.go:666:
/go/src/github.com/mongoose-os/mos/mos/build_local.go:431:
/go/src/github.com/mongoose-os/mos/mos/build.go:223:
/go/src/github.com/mongoose-os/mos/mos/build.go:166:
/go/src/github.com/mongoose-os/mos/mos/main.go:194: build failed
- My expectation & question is: I think I am not putting the build variables properly in my mos.yml file.
mos.yml:
author: mongoose-os
description: A JS-enabled demo Mongoose OS firmwarearch: PLATFORM
version: 1.0
manifest_version: 2017-05-18
libs_version: ${mos.version}
modules_version: ${mos.version}
mongoose_os_version: ${mos.version}config_schema:
- [“mqtt.server”, “iot.eclipse.org:1883”]
- [“i2c.enable”, true]
- [“sys.mount.path”, “/mnt”]
- [“sys.mount.dev_type”, “esp32part”]
- [“sys.mount.dev_opts”, “{“label”: “data”}”]
- [“sys.mount.fs_type”, “LFS”]
tags:
- js
filesystem:
- fs
libs:
- origin: https://github.com/mongoose-os-libs/boards
- origin: https://github.com/mongoose-os-libs/js-demo-bundle
- origin: https://github.com/mongoose-os-libs/vfs-fs-lfs
build_vars: # Add these
ESP_IDF_EXTRA_PARTITION: fs_ext,data,spiffs,256K # two lines
APP_EXTRA_FW_PARTS: fs_data:type=fs,src=src/mnt.img,ptn=fs_ext
Please help.