Skip to content

toolchain setup

mateoGC edited this page Sep 8, 2021 · 3 revisions

ESP8266 Linux Toolchain Setup

  1. Download toolchain for linux from Espressif website:

    1. for 64-bit Linux
    2. for 32-bit Linux
  2. Extract the downloaded file in ~/esp directory:

     mkdir -p ~/esp
     cd ~/esp
     tar -xzf ~/Downloads/xtensa-lx106-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz
    
    
  3. To use the toolchain, you will need to update your PATH environment variable in ~/.profile file by adding the following lines to the end of the file:

      export PATH="$PATH:$HOME/esp/xtensa-lx106-elf/bin"
      alias get_lx106='export PATH="$PATH:$HOME/esp/xtensa-lx106-elf/bin"'
    

    Log off and log in back to make the .profile changes effective. Run the following command to verify if PATH is correctly set:

      printenv PATH
    

    You should be looking for a similar result:

      /home/user-name/bin:/home/user-name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/user-name/esp/xtense-lx106-elf/bin
    

Clone this wiki locally