esp8266 / esp8266-wiki

1.74k stars 298 forks source link

toolchain wiki page tweaks #19

Open Spongman opened 9 years ago

Spongman commented 9 years ago

(sorry, I don't know how to fork the wiki, or issue pull requests for it)

/wiki/Toolchain:

1) add 'unzip' to apt-get lines

2) Setting up the Espressif SDK:

- unzip esp_iot_sdk_v0.9.3_14_11_21_patch1.zip
+ unzip -o esp_iot_sdk_v0.9.3_14_11_21_patch1.zip
- mkdir ESP8266_SDK

(otherwise the subsequent 'mv esp_iot_sdk_v0.9.3 ESP8266_SDK' does the wrong thing)

3) Installing the ESP image tool

- dpkg -i esptool_0.0.2-1_i386.deb
+ sudo dpkg -i esptool_0.0.2-1_i386.deb

4) Installing the ESP upload tool

- ln -s $PWD/esptool-py/esptool.py crosstool-NG/builds/xtensa-lx106-elf/bin/
+ sudo ln -s $PWD/esptool-py/esptool.py crosstool-NG/builds/xtensa-lx106-elf/bin/
benjie commented 8 years ago

More wiki Tooling page tweaks:

The top says:

Please consider using https://github.com/pfalcon/esp-open-sdk to build the complete toolchain. It does most of steps listed below (and some not listed, e.g. to bring you SDK with less binary blobs). If you cannot, or prefer doing each step yourself read on.

However doing so does not put things where later scripts expect them to be. This can be resolved by running the following inside of the esp-open-sdk folder:

sudo mkdir /opt/Espressif
sudo chown `whoami` /opt/Espressif
ln -s `pwd`/esp_iot_sdk_v1.2.0 /opt/Espressif/ESP8266_SDK
mkdir /opt/Espressif/crosstool-NG
ln -s `pwd` /opt/Espressif/crosstool-NG/builds

This at least enables me to make the blinky example; I'm not sure what else is required.