wombat.ch

your Partner for Network Design and CMS

Raspberry Pi 4 (Debain10 | Buster) / Toolchain ESP32

Basic Goal: have a Raspberry Pi 4, with Desktop, Arduino iDE (v 1.8.9) Installed then in the Arduino IDE go to Tools - Boards --> Board Manager then Search for ESP32 you will find [esp32 by Espressif Systems] install it.
 

       docs.espressif.com
  Setup Linux Toolchain from Scratch    
Login as Pi  # sudo -i    
Install Prerequisites #  apt install -y gcc git wget make libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-cryptography python-future python-pyparsing    
Compile the Toolchain from Source #  apt install -y gawk gperf grep gettext libncurses-dev python python-dev automake bison flex texinfo help2man libtool libtool-bin    
Create the working directory and go into it: #  mkdir -p ~/esp
#  cd ~/esp
   
       
       
gcc 8 will be installed but we need gcc 6 to compile      
To check gcc version: #  gcc -v    
To install gcc version 6: #  apt install -y g++-6 gcc-6    
To switch between gcc6 and gcc8: #  update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 1 --slave /usr/bin/g++ g++ /usr/bin/g++-8

#  update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 2 --slave /usr/bin/g++ g++ /usr/bin/g++-6


# update-alternatives --config gcc
   
       
 Download crosstool-NG and build it: #   git clone https://github.com/espressif/crosstool-NG.git
#   cd crosstool-NG
   
Important Bash 5 have to been accepted #   vi  configure.ac    
around line 193 add |5  |$EGREP '^GNU bash, version (3\.[1-9]|4|5)')    
save and Quit       
  #  ./bootstrap && ./configure --enable-local && make install    
       
then Quit sudo with # exit    
       
Build the toolchain: #  ./ct-ng xtensa-esp32-elf    
  #  ./ct-ng build    
  chmod -R u+w builds/xtensa-esp32-elf    
       
       
  #   cd /root    
there should be a  esp32 directory #   ls -alth     
  #  cp esp32 -r --parents /home/pi/.arduino15/packages/    
       
       
  github | espressif/arduino-esp32 | Installation instructions for Debian / Ubuntu OS    
       
first know wehre your /Arduino/hardware is # find / -xdev -name  hardware    
       
       
       
  cd ~/Arduino/hardware
mkdir -p espressif && \
cd espressif && \
git clone https://github.com/espressif/arduino-esp32.git esp32 && \
cd esp32 && \
git submodule update --init --recursive && \
cd tools && \
python3 get.py
   
      then copied the xtensa-esp32-elf directory
(located in builds directory)
over
to /home/pi/Arduino/hardware/espressif/esp32/tools/
using copy and paste in the file browsers.
       

 

 



a


QUellen/Source:
docs.espressif.com/projects/esp-idf/en/v3.2.2/get-started/linux-setup-scratch.html
- github | espressif/arduino-esp32 | Installation instructions for Debian / Ubuntu OS
-
-
-

RSS Feed


Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfeed/RSSNewsfeed_WID.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://www.bsi.bund.de/SiteGlobals/Functions/RSSFeed/RSSNewsfessBSIFB/RSSNewsfeed_BuergerCERT.xml): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaAnnouncements): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(http://feeds.joomla.org/JoomlaSecurityNews): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:0A000152:SSL routines::unsafe legacy renegotiation disabled in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(): Failed to enable crypto in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: file_get_contents(https://tools.cisco.com/security/center/psirtrss20/CiscoSecurityAdvisory.xml): failed to open stream: operation failed in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 273

Warning: Invalid argument supplied for foreach() in /var/www/clients/client2/web2/web/j/modules/mod_jw_srfr/helper.php on line 39

neusten Links


Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/clients/client2/web2/web/j/modules/mod_quicklistweblinks/helper.php on line 78
many More Links »

part of ...

Linux Counter

Disqus

 

Learning Network

Seti@home & Boinc

myBonic

statistik

 


Who is Online

We have 284 guests and no members online

We have 305 guests, no bots and no members online