-
Notifications
You must be signed in to change notification settings - Fork 7.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp-idf Docker on armv7f build error (IDFGH-4939) #6730
Comments
Thanks for reporting. |
I would like to +1 this issue because I want to use Raspberry Pis as device programming stations. Currently there is no version of the IDF docker image compatible with arm so this isn't possible. Would be nice if there was an ARM variant of the image to allow running esptool via docker on the Pi. |
Hi @sidwarkd we are working on a new toolchain release to address this issue. However for the purposes of programming, you should be able to install esptool package on your Raspberry PI without installing the whole esp-idf. Esptool can be installed using pip: If you save the project build directory as an artifact, you can then flash the project on an RPi using a command like
This will write the bootloader, partition table and the app using the arguments stored in |
Thanks for the super fast response @igrr. I was just looking into this. I would love to capture the entire build env in a docker image along with the build artifacts so all a programming station has to do is pull the latest docker image and run the esptool. Thanks for the tip on the |
Leaving this here in case it can help someone else. I was able to get the debian:buster-slim image working with esptool installed as a pip package to handle my programming needs. At the time of this writing there is an issue with the debian:bullseye variants that cause lots of errors when run on the Raspberry Pi. |
Environment
git describe --tags
to find it):// v4.2
Problem Description
Building an esp-idf v4.2 docker image on an Ubuntu armv7f cpu raises
Presumably it's because
esp-idf/tools/tools.json
lacks acmake
entry for linux-arm (~ line 380 in the file). This may be sincehttps://github.com/Kitware/CMake
has no binaries for arm architectures.Before exploring other ways to build cmake in the Docker image I'd like to check if espressif has plans already or otherwise if there are special requirements for cmake.
Expected Behavior
Dockerfile uses an approach for building cmake on arm.
Actual Behavior
Build process fails.
Steps to reproduce
docker build - < Dockerfile -t "esp-idf:v4.2" --build-arg IDF_CLONE_BRANCH_OR_TAG=release/v4.2
The text was updated successfully, but these errors were encountered: