Posted on Leave a comment

Flashing ESP Boards on Ubuntu Linux

Flashing the compact, affordable Wi-Fi boards like ESP8266s and ESP32s is very easy to do using the terminal.

First, we need to install Python’s Pip. Using pip, we can install esptool which will be used to flash the boards.

sudo apt install python3-pip
pip3 install esptool

We need a .bin file to flash to the ESP boards. This could be the latest release of Tasmota, or a preconfigured ESPHome binary. I already have ESPHome running on my Docker server, so I’ll be using it.

To download binaries from ESPHome, just create a new configuration, then click Options -> Compile. Once it is finished compiling, you can download the binary.

Now to flash this binary, we can use esptool. When we installed it using pip, it was placed in ~/.local/bin. So we can navigate there, plug in the ESP board, and flash the binary using that tool.

cd ~/.local/bin
sudo ./esptool.py write_flash 0 ~/Downloads/fordfusion.bin