esp8266 flashing with nodemcu firmware (linux debian testing)


flashing the ESP-01 using node MCU

i use this thread http://www.esp8266.com/viewtopic.php?f=23&t=1062#p5963

kadamski « lead the way »

download esp open sdk

first clone the esp open sdk and compile it standalone (take a while), without root because i have access to this
cd /opt/Espressif/nodemcu
git clone https://github.com/pfalcon/esp-open-sdk.git
cd /opt/Espressif/nodemcu/esp-open-sdk
make STANDALONE=y
take a coffee 🙂 after that modify your path env variable
export PATH=/opt/Espressif/nodemcu/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
after that download nodemcu
cd /opt/Espressif/nodemcu/nodemcu-firmware
git clone https://github.com/nodemcu/nodemcu-firmware.git

compile nodemcu

compile  nodemcu using the compiler
cd /opt/Espressif/nodemcu/nodemcu-firmware
make

upload nodemcu to the ESP-01

prepare the firmware and download it
cd /opt/Espressif/nodemcu/nodemcu-firmware
esptool.py elf2image app/.output/eagle/debug/image/eagle.app.v6.out
esptool.py write_flash 0x00000 app/.output/eagle/debug/image/eagle.app.v6.out-0x00000.bin 0x10000 app/.output/eagle/debug/image/eagle.app.v6.out-0x10000.bin
connect minicom to the card (9600baud 8N1) and then reboot the ESP , if its ok you will see that prompt
>NodeMCU 0.9.5 build 20150213 powered by Lua 5.1.4
lua: cannot open init.lua
>

upload init.lua file

works very well