This repository is intended to create a simple environment to generate builds of custom micropython firmware at Odditive. However, you can also freely use it providing links to your repo as the arguments.
Build the docker image:
docker build -t odditive-micropython .Use build-args to provide arguments such as:
docker build -t odditive-micropython --build-arg BRANCH=add-wps-and-netstatus .Then create a container from the image using:
docker create --name odditive-micropython odditive-micropythonThen copy the the firmware into your filesystem.
docker cp odditive-micropython:/micropython/ports/esp32/build/firmware.bin firmware.binClear your ESP:
esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART erase_flashInstall firmware into the ESP:
esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash -z 0x1000 firmware.binProvided arguments are following:
REPOSITORY - Link to your fork of micropython.
BRANCH - Git branch of your fork to be deployed.
VERSION - Hash of supported ESP-IDF version.