sudo apt-get install git wget make libncurses-dev flex bison gperf python python-serial
for 64-bit Linux: https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
for 32-bit Linux: https://dl.espressif.com/dl/xtensa-esp32-elf-linux32-1.22.0-80-g6c4433a-5.2.0.tar.gz
mkdir -p ~/esp
cd ~/esp
tar -xzf ~/Downloads/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
Add the following to the end of your ~/.bashrc
file
export PATH="$PATH:$HOME/esp/xtensa-esp32-elf/bin"
sudo apt-get install build-essential libreadline-dev libffi-dev git pkg-config
cd ~/ohs2018-badge-firmware/
git submodule update --init --recursive
add this to the end of your ~/.bashrc
file
export ESPIDF="$HOME/ohs2018-badge-firmware/esp-idf"
cd micropython/
make -C mpy-cross
cd ports/esp32/
make
make erase
make deploy