Skip to content

Instantly share code, notes, and snippets.

@yeyeto2788
Last active October 25, 2018 14:44
Show Gist options
  • Save yeyeto2788/a3b07503b5c7e3023ef61c750dcb873d to your computer and use it in GitHub Desktop.
Save yeyeto2788/a3b07503b5c7e3023ef61c750dcb873d to your computer and use it in GitHub Desktop.
Brief process to be able to build MicroPython firmware images.
echo **********************************
echo ********** Update OS *************
echo **********************************
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get install build-essential srecord make unrar-free autoconf automake libtool-bin gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat-dev python python-serial sed git unzip help2man -y
echo **********************************
echo ********* Build Open SDK *********
echo **********************************
cd /opt
sudo git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
sudo chown -R pi:pi /opt/esp-open-sdk
cd esp-open-sdk
make
echo **********************************
echo ********* Set up PATH ************
echo **********************************
cd ~
echo "/opt/esp-open-sdk/xtensa-lx106-elf/bin:$PATH" >> .profile
echo "/opt/esp-open-sdk/esptool:$PATH" >> .profile
echo **********************************
echo ** Clone Micropython Repository **
echo **********************************
cd ~
git clone https://github.com/micropython/micropython.git
cd micropython
git submodule update --init
make -C mpy-cross
echo **********************************
echo ********* Build Firmware *********
echo **********************************
cd ports/esp8266
make clean
make axtls
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment