wombat.ch

your Partner for Network Design and CMS

Hardware Information

Raspberry (Debian) Scripts


 problem with WLAN connection

#  vi /usr/local/bin/checkwifi.sh

# c

1 ping -c4 10.18.23.1 > /dev/null
2
3 if [ $? != 0 ]
4 then
5 echo "No network connection, restarting wlan0"
6 /sbin/ifdown 'wlan0'
7 sleep 5
8 /sbin/ifup --force 'wlan0'
9 fi
 --> Link

 For the ersten boot

 

 
Code: /etc/wpa_supplicant/wpa_supplicant.conf
  1. ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
  2. update_config=1
  3. country=DE
  4. network={
  5. ssid="SSID"
  6. scan_ssid=1
  7. psk="PASSWORT!!!"
  8. key_mgmt=WPA-PSK
  9. }
 
Add a comment

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
-
-
- Add a comment

Subcategories

Gadget (englisch für Apparat, technische Spielerei oder auch Schnickschnack) bezeichnet ein technisches Werkzeug oder Gerät mit bisher so nicht bekannter Funktionalität und/oder besonderem Design. Es ist traditionellerweise klein und handlich und zum Mitführen konzipiert. Eine große Rolle spielt der Spaßfaktor eines Gadgets: Geräte, die sich als Gadget definieren, sind oft Grenzgänger zwischen sinnvoller Funktionalität und Verspieltheit.Der Duden definiert Gadget als „kleiner, raffinierter technischer Gegenstand“.

Data Center Infrastructure Management

RSS Feed


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 770 guests and no members online

We have 784 guests, no bots and no members online