Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Toolchain

cloudzhou edited this page Nov 10, 2014 · 1 revision

#Building the toolchain

##as root:

32-Bit systems

apt-get install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk libc6-dev-amd64
mkdir /opt/Espressif
chown $username /opt/Espressif 

64-bit systems

apt-get install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk libc6-dev-i386
mkdir /opt/Espressif
chown $username /opt/Espressif 

(replace $username with the name of the local user)

##as local user:

cd /opt/Espressif
git clone -b lx106 git://github.com/jcmvbkbc/crosstool-NG.git 
cd crosstool-NG
./bootstrap && ./configure --prefix=`pwd` && make && make install
./ct-ng xtensa-lx106-elf
./ct-ng build

#Setting up the SDK download esp_iot_sdk_v0.9.2_14_10_24.zip: http://bbs.espressif.com/viewtopic.php?f=5&t=3

extract the contends of esp_iot_sdk_v0.9.2_14_10_24.zip to /opt/Espressif/ESP8266_SDK/

#Adding libs to the SDK

wget -O /opt/Espressif/ESP8266_SDK/lib/libc.a https://github.com/esp8266/esp8266-wiki/raw/master/libs/libc.a
wget -O /opt/Espressif/ESP8266_SDK/lib/libhal.a https://github.com/esp8266/esp8266-wiki/raw/master/libs/libhal.a

Added header files

wget -O /opt/Espressif/include.tgz https://github.com/esp8266/esp8266-wiki/raw/master/include.tgz
cd /opt/Espressif/
tar -xvzf include.tgz

#Installing ESP tool Download the deb for esptool from the git repo or download the source and build yourself.

dpkg -i esptool_0.0.2-1_i386.deb

Next step: Building

Clone this wiki locally