Last active
October 25, 2018 14:44
-
-
Save yeyeto2788/a3b07503b5c7e3023ef61c750dcb873d to your computer and use it in GitHub Desktop.
Brief process to be able to build MicroPython firmware images.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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