Micropython with NodeMcu ( Compatible : ESP8266, ESP Wroom2)
Channel: Algobel Technologies
Date: 2016-08-09

mkdir MicroPython

ls -l

sudo apt-get install make unrar autoconf automake libtool gcc g++ gperf \
    flex bison texinfo gawk ncurses-dev libexpat-dev python-dev python python-serial \
    sed git unzip bash help2man wget bzip2

sudo apt-get install libtool-bin

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

make STANDALONE=y

cd
gedit ~/.profile   

export PATH=/home/niwantha/MicroPython/esp-open-sdk/xtensa-lx106-elf/bin:$PATH

PATH=$PATH:/home/niwantha/MicroPython/esp-open-sdk/xtensa-lx106-elf/bin

pip install esptool

git clone https://github.com/micropython/micropython


cd ~/micropython

git submodule update --init

make -C mpy-cross

cd ~/micropython/esp8266

make axtls

make

/dev/ttyUSB0

python esptool.py -p SERIAL_PORT_NAME --baud 460800 write_flash --flash_size=8m 0 firmware-combined.bin

esptool.py -p /dev/ttyUSB0 --baud 460800 write_flash --flash_size=8m 0 firmware-combined.bin
screen /dev/ttyUSB0 115200