informatique:raspberrypi
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| informatique:raspberrypi [31/03/2016 02:16] – [PI1] cyrille | informatique:raspberrypi [12/01/2023 15:50] (Version actuelle) – [Protéger le GPIO] cyrille | ||
|---|---|---|---|
| Ligne 73: | Ligne 73: | ||
| ==== PI4 ==== | ==== PI4 ==== | ||
| - | CPU x 4 : | + | * CPU x 4 |
| - | model name : ARMv7 Processor rev 5 (v7l) | + | |
| - | BogoMIPS | + | |
| - | Features | + | |
| - | CPU implementer : 0x41 | + | |
| - | CPU architecture: | + | |
| - | CPU variant : 0x0 | + | |
| - | CPU part : 0xc07 | + | |
| - | CPU revision : 5 | + | |
| - | Mémoire | + | |
| - | MemTotal: | + | |
| + | * Network | ||
| + | * MAC: b8: | ||
| + | * IP4: 192.168.0.24 | ||
| + | |||
| + | ==== Pi 5 ==== | ||
| + | |||
| + | * Hardware : BCM2709 | ||
| + | * Revision : a22082 | ||
| + | * Serial : 0000000043bafa52 | ||
| + | * CPU x 4 | ||
| + | * model name : ARMv7 Processor rev 4 (v7l) | ||
| + | * BogoMIPS : 80.33 | ||
| + | * Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32 | ||
| + | * CPU implementer : 0x41 | ||
| + | * CPU architecture: | ||
| + | * CPU variant : 0x0 | ||
| + | * CPU part : 0xd03 | ||
| + | * CPU revision : 4 | ||
| + | * Memory: 1024 Mb | ||
| + | * GPU | ||
| + | * VideoCore IV HW | ||
| + | * OpenGL Broadcom, OpenGL ES 2.0 | ||
| + | * Network: | ||
| + | * MAC: b8: | ||
| + | * IP: 192.168.0.25 | ||
| + | |||
| + | ===== Usages ===== | ||
| + | |||
| + | ==== Media center ==== | ||
| + | |||
| + | [[http:// | ||
| ===== Tips & Tricks ===== | ===== Tips & Tricks ===== | ||
| Ligne 91: | Ligne 122: | ||
| Maintenant au 1er boot l' | Maintenant au 1er boot l' | ||
| + | |||
| + | ==== Protéger le GPIO ==== | ||
| + | |||
| + | Avec une carte tampon comma la [[https:// | ||
| ==== Le système sur la carte SD ==== | ==== Le système sur la carte SD ==== | ||
| Ligne 128: | Ligne 163: | ||
| ==== le Clavier AZERTY ==== | ==== le Clavier AZERTY ==== | ||
| - | * Le système debian propose maintenant au 1er boot de sélectionner le type de clavier. | + | * Le système debian propose maintenant au 1er boot de sélectionner le type de clavier, ou utiliser l' |
| $ sudo dpkg-reconfigure keyboard-configuration | $ sudo dpkg-reconfigure keyboard-configuration | ||
| Ligne 151: | Ligne 186: | ||
| ==== Heure locale ==== | ==== Heure locale ==== | ||
| - | * L' | + | * ou utiliser l' |
| Pour configurer la timezone: | Pour configurer la timezone: | ||
| Ligne 157: | Ligne 192: | ||
| ==== activer ssh ==== | ==== activer ssh ==== | ||
| + | |||
| + | * ou utiliser l' | ||
| $ sudo insserv ssh | $ sudo insserv ssh | ||
| Ligne 165: | Ligne 202: | ||
| * éditer / | * éditer / | ||
| * ajouter la ligne: \\ blacklist ipv6 | * ajouter la ligne: \\ blacklist ipv6 | ||
| + | |||
| + | ==== Le WIFI ==== | ||
| + | |||
| + | -> [[/ | ||
| ==== update firmware ==== | ==== update firmware ==== | ||
| Ligne 170: | Ligne 211: | ||
| Avec l' | Avec l' | ||
| - | ==== wifi access point (AP) ==== | ||
| - | |||
| - | Aussi [[http:// | ||
| - | |||
| - | === avec hostadp & dnsmasq === | ||
| - | |||
| - | Avec [[http:// | ||
| - | |||
| - | Le problème est la perte de l'ip sur wlan0. La solution trouvée: | ||
| - | |||
| - | dans / | ||
| - | INTERFACES=" | ||
| - | HOTPLUG_INTERFACES=" | ||
| - | par | ||
| - | INTERFACES=" | ||
| - | HOTPLUG_INTERFACES=" | ||
| - | |||
| - | Pour ensuite router les paquets de wlan0 vers eth0 avec [[http:// | ||
| - | # Les requêtes du réseau wifi sont forwardées vers l’extérieur via une règle “iptables” | ||
| - | iptables -A FORWARD -i wlan0 -s 192.168.5.0/ | ||
| - | # pour que les requêtes du nouveau réseau ne sorte pas avec des IPs privées, elles sont masqueradées | ||
| - | iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | ||
| - | Mettre ses lignes dans un fichier, qui est lancé depuis la config de wlan0 dans / | ||
| - | |||
| - | === Récap des fichiers === | ||
| - | |||
| - | / | ||
| - | < | ||
| - | auto lo | ||
| - | iface lo inet loopback | ||
| - | |||
| - | iface eth0 inet dhcp | ||
| - | |||
| - | auto wlan0 | ||
| - | iface wlan0 inet static | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | | ||
| - | </ | ||
| - | |||
| - | / | ||
| - | < | ||
| - | # Les requêtes du réseau wifi sont forwardées vers l’extérieur via une règle “iptables” | ||
| - | iptables -A FORWARD -i wlan0 -s 192.168.5.0/ | ||
| - | # pour que les requêtes du nouveau réseau ne sorte pas avec des IPs privées, elles sont masqueradées | ||
| - | iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE | ||
| - | </ | ||
| - | |||
| - | / | ||
| - | < | ||
| - | INTERFACES=" | ||
| - | HOTPLUG_INTERFACES=" | ||
| - | ARGS=" | ||
| - | SUSPEND_ACTION=" | ||
| - | </ | ||
| - | |||
| - | / | ||
| - | < | ||
| - | interface=wlan0 | ||
| - | ssid=bobox | ||
| - | hw_mode=g | ||
| - | channel=6 | ||
| - | auth_algs=1 | ||
| - | wmm_enabled=0 | ||
| - | </ | ||
| - | |||
| - | * How To : Use The Raspberry Pi As A Wireless Access Point/ | ||
| - | * [[http:// | ||
| - | |||
| - | man [[http:// | ||
| Ligne 255: | Ligne 224: | ||
| Pour améliorer (économiser) les accès à la SDCard: voir [[/ | Pour améliorer (économiser) les accès à la SDCard: voir [[/ | ||
| - | ==== Le Wifi ==== | + | ==== YACY ==== |
| - | + | ||
| - | === Ralink 802.11 n WLAN === | + | |
| - | + | ||
| - | $ lsusb | grep Ralink | + | |
| - | Bus 003 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter | + | |
| - | + | ||
| - | $ tail -f / | + | |
| - | ... | + | |
| - | usb 3-3: new high-speed USB device number 3 using xhci_hcd | + | |
| - | usb 3-3: New USB device found, idVendor=148f, | + | |
| - | usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 | + | |
| - | usb 3-3: Product: 802.11 n WLAN | + | |
| - | usb 3-3: Manufacturer: | + | |
| - | usb 3-3: SerialNumber: | + | |
| - | ieee80211 phy1: rt2x00_set_rt: | + | |
| - | ieee80211 phy1: rt2x00_set_rf: | + | |
| - | ieee80211 phy1: Selected rate control algorithm ' | + | |
| - | usbcore: registered new interface driver rt2800usb | + | |
| - | < | + | |
| - | SCPlugin-Ifupdown: | + | |
| - | SCPlugin-Ifupdown: | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | ieee80211 phy1: rt2x00lib_request_firmware: | + | |
| - | ieee80211 phy1: rt2x00lib_request_firmware: | + | |
| - | < | + | |
| - | < | + | |
| - | IPv6: ADDRCONF(NETDEV_UP): | + | |
| - | IPv6: ADDRCONF(NETDEV_UP): | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | < | + | |
| - | message repeated 5 times: [ wlan0: CTRL-EVENT-SCAN-STARTED ] | + | |
| - | wlan1: Reject scan trigger since one is already pending | + | |
| - | wlan1: CTRL-EVENT-SCAN-STARTED | + | |
| - | < | + | |
| - | < | + | |
| - | | + | |
| - | ... | + | |
| - | + | ||
| - | === D-Link DWL G122 === | + | |
| - | + | ||
| - | //**update 2012-11-06**// | + | |
| - | $ sudo vi / | + | |
| - | ctrl_interface=DIR=/ | + | |
| - | update_config=1 | + | |
| - | network={ | + | |
| - | ssid=" | + | |
| - | scan_ssid=1 | + | |
| - | psk=" | + | |
| - | id_str=" | + | |
| - | priority=5 | + | |
| - | } | + | |
| - | + | ||
| - | **ATTENTION**: | + | |
| - | vi / | + | |
| - | ... | + | |
| - | wireless-power off | + | |
| - | ... | + | |
| - | Sinon le réseau ne fonctionne pas bien (problème de gestion de power avec le dongle ?) | + | |
| - | + | ||
| - | //**update 2012-08-15**// | + | |
| - | vi / | + | |
| - | ... | + | |
| - | auto wlan0 | + | |
| - | iface wlan0 inet dhcp | + | |
| - | wpa-conf / | + | |
| - | wireless-power off | + | |
| - | + | ||
| - | //**bof**, marche pas terrible, chuis passé en ethernet. Peut être un problème de porté et/ou conflit avec autres appareils wifi trop proches ?// | + | |
| - | + | ||
| - | + | ||
| - | J'ai branché un dongle usb wifi D-Link DWL G122 et hop: | + | |
| - | $ lsmod | + | |
| - | ... | + | |
| - | rt2500usb | + | |
| - | rt2x00usb | + | |
| - | rt2x00lib | + | |
| - | mac80211 | + | |
| - | cfg20211 | + | |
| - | puis | + | |
| - | wpa_passphrase < | + | |
| - | puis | + | |
| - | vi / | + | |
| - | auto lo | + | |
| - | iface lo inet loopback | + | |
| - | iface eth0 inet dhcp | + | |
| - | auto wlan0 | + | |
| - | iface wlan0 inet dhcp | + | |
| - | wpa-conf / | + | |
| - | et | + | |
| - | sudo reboot | + | |
| - | et hop, le machin se connecte ;-) | + | |
| - | + | ||
| - | sources: [[http:// | + | |
| - | + | ||
| - | === Netgear WG121 === | + | |
| - | + | ||
| - | Problème: | + | |
| - | desktop:~# dmesg | grep p54 | + | |
| - | [ 5.974034] usb 1-3: (p54usb) cannot load firmware isl3886usb (-2)! | + | |
| - | [ 5.977369] p54usb: probe of 1-3:1.0 failed with error -2 | + | |
| - | [ 5.977416] usbcore: registered new interface driver p54usb | + | |
| - | [ 860.944607] usb 1-5: (p54usb) cannot load firmware isl3886usb (-2)! | + | |
| - | [ 860.953331] p54usb: probe of 1-5:1.0 failed with error -2 | + | |
| - | il est question de | + | |
| - | aptitude install firmware-linux-nonfree | + | |
| - | mais ça ne suffit pas. | + | |
| - | + | ||
| - | Pour aller plus loin (mais je n'y suis pas aller): [[http:// | + | |
| - | + | ||
| - | === YACY === | + | |
| - | + | ||
| - | Le moteur distribué de recherche [[/ | + | |
| - | * [[http:// | + | |
| - | * et [[https:// | + | |
| - | * [[http:// | + | |
| - | + | ||
| - | == ejdk-8u71 == | + | |
| - | + | ||
| - | Avec ejdk-8u71-linux-armv6-vfp-hflt.tar.gz | + | |
| - | + | ||
| - | $ ./ | + | |
| - | ****************** YaCy Web Crawler/ | + | |
| - | ... | + | |
| - | >> YaCy started as daemon process. Administration at http:// | + | |
| - | Error occurred during initialization of VM | + | |
| - | Server VM is only supported on ARMv7+ VFP | + | |
| - | + | ||
| - | $ cat / | + | |
| - | processor : 0 | + | |
| - | model name : ARMv6-compatible processor rev 7 (v6l) | + | |
| - | BogoMIPS : 2.28 | + | |
| - | Features : half thumb fastmult vfp edsp java tls | + | |
| - | ... | + | |
| - | + | ||
| - | == ejre-1_6 == | + | |
| - | + | ||
| - | ARMv6/7 Linux - Headless EABI, VFP, SoftFP ABI, Little Endian | + | |
| - | ejre-1_6_0_38-fcs-b05-linux-arm-vfp-eabi-headless-13_nov_2012.tar.gz | + | |
| - | + | ||
| - | shared object libjli.so not found | + | |
| - | + | ||
| - | Et pourtant: | + | |
| - | $ sudo find / -name libjli* | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | / | + | |
| - | + | ||
| - | + | ||
| - | Plein d' | + | |
| - | * http:// | + | |
| - | + | ||
| - | Peut être continuer l' | + | |
| - | + | ||
| - | == openjdk-7-jre == | + | |
| - | + | ||
| - | Après quelques minutes (de mise en route ?), ça ne plante suavagement: | + | |
| - | + | ||
| - | ... | + | |
| - | # Internal Error (cppInterpreter_arm.S: | + | |
| - | # fatal error: *** Unimplemented opcode: 232 = < | + | |
| - | ... | + | |
| - | + | ||
| - | < | + | |
| - | $ ./ | + | |
| - | ****************** YaCy Web Crawler/ | + | |
| - | **** (C) by Michael Peter Christen, usage granted under the GPL Version 2 **** | + | |
| - | **** USE AT YOUR OWN RISK! Project home and releases: http:// | + | |
| - | ** LOG of YaCy: DATA/ | + | |
| - | ** STOP YaCy: execute stopYACY.sh and wait some seconds | + | |
| - | ** GET HELP for YaCy: see http:// | + | |
| - | ******************************************************************************* | + | |
| - | >> | + | |
| - | Asserts are enabled | + | |
| - | [ YaCy v1.82, build 20150121 by Michael Christen / www.yacy.net ] | + | |
| - | ------------------------------------------------------------------------------- | + | |
| - | STARTUP: Trying to load logging configuration from file / | + | |
| - | I 2016/01/29 09:42:25 Domain Init local host address: 127.0.0.1 (local) | + | |
| - | [Fatal Error] :1:1: Content is not allowed in prolog. | + | |
| - | [Fatal Error] :1:1: Content is not allowed in prolog. | + | |
| - | I 2016/01/29 09:42:26 Domain Init local host address: 127.0.1.1 (local) | + | |
| - | I 2016/01/29 09:42:26 Domain Init local host address: 192.168.0.87 (local) | + | |
| - | I 2016/01/29 09:42:35 UPNP found device: Netgear CBVG834G | + | |
| - | I 2016/01/29 09:42:36 UPNP mapped mapped port 8090 to port 8090 on device Netgear CBVG834G, external IP is 89.158.149.192 | + | |
| - | I 2016/01/29 09:42:43 Word hashCache.size = 20000 | + | |
| - | I 2016/01/29 09:42:43 SWITCHBOARD Initializing Segment '/ | + | |
| - | I 2016/01/29 09:42:53 org.apache.solr.core.ConfigSolr Loading container configuration from / | + | |
| - | I 2016/01/29 09:43:11 org.apache.solr.update.UpdateShardHandler Creating UpdateShardHandler HTTP client with params: socketTimeout=0& | + | |
| - | I 2016/01/29 09:43:11 org.apache.solr.logging.LogWatcher SLF4J impl is org.slf4j.impl.JDK14LoggerFactory | + | |
| - | I 2016/01/29 09:43:11 org.apache.solr.logging.LogWatcher Registering Log Listener [JUL (org.slf4j.impl.JDK14LoggerFactory)] | + | |
| - | + | ||
| - | + | ||
| - | # | + | |
| - | # A fatal error has been detected by the Java Runtime Environment: | + | |
| - | # | + | |
| - | # Internal Error (cppInterpreter_arm.S: | + | |
| - | # fatal error: *** Unimplemented opcode: 232 = < | + | |
| - | # | + | -> [[/informatique/raspberrypi/yacy|/informatique/raspberrypi/yacy]] |
| - | # JRE version: OpenJDK Runtime Environment (7.0_91-b02) (build 1.7.0_91-b02) | + | |
| - | # Java VM: OpenJDK Zero VM (24.91-b01 mixed mode linux-arm ) | + | |
| - | # Derivative: IcedTea 2.6.3 | + | |
| - | # Distribution: | + | |
| - | # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try " | + | |
| - | # | + | |
| - | /home/pi/yacy/hs_err_pid6369.logrror] | + | |
| - | # An error report file with more information is saved as: | + | |
| - | # /home/pi/yacy/ | + | |
| - | # | + | |
| - | # If you would like to submit a bug report, please include | + | |
| - | # instructions on how to reproduce the bug and visit: | + | |
| - | # | + | |
| - | # | + | |
| - | Aborted | + | |
| - | </ | + | |
informatique/raspberrypi.1459383376.txt.gz · Dernière modification : de cyrille
