<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=ESP8266_GCC_SDK</id>
	<title>ESP8266 GCC SDK - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://w.electrodragon.com/w/index.php?action=history&amp;feed=atom&amp;title=ESP8266_GCC_SDK"/>
	<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=ESP8266_GCC_SDK&amp;action=history"/>
	<updated>2026-06-10T02:01:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://w.electrodragon.com/w/index.php?title=ESP8266_GCC_SDK&amp;diff=8946&amp;oldid=prev</id>
		<title>Chao at 17:04, 26 October 2015</title>
		<link rel="alternate" type="text/html" href="https://w.electrodragon.com/w/index.php?title=ESP8266_GCC_SDK&amp;diff=8946&amp;oldid=prev"/>
		<updated>2015-10-26T17:04:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Building the toolchain ==&lt;br /&gt;
&lt;br /&gt;
=== As root ===&lt;br /&gt;
 apt-get install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk&lt;br /&gt;
 mkdir /opt/Espressif&lt;br /&gt;
 chown $username /opt/Espressif (replace $username with the name of the local user)&lt;br /&gt;
&lt;br /&gt;
=== as local user ===&lt;br /&gt;
 /opt/Espressif&lt;br /&gt;
 git clone -b lx106 git://github.com/jcmvbkbc/crosstool-NG.git &lt;br /&gt;
 cd crosstool-NG&lt;br /&gt;
 ./bootstrap &amp;amp;&amp;amp; ./configure --prefix=`pwd` &amp;amp;&amp;amp; make &amp;amp;&amp;amp; make install&lt;br /&gt;
 ./ct-ng xtensa-lx106-elf&lt;br /&gt;
 ./ct-ng build&lt;br /&gt;
&lt;br /&gt;
== Setting up the SDK ==&lt;br /&gt;
* download V0.92: https://github.com/Edragon/ESP8266/blob/master/esp_iot_sdk_v0.9.2_14_10_24.zip&lt;br /&gt;
* and extra at /opt/Espressif/ESP8266_SDK/&lt;br /&gt;
* Add library files:&lt;br /&gt;
 wget -O /opt/Espressif/ESP8266_SDK/lib/libc.a https://github.com/esp8266/esp8266-wiki/raw/master/libs/libc.a&lt;br /&gt;
 wget -O /opt/Espressif/ESP8266_SDK/lib/libhal.a https://github.com/esp8266/esp8266-wiki/raw/master/libs/libhal.a&lt;br /&gt;
* Add header/inlcude files:&lt;br /&gt;
 wget -O /opt/Espressif/include.tgz https://github.com/esp8266/esp8266-wiki/raw/master/include.tgz&lt;br /&gt;
 cd /opt/Espressif/&lt;br /&gt;
 tar -xvzf include.tgz&lt;br /&gt;
&lt;br /&gt;
== Making the ESP tool ==&lt;br /&gt;
 cd ~&lt;br /&gt;
 wget https://github.com/esp8266/esp8266-wiki/raw/master/deb/src/esptool_0.0.2.orig.tar.gz&lt;br /&gt;
 tar -xvzf esptool_0.0.2.orig.tar.gz&lt;br /&gt;
 sudo cp esptool/esptool /usr/bin&lt;br /&gt;
&lt;br /&gt;
== Make/compile the AT  Example ==&lt;br /&gt;
comment the line #include user_config.h from /opt/Espressif/ESP8266_SDK/include/osapi.h&lt;br /&gt;
 cd ~&lt;br /&gt;
 mkdir esp_sources&lt;br /&gt;
 cd esp_sources&lt;br /&gt;
* copy the example at from SDK&lt;br /&gt;
 cp -R /opt/Espressif/ESP8266_SDK/examples/at at&lt;br /&gt;
 cd at &lt;br /&gt;
* get the make file&lt;br /&gt;
 wget -O Makefile https://gist.githubusercontent.com/zarya/7e1a08160bf3b7ac220f/raw/a58ed9a1243dece92b671062bb16555844b326ab/gistfile1.mak&lt;br /&gt;
 make&lt;br /&gt;
will finallly get in seconds: (/home/xman/esp_sources/at/firmware)&lt;br /&gt;
 FW firmware/0x00000.bin&lt;br /&gt;
 FW firmware/0x40000.bin&lt;br /&gt;
&lt;br /&gt;
== Install python and relevant ==&lt;br /&gt;
* Install python 2.7&lt;br /&gt;
 apt-get install python&lt;br /&gt;
* and install python serial from https://pypi.python.org/pypi/pyserial&lt;br /&gt;
 tar -xvzf pyserial-2.7.tar.gz&lt;br /&gt;
 cd pyserial-2.7&lt;br /&gt;
 python setup.py install&lt;br /&gt;
&lt;br /&gt;
== Flash ==&lt;br /&gt;
* now upload the files in ''firmware'' directory to the module with esptool.py ( https://github.com/themadinventor/esptool/ )&lt;br /&gt;
 wget https://github.com/themadinventor/esptool/blob/master/esptool.py&lt;br /&gt;
 esptool.py --port /dev/tty.usbmodem0E102EE1 write_flash 0x00000 0x00000.bin&lt;br /&gt;
 esptool.py --port /dev/tty.usbmodem0E102EE1 write_flash 0x40000 0x40000.bin&lt;br /&gt;
[[Category:ESP8266 Firmware and SDK]]&lt;/div&gt;</summary>
		<author><name>Chao</name></author>
	</entry>
</feed>