NodeMCU firmware build log

These are just some steps I took to build a custom firmware for my ESP-12E chip. It wasn't hard at all, just had to build it in a clean VM with installed dependencies.

  1. Started off with creating a VM (Linux 16.04 LTS)
  2. Cloned the firmware
  3. Cloned the toolchain
  4. Installed the following packages
sudo apt-get install vim build-essential make unrar-free autoconf automake libtool gcc g++ gperf flex bison texinfo gawk ncurses-dev libexpat-dev python-dev sed git unzip bash help2man wget bzip2 libtool-bin python-setuptools gcc g++ gperf libc-dbg ncurses-dev expat lua5.1 lua5.1-doc luarocks  
for m in bitlib luafilesystem md5 luaposix luasocket; do sudo luarocks install $m; done  

Now, I don't like getting the stock pip provided by the repos, so I installed python-setuptools and installed the latest pip. That further allowed me to install pyserial and mkdocs

Once having installed all these things, it was time to get building. So, cd into the esp-open-sdk and hit make

Once having done that, path needs to be updated as per the success message. I just added it to my .bashrc

And finally just build the firmware. Now if there are any errors along the way, it's most likely because of a missing lib or module.