esp:esp8266:open-sdk:installation
Differences
This shows you the differences between two versions of the page.
| esp:esp8266:open-sdk:installation [2022/01/15 11:38] – created - external edit 127.0.0.1 | esp:esp8266:open-sdk:installation [2026/12/01 05:00] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== ESP Tool chain and SDK installation ====== | ||
| - | ---- | ||
| - | ===== Overview ===== | ||
| - | This repository provides scripts to build a complete standalone SDK (with toolchain) for software development with the Espressif ESP8266 and ESP8266EX chips. And consists of: | ||
| - | |||
| - | - Toolchain: Xtensa lx106 architecture toolchain (100% OpenSource), | ||
| - | * | ||
| - | * | ||
| - | * | ||
| - | * | ||
| - | - SDK: ESP8266 IoT SDK from Espressif Systems. This component is only partially open source, (some libraries are provided as binary blobs). OpenSource components of the SDK are based on: | ||
| - | * lwIP, http:// | ||
| - | * | ||
| - | * | ||
| - | * | ||
| - | * | ||
| - | ===== Requirements and Dependencies ===== | ||
| - | To build the standalone SDK and toolchain, you need a GNU/POSIX system with the standard GNU development tools installed: bash, gcc, binutils, flex, bison, etc. | ||
| - | |||
| - | Debian/ | ||
| - | < | ||
| - | sudo apt-get install make unrar-free autoconf automake libtool gcc g++ gperf | ||
| - | sudo apt-get install flex bison texinfo gawk ncurses-dev libexpat-dev | ||
| - | sudo apt-get install python-dev python python-serial | ||
| - | sudo apt-get install sed git unzip bash help2man wget bzip2 | ||
| - | </ | ||
| - | Later Debian/ | ||
| - | < | ||
| - | sudo apt-get install libtool-bin | ||
| - | </ | ||
| - | |||
| - | ===== Building the Toolchain ===== | ||
| - | The project can be built in two modes: | ||
| - | - Where the toolchain and tools are kept separate from the vendor IoT SDK which contains binary blobs. This makes licensing more clear, and helps facilitate upgrades to vendor SDK releases. To build the seperated toolchain and SDK: make STANDALONE=n | ||
| - | - A completely standalone ESP8266 SDK with the vendor SDK files merged into the toolchain. This mode makes it easier to build software (no additinal -I and -L flags are needed), but redistributability of this build is unclear and upgrades to newer vendor IoT SDK releases are complicated. This mode is default for local builds. To build the self-contained, | ||
| - | < | ||
| - | mkdir esp8266; cd esp8266 | ||
| - | git clone --recursive https:// | ||
| - | cd esp-open-sdk | ||
| - | make STANDALONE=y | ||
| - | </ | ||
| - | ===== Using the Toolchain ===== | ||
| - | After make, the following sub directories are of interest: | ||
| - | * sdk/ (all sdk expressif libraries and include files) | ||
| - | * extensa-lx-106-elf/ | ||
| - | Add xtensa-lx106-elf/ | ||
| - | < | ||
| - | PATH=$PATH:/ | ||
| - | ESP8266_SDK_ROOT=/ | ||
| - | export ESP8266_SDK_ROOT | ||
| - | # | ||
| - | </ | ||
| - | If you chose the non-standalone SDK, run the compiler with the corresponding include and lib dir flags. The extra -I and -L flags are not needed when using the standalone SDK. | ||
| - | < | ||
| - | xtensa-lx106-elf-gcc -I$(THISDIR)/ | ||
| - | </ | ||
| - | |||
| - | ===== Pulling updates ===== | ||
| - | The project is updated from time to time, to get updates and prepare to build a new SDK, run: | ||
| - | < | ||
| - | $ make clean | ||
| - | $ git pull | ||
| - | $ git submodule sync | ||
| - | $ git submodule update --init | ||
| - | </ | ||
| - | If you don't issue make clean (which causes toolchain and SDK to be rebuilt from scratch on next make), you risk getting broken/ | ||
| - | |||
| - | |||
esp/esp8266/open-sdk/installation.1642246727.txt.gz · Last modified: by 127.0.0.1
