I’m evaluating Mongoose OS for use in our project. We have two main requirements:
possibility of building from source code (hotfixing, improvements, contributions)
running on Linux x86 (ideally posix platform build, but emulation also would be ok)
My goal is: Building from source for ESP32 and Linux x86 platforms
My actions are:
docker run -v pwd:/mongoose-os -it mgos/esp32-build:3.2-r7 bash
cd /mongoose-os/platforms/esp32
make -f Makefile.build
The result I see is: /opt/Espressif/esp-idf/components/bootloader_support/src/secure_boot_signatures.c:28:28: fatal error: mbedtls/sha256.h: No such file or directory
My expectation & question is:
Is there any instruction how to build mongoose os and libs from source? (at least what are ESP-IDF and other deps versions know to build with Mongoose OS)
Is it possible to build regular x86 Linux binary to improve testing and development times? Something like native_posix board in Zephyr OS (I found there is posix/ubuntu platforms code but for now it doesn’t look useful)
Is possible to receive for restricted libraries if we decide to use enterprise license?
Few points to add - some parts of Mongoose OS are closed-source, specifically, all OTA-related functionality and a private fork of mbedTLS.
Thus, if 100% source build is a hard requirement, look elsewhere.
@cpq Thanks for your suggestion - I have tried to build for ubuntu platform
I cloned the demo-c project & build it with --platform ubuntu
What I see is below:
$ ./bin/app1
main PIDs: parent=16352 child=16353 uid=1000 gid=1000 euid=1000 egid=1000
ubuntu_cap_init Lacking capability to bind ports <1024, continuing anyway
ubuntu_cap_init Cannot change to directory (null)
main Exiting. Have a great day!
should I run it from the docker image?
what have I missed?
Thanks