ESP8266 Open SDK

From ElectroDragon
Jump to: navigation, search
git clone https://github.com/adafruit/esp8266-micropython-vagrant.git
cd esp8266-micropython-vagrant
  • provision vagrant box
vagrant up and vagrant ssh 

Compile SDK

cd ~/esp-open-sdk
make STANDALONE=y

This will take 30-90 mins' to finish, actual time depends on your machine, not very necessary to do the following step, edit the Vagrantfile

# Bump the memory allocated to the VM up to 1 gigabyte as the compilation of
# the esp-open-sdk tools requires more memory to complete.
v.memory = 1024

and the compiling will be finished like this, SDK is installed now.

...
Xtensa toolchain is built, to use it:
 
export PATH=/home/vagrant/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
 
Espressif ESP8266 SDK is installed, its libraries and headers are merged with the toolchain

Setup the Path of Bin of SDK

Run this command to update the .profile file that runs whenever you log into the virtual machine:

echo "PATH=$(pwd)/xtensa-lx106-elf/bin:\$PATH" >> ~/.profile

Logout and login again to process the update:

exit
vagrant ssh

and check the path is correct or not

echo $PATH

the result should be

/home/vagrant/esp-open-sdk/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
  • You can also check the .profile directly by following command
vi ~/.profile

and the result should be like:

Check the path of bin.png