Copyright © https://mongoose-os.com

Mongoose OS Forum

frame
ATTENTION! This forum has moved to:

https://community.mongoose-os.com

Do not post any new messages.

Issues with building demo app for ESP8266 1M or 2M flash

1. Describe your goal

I want to be able to build the demo firmware for ESP8266 1M

2. Show what you do to achieve the goal - the code, commands, etc

Followed all the steps in the guide page of your website
- selected the board I want to build
- cloned the app mos clone https://github.com/mongoose-os-apps/demo-js app1
- typed mos build which in terms runs mos build --platform esp8266 --build-var BOARD=esp8266-1M

3. Show the result you see - logs, output, observed behavior

Build fails and reading the very long log I can see the following

Fetching libmbedtls-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/mbedtls/releases/download/2.11.0/libmbedtls-esp8266-esp8266-1M.a...
E0204 11:18:23.197655       1 swmodule.go:349] GitHub asset libmbedtls-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/mbedtls: no asset libmbedtls-esp8266-esp8266-1M.a found in release 2.11.0
Fetching libmongoose-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/mongoose/releases/download/2.11.0/libmongoose-esp8266-esp8266-1M.a...
E0204 11:18:32.163173       1 swmodule.go:349] GitHub asset libmongoose-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/mongoose: no asset libmongoose-esp8266-esp8266-1M.a found in release 2.11.0
Fetching libota-common-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/ota-common/releases/download/2.11.0/libota-common-esp8266-esp8266-1M.a...
E0204 11:18:36.896865       1 swmodule.go:349] GitHub asset libota-common-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/ota-common: no asset libota-common-esp8266-esp8266-1M.a found in release 2.11.0
Fetching libota-http-client-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/ota-http-client/releases/download/2.11.0/libota-http-client-esp8266-esp8266-1M.a...
E0204 11:18:41.446644       1 swmodule.go:349] GitHub asset libota-http-client-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/ota-http-client: no asset libota-http-client-esp8266-esp8266-1M.a found in release 2.11.0
Fetching libota-shadow-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/ota-shadow/releases/download/2.11.0/libota-shadow-esp8266-esp8266-1M.a...
E0204 11:18:45.965938       1 swmodule.go:349] GitHub asset libota-shadow-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/ota-shadow: no asset libota-shadow-esp8266-esp8266-1M.a found in release 2.11.0
Fetching libdash-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/dash/releases/download/2.11.0/libdash-esp8266-esp8266-1M.a...
E0204 11:18:50.570515       1 swmodule.go:349] GitHub asset libdash-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/dash: no asset libdash-esp8266-esp8266-1M.a found in release 2.11.0
Fetching libota-http-server-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/ota-http-server/releases/download/2.11.0/libota-http-server-esp8266-esp8266-1M.a...
E0204 11:18:55.288322       1 swmodule.go:349] GitHub asset libota-http-server-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/ota-http-server: no asset libota-http-server-esp8266-esp8266-1M.a found in release 2.11.0
Fetching librpc-service-ota-esp8266-esp8266-1M.a (2.11.0) from https://github.com/mongoose-os-libs/rpc-service-ota/releases/download/2.11.0/librpc-service-ota-esp8266-esp8266-1M.a...
E0204 11:18:59.528353       1 swmodule.go:349] GitHub asset librpc-service-ota-esp8266-esp8266-1M.a download failed (attempt 3): mongoose-os-libs/rpc-service-ota: no asset librpc-service-ota-esp8266-esp8266-1M.a found in release 2.11.0
Adding api_rpc.js: SPIFFS_write failed: -10001
*** Out of space, tried to write 2792 bytes ***
/mongoose-os/fw/platforms/esp8266/Makefile.build:468: recipe for target '/fwbuild-volumes/2.11.0/apps/app1/esp8266/build_contexts/build_ctx_496953371/build/objs/fw_temp/fs.bin' failed
make: *** [/fwbuild-volumes/2.11.0/apps/app1/esp8266/build_contexts/build_ctx_496953371/build/objs/fw_temp/fs.bin] Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/app'
Error: exit status 2
/go/src/cesanta.com/mos/build_local.go:653: 
/go/src/cesanta.com/mos/build_local.go:640: 
/go/src/cesanta.com/mos/build_local.go:401: 
/go/src/cesanta.com/mos/build.go:205: 
/go/src/cesanta.com/mos/build.go:148: 
/go/src/cesanta.com/mos/main.go:176: build failed
Error: /go/src/cesanta.com/mos/build_remote.go:309: build failed
/go/src/cesanta.com/mos/build.go:205: 
/go/src/cesanta.com/mos/build.go:148: 
/go/src/cesanta.com/mos/main.go:176: build failed
exit status 1

4. Describe the result you expect
I want to be able to build the firmware for ESP8266 1M

Comments

  • nliviunliviu Romania

    When you build for ESP8266-1M/2M the filesystem has only 128KB and there not enough space for all the api_*.js

    Start with the empty application and add only the libraries you really need.
    If you don't need mJS, demo-c implements the same functionality as demo-js does, but uses C instead of mJS.

  • edited February 4

    Thank you seems that the c demo builds ok.

    Got it, now it makes sense, although probably a mention should be put somewhere that the demo app is too big, I ordered some 4M chips will test if I can update the ESP-01 with them

    Mersi de ajutor :)

  • nliviunliviu Romania

    :smile:

    You can't disable libraries directly in the demo-js application. It loads indirectly demo-bundle which links in a lot of libraries. Have a look at *.yml.

    My approach is to start with the empty application and add the libraries I need in mos.yml.

Sign In or Register to comment.