After following all the steps it still didn't work.. and then I figured out why.. I was uploading the micropython.bin file all these times, while it should have been the firmware.bin file... I have no words lol...
Anyways, maybe these previous 'makes' would have failed too, even with the correct .bin file, we will never know I guess. For now, here are the steps that seems to be working for me (running Ubuntu 20.04, fresh install) using ESP-IDF v4.2 and MicroPython v1.18. Step 1 is to install the ESP-IDF tools:
Code: Select all
o sudo apt-get -y update
o sudo apt-get -y upgrade
o sudo apt-get -y install build-essential libffi-dev git pkg-config cmake virtualenv python3-pip python3-virtualenv~
o cd ~
o git clone -b v4.2 --recursive https://github.com/espressif/esp-idf.git
(if you already have a copy of the ESP-IDF you can update its version by using):
cd esp-idf
git checkout v4.2
git submodule update --init --recursive
o cd esp-idf/
o git pull (this one doesn't seem to work, skipped)
o ./install.sh (note: this time without the specific 'esp32')
o source export.sh (NOTE: do not use ./export.sh)
o cd ..
Code: Select all
o git clone https://github.com/micropython/micropython.git
o cd micropython/
o git submodule update --init
o cd mpy-cross/
o make
o cd ..
o cd ports/esp32
o make (with this you start building your custom firmware right away)
Let me know if this works for you @davef!