Skip to content

Commit fa39e6c

Browse files
committed
Update Building_the_toolchain.md
1 parent f2e20bf commit fa39e6c

File tree

1 file changed

+1
-53
lines changed

1 file changed

+1
-53
lines changed

Building_the_toolchain.md

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1 @@
1-
#Building the toolchain
2-
3-
##as root:
4-
```
5-
apt-get install git autoconf build-essential gperf bison flex texinfo libtool libncurses5-dev wget gawk libc6-dev-amd64
6-
mkdir /opt/Espressif
7-
chown $username /opt/Espressif
8-
```
9-
(replace $username with the name of the local user)
10-
11-
##as local user:
12-
```
13-
/opt/Espressif
14-
git clone -b lx106 git://github.com/jcmvbkbc/crosstool-NG.git
15-
cd crosstool-NG
16-
./bootstrap && ./configure --prefix=`pwd` && make && make install
17-
./ct-ng xtensa-lx106-elf
18-
./ct-ng build
19-
```
20-
21-
#Setting up the SDK
22-
download esp8266_sdk_v0.9.1.zip: http://rghost.net/download/58019758/eff3feb46a2047a0de0d56479d21fab434429fea/esp8266_sdk_v0.9.1.zip
23-
24-
extract esp8266_sdk_v0.9.1.zip to /opt/Espressif/ESP8266_SDK
25-
26-
#Installing ESP tool
27-
Download the deb for esptool from the git repo
28-
```
29-
dpkg -i esptool_0.0.2-1_i386.deb
30-
```
31-
32-
#Prepping the at example
33-
comment the line #include user_config.h from /opt/Espressif/ESP8266_SDK/include/osapi.h
34-
```
35-
cd ~
36-
mkdir esp_sources
37-
cd esp_sources
38-
cp -R /opt/Espressif/ESP8266_SDK/examples/at at
39-
cd at
40-
wget -O Makefile https://raw.githubusercontent.com/esp8266/esp8266-wiki/master/examples/example.Makefile
41-
make
42-
```
43-
If the compiler gives a error remove ```#include<stdlib.h>``` from ```user/at_ipCmd.c```
44-
45-
#Uploading
46-
47-
to be able to upload to the chip bind GPIO0 to GND
48-
49-
now upload the files in firmware directory to the module with esptool.py ( https://github.com/themadinventor/esptool/ )
50-
```
51-
esptool.py --port /dev/tty.usbmodem0E102EE1 write_flash 0x00000 0x00000.bin
52-
esptool.py --port /dev/tty.usbmodem0E102EE1 write_flash 0x40000 0x40000.bin
53-
```
1+
This has been moved to the wiki see https://github.com/esp8266/esp8266-wiki/wiki/Toolchain

0 commit comments

Comments
 (0)