raspberry
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
raspberry [2021/02/12 20:20] – [Instalar] jose | raspberry [2022/01/14 22:11] – [Script] jose | ||
---|---|---|---|
Line 15: | Line 15: | ||
===== Habilitar wifi ===== | ===== Habilitar wifi ===== | ||
En la pertición boot creamos el fichero wpa_supplicant.conf con los datos de nuestro wifi | En la pertición boot creamos el fichero wpa_supplicant.conf con los datos de nuestro wifi | ||
- | wpa_supplicant.conf | + | |
< | < | ||
country=ES | country=ES | ||
Line 41: | Line 42: | ||
===== IP fija ===== | ===== IP fija ===== | ||
En la partición rootfs editamos el fichero: | En la partición rootfs editamos el fichero: | ||
- | etc/ | + | |
Depende si queremos editar wifi o cable ponemos eth0 o wlan0. Por ejemplo, poner por wifi la ip 192.168.1.191 | Depende si queremos editar wifi o cable ponemos eth0 o wlan0. Por ejemplo, poner por wifi la ip 192.168.1.191 | ||
< | < | ||
Line 52: | Line 53: | ||
===== Habilitar SSH ===== | ===== Habilitar SSH ===== | ||
Creamos un fichero que se llame ssh en la partición boot. Da igual que esté vacio. Podemos hacer: | Creamos un fichero que se llame ssh en la partición boot. Da igual que esté vacio. Podemos hacer: | ||
- | touch ssh | + | touch boot/ssh |
Line 84: | Line 85: | ||
| 0x50000 | ha habido under voltage desde el último reinicio | | | 0x50000 | ha habido under voltage desde el último reinicio | | ||
| 0x50005 | actualmente under voltage | | | 0x50005 | actualmente under voltage | | ||
+ | |||
+ | ===== Script ===== | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | fecha=`date +\%Y\%m\%d_\%H\%M\%S` | ||
+ | voltios=`vcgencmd measure_volts` | ||
+ | test=" | ||
+ | case $test in | ||
+ | throttled=0x50005) estado=" | ||
+ | throttled=0x50000) estado=" | ||
+ | throttled=0x0) estado=" | ||
+ | *) estado=$test;; | ||
+ | esac | ||
+ | |||
+ | echo $fecha" | ||
+ | </ | ||
+ | |||
+ | ====== Pantallas TFT ====== | ||
+ | Pantalla tàctil de 10" con resolución 1024x600 | ||
+ | |||
+ | Modificar el fichero / | ||
+ | hdmi_group=2 | ||
+ | hdmi_mode=87 | ||
+ | hdmi_cvt 1024 600 60 6 0 0 0 | ||
+ | Puede que con Raspberry 4 falle. También funciona con esto: | ||
+ | disable_overscan=1 | ||
+ | hdmi_cvt=1024 600 3 0 0 0 | ||
raspberry.txt · Last modified: 2022/01/29 15:54 by jose