Skip to content

odditive/docker-micropython-esp32

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Firmware builder on Docker container

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.

Usage

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-micropython

Then copy the the firmware into your filesystem.

  docker cp odditive-micropython:/micropython/ports/esp32/build/firmware.bin firmware.bin

Deployment

Clear your ESP:

  esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART erase_flash

Install firmware into the ESP:

  esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 460800 write_flash -z 0x1000 firmware.bin

Configurations

Provided 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.

About

A Docker config to build micropython forks for ESP32.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published