#Raspberry Pi 4

Dernière modification : 2021/11/05 16:07


Monter un full node Bitcoin et un node Lightning avec Raspberry Pi 4
https://nodebitcoin.eu/2021/03/15/comment-installer-umbrel-sur-rpi-4/


Emulation retro gaming avec Raspberry Pi 4

Jouer à des milliers de jeux console et arcade avec Recalbox et Raspberry Pi 4


Déballage du Raspberry Pi 4


Sorti de son petit boîtier en carton, le Raspberry Pi 4 est vraiment minuscule.
Il fait presque la taille d'une carte de crédit, dépassant seulement de quelques millimètres.

Mon kit contient :
- un Raspberry Pi 4 (Raspberry Pi 4 Model B 2 Go)
- une alimentation 3A avec sortie USB C
- une carte MicroSD de 16 Go
- un câble micro HDMI vers HDMI.
http://teciel.free.fr/images/Raspberry_pi_4.png

Caractéristiques du Raspberry Pi 4:
- SoC Broadcom BCM2711, quad-core Cortex-A72 (ARM v8) 64-bits à 1.5GHz
- Mémoire SDRAM 2 Go LPDDR4-2400
- LAN sans fil 2.4 GHz et 5.0 GHz IEEE 802.11b/g/n/ac
- Bluetooth 5.0, BLE
- Ethernet True Gigabit
- 2 Ports USB 3.0
- 2 Ports USB 2.0
- Connecteur GPIO 40 broches
- 2 ports micro HDMI
- Ports MIPI DSI/CSI à 2 voies pour caméra et écran
- Sortie audio stéréo et port vidéo composite
- Emplacement pour carte Micro SD

Nécessite une alimentation 5.1V, 3A via USB-C ou GPIO



La carte MicroSD de 16 Go contient NOOBS et un fichier INSTRUCTIONS-README.txt

NOOBS (ou "New Out Of Box Software") permet d'installer directement après achat le système d'exploitation fourni.

On insère la carte micro SD dans le lecteur, on connecte le Raspberry Pi 4 au câble micro HDMI vers HDMI puis à l'alimentation.

Premier démarrage

Un premier problème est apparu lors du branchement initial.

Message d'erreur:
Error resizing existing FAT partition

Solution:
j'ai connecté la carte Micro SD à un adaptateur SD, l'ai chargé sur mon ordinateur portable.
La carte Micro SD reconnue en tant que D: , j'en ai recopié le contenu dans un dossier créé pour l'occasion sur C: (par exemple C:\MicroSD_Backup)

j'ai ensuite formaté la carte MicroSD avec l'utilitaire préconisé dans la documentation:
https://www.sdcard.org/downloads/formatter_4/eula_windows/

Pour les cartes MicroSDXC

Attention:
La taille ca compte parfois.
Les cartes MicroSD de plus de 32 Go (MicroSDXC) sont formatées par défaut avec le système de fichiers exFAT.
Mais le chargeur de démarrage du Raspberry Pi ne supporte que les systèmes de fichiers FAT (FAT16 et FAT32)

Par exemple, pour une carte MicroSDXC de 64 G ou MicroSDXC de 128 Go, il faudra :
- vérifier que toutes les partitions existantes sont effacées avec SD Formatter https://www.sdcard.org/downloads/formatter_4/
- formater la carte MicroSDXC avec fat32format. http://www.ridgecrop.demon.co.uk/guiformat.htm

source :
SDXC formating
https://www.raspberrypi.org/documentation/installation/sdxc_formatting.md

Pour finir, j'ai recopié le contenu de la sauvegarde dans D:

Après avoir reconnecté la MicroSD sur le Raspberry Pi 4 et redémarré celui-ci, il m'est proposé d'installer le(s) système(s) de mon choix.



Interfacer des composants avec le Raspberry Pi 4

Grâce au Connecteur 40 broches (2 x 20 broches) du Raspberry Pi, on peut facilement le connecter à toutes sortes de composants comme des LEDs, des moteurs, photorésistances, potentiomètres et autres.
Pour faciliter l'accès aux broches, une librairie est disponible , WiringPi

WiringPi est l'une des bibliothèques incontournables pour tous ceux qui utilisent le Raspberry Pi avec des cartes d'extension

http://teciel.free.fr/images/Raspberry_pins.png
source : https://fr.pinout.xyz/pinout/wiringpi
    

Gérer son Rapsberry Pi à distance en Wifi et ssh via Android


1) Installer RaspController sur Android :
https://play.google.com/store/apps/details?id=it.Ettore.raspcontroller&hl=fr

2) Activer le wifi sur le Pi en activant "Point d'accès mobile" sur la machine Android et en configurant la connexion Wifi sur le Pi

3) Activer sshserver sur le Pi
            a) entrer la commande "sudo raspi-config"
            b) aller sur "Interfacing options"
            c) activer "enable/disable remote command line access to your Pi using SSH"
            d) valider avec "Finish"

4) taper "ipconfig" pour afficher l'adresse IP du Pi

5) sur la machine android:
            a) faire "+"
            b) entrer nom de l'appareil, adresse IP, port SSh (par défaut 22), nom d'utilisateur (pi par défaut), mot de passe (rapsberry par défaut, risque de sécurité)
            c) enregistrer




NOOBS INSTALLATION INSTRUCTIONS

1. Insert an SD card that is 8GB or greater in size into your computer.
2. Format the SD card using the platform-specific instructions below:
   a. Windows (32GB cards and under)
      i. Download the SD Association's Formatting Tool from https://www.sdcard.org/downloads/formatter_4/eula_windows/
      ii. Install and run the Formatting Tool on your machine
      iii. Check that the SD card you inserted matches the one selected by the Tool
      iv. Click the "Format" button
   b. Mac (32GB cards and under)
      i. Download the SD Association's Formatting Tool from https://www.sdcard.org/downloads/formatter_4/eula_mac/
      ii. Install and run the Formatting Tool on your machine
      iii. Select "Overwrite Format"
      iv. Check that the SD card you inserted matches the one selected by the Tool
      v. Click the "Format" button
   c. Linux
      i. We recommend using gparted (or the command line version parted)
      ii. Format the entire disk as FAT32
   d. Cards over 32GB
      i. Follow the instructions on https://www.raspberrypi.org/documentation/installation/sdxc_formatting.md
3. Extract the files contained in this NOOBS zip file.
4. Copy the extracted files onto the SD card that you just formatted so that this file is at the root directory of the SD card. Please note that in some cases it may extract the files into a folder, if this is the case then please copy across the files from inside the folder rather than the folder itself.
5. Insert the SD card into your Pi and connect the power supply.

Your Pi will now boot into NOOBS and should display a list of operating systems that you can choose to install.
If your display remains blank, you should select the correct output mode for your display by pressing one of the following number keys on your keyboard:
1. HDMI mode - this is the default display mode.
2. HDMI safe mode - select this mode if you are using the HDMI connector and cannot see anything on screen when the Pi has booted.
3. Composite PAL mode - select either this mode or composite NTSC mode if you are using the composite RCA video connector.
4. Composite NTSC mode

If you are still having difficulties after following these instructions, then please visit the Raspberry Pi Forums ( http://www.raspberrypi.org/forums/ ) for support.