-
-
Notifications
You must be signed in to change notification settings - Fork 344
Linux Quickstart
Nicolas BESSON edited this page Apr 26, 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.
sudo apt-get install make unrar autoconf automake libtool libtool gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat1-dev python sed python-serial srecord bc git
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
We recommend /opt/ but you can use anything you want
mkdir -p /opt/
cd /opt/
(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...
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)
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
cd $SMING_HOME
make spiffy
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
cd $ESP_HOME
git clone https://github.com/raburton/esptool2
cd esptool2
make
export PATH=$PATH:$ESP_HOME/esptool2
cd $SMING_HOME/../samples/Basic_Blink
make
cd $SMING_HOME/../samples/Basic_Blink
make flash
You might want to configure your project before building. Edit Makefile-user.mk