install OpenSource ESP SDK, which can be found at https://github.com/pfalcon/esp-open-sdk
------------------
run make more than once
export path - export PATH=/home/toobs/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
build micropyton - linux
--------------------------
after downloading the repo with:
git clone https://github.com/micropython/micropython.git
or update with
git pull origin master
run this to pull dependancies
git submodule update --init
then build in the esp8266 directory
make axtls
make axtls
make
check in build directory to find bin
sudo esptool.py -p /dev/ttyUSB0 --baud 460800 write_flash --flash_size=8m 0 firmware-combined.bin
Write the firmware
--------------------
- need esptool
install esptool.py
python /Users/Toobs/anaconda/lib/python2.7/site-packages/esptool.py -p /dev/cu.SLAB_USBtoUART --baud 460800 write_flash --flash_size=8m 0 ~/Downloads/firmware-combined.bin
sudo esptool.py -p /dev/ttyUSB0 --baud 460800 write_flash --flash_size=8m 0 firmware-combined.bin
File transfer to board
----------------------
file from https://github.com/wendlers/mpfshell
git clone https://github.com/wendlers/mpfshell.git
sudo pip install pyserial
sudo pip install colorama
sudo python setup.py install
Simple build script for updating
-------------------
#!/bin/bash
dmesg
read -p "Make sure ESP is connected. Press any key to continue... " -n1 -s
echo 'Lets update OpenSource ESP SDK, which can be found at https://github.com/pfalcon/esp-open-sdk'
cd esp-open-sdk
git pull origin
make
cd ..
echo 'Lets update MicroPython'
cd micropython
export PATH=/home/toobs/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
echo 'Updating Repo'
git pull origin
echo 'Adding deps'
git submodule update --init
echo 'entering esp8266 directory'
cd esp8266
echo 'making axtls'
make axtls
echo 'making micropython for esp8266'
make
echo 'uploading'
sudo esptool.py -p /dev/ttyUSB0 --baud 460800 write_flash --flash_size=8m 0 build/firmware-combined.bin