Skip to content
Ville Ilvonen edited this page Jun 14, 2016 · 74 revisions

You will need Sming 1.1 or newer to support cross-platform tools. You might want to use sming-bootstrap. There is precompiled esp-open-sdk (64-bit) or (32-bit) available.

Install prerequisites

Ubuntu
sudo apt-get install make unrar autoconf automake libtool libtool-bin gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat1-dev python sed python-serial srecord bc git help2man
Fedora
sudo dnf install make unrar autoconf automake libtool gcc gcc-c++ gperf flex bison texinfo gawk ncurses-devel expat-devel python sed pyserial srecord bc git patch

Prepare directory

We recommend /opt/ but you can use anything you want

mkdir -p /opt/
cd /opt/

Build esp-open-sdk

(Or get precompiled esp-open-sdk (64-bit) or (32-bit))

git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
cd esp-open-sdk

sudo chown -R [username] ./ # be careful this command and do damage if used in the wrong directory, try with out sudo first!
make STANDALONE=y # It will take a while...

Set ENV Variables

export ESP_HOME=/opt/esp-open-sdk
export SMING_HOME=~/Sming/Sming

To Sming environment paths permanently: Just go to the Sming home directory /opt/Sming/Sming and edit the file Makefile: because this library has defaults for a nutter and programmers (like myself add config options and never document them)

more information here

Get and Build Sming Core:

cd $SMING_HOME/../..
git clone https://github.com/SmingHub/Sming.git

# If you don't want to use develop branch:
git checkout origin/master

cd Sming/Sming
make

Build spiffy (if required):

cd $SMING_HOME
make spiffy

Install esptool.py:

sudo apt-get install python-serial unzip
wget https://github.com/themadinventor/esptool/archive/master.zip
unzip master.zip
mv esptool-master $ESP_HOME/esptool
rm master.zip

Install esptool2:

cd  $ESP_HOME
git clone https://github.com/raburton/esptool2
cd esptool2
make
export PATH=$PATH:$ESP_HOME/esptool2

Build a 'Basic Blink' example:

cd $SMING_HOME/../samples/Basic_Blink
make

Build and flash a 'Basic Blink' example (using ttyUSB0):

cd $SMING_HOME/../samples/Basic_Blink
make flash

Configuration

You might want to configure your project before building. Edit Makefile-user.mk