wiki:raspberrypi
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| wiki:raspberrypi [2024/03/31 13:42] – [12 Bookworm] pulsar | wiki:raspberrypi [2025/04/01 17:39] (aktuell) – [Temperatur, Takt & Spannung] techguru | ||
|---|---|---|---|
| Zeile 30: | Zeile 30: | ||
| vcgencmd measure_volts | vcgencmd measure_volts | ||
| + | | ||
| + | Wer einen Raspi 5 besitzt, kann die Speisespannung ganz einfach selbst messen, und zwar ohne Messgerät. Denn sie lässt sich mit dem Konsolenbefehl '' | ||
| + | |||
| + | vcgencmd pmic_read_adc EXT5V_V | ||
| Bzw. | Bzw. | ||
| Zeile 158: | Zeile 162: | ||
| xzcat openSUSE-ARM-LXQT-raspberrypi4.aarch64.raw.xz | dd bs=4M of=/dev/sdX iflag=fullblock oflag=direct status=progress | xzcat openSUSE-ARM-LXQT-raspberrypi4.aarch64.raw.xz | dd bs=4M of=/dev/sdX iflag=fullblock oflag=direct status=progress | ||
| - | Die Blockgröße von 4MB funktioniert in der Regel immer, wenn nicht, versuch es mit 1MB, auch wenn 1M erheblich länger dauern wird. Der '' | + | Die Blockgröße von 4MB funktioniert in der Regel immer, wenn nicht, versuch es mit 1MB, auch wenn 1M erheblich länger dauern wird. Der '' |
| Zeile 532: | Zeile 536: | ||
| + | === uhubctl === | ||
| + | |||
| + | Mit dem in C geschriebenen Programm uhubctl kann man einzelen Ports ein und ausschalten. | ||
| + | |||
| + | < | ||
| + | pi@pintp:~ $ sudo / | ||
| + | Current status for hub 1-1 [0424:9514, USB 2.00, 5 ports, ppps] | ||
| + | Port 2: 0000 off | ||
| + | Port 3: 0000 off | ||
| + | Port 4: 0000 off | ||
| + | Port 5: 0000 off | ||
| + | Sent power off request | ||
| + | New status for hub 1-1 [0424:9514, USB 2.00, 5 ports, ppps] | ||
| + | Port 2: 0000 off | ||
| + | Port 3: 0000 off | ||
| + | Port 4: 0000 off | ||
| + | Port 5: 0000 off | ||
| + | pi@pintp:~ $ sudo / | ||
| + | uhubctl: utility to control USB port power for smart hubs. | ||
| + | Usage: uhubctl [options] | ||
| + | Without options, show status for all smart hubs. | ||
| + | |||
| + | Options [defaults in brackets]: | ||
| + | --action, | ||
| + | --ports, | ||
| + | --location, -l - limit hub by location | ||
| + | --level | ||
| + | --vendor, | ||
| + | --search, | ||
| + | --delay, | ||
| + | --repeat, | ||
| + | --exact, | ||
| + | --force, | ||
| + | --reset, | ||
| + | --wait, | ||
| + | --version, | ||
| + | --help, | ||
| + | |||
| + | Send bugs and requests to: https:// | ||
| + | version: 2.3.0-1 | ||
| + | pi@pintp:~ $ sudo / | ||
| + | Current status for hub 1-1 [0424:9514, USB 2.00, 5 ports, ppps] | ||
| + | Port 1: 0503 power highspeed enable connect [0424:ec00] | ||
| + | Port 2: 0000 off | ||
| + | Port 3: 0000 off | ||
| + | Port 4: 0000 off | ||
| + | Port 5: 0000 off | ||
| + | pi@pintp:~ $ sudo / | ||
| + | Current status for hub 1 [1d6b:0002 Linux 6.1.21-v7+ dwc_otg_hcd DWC OTG Controller 3f980000.usb, | ||
| + | Port 1: 0503 power highspeed enable connect [0424:9514, USB 2.00, 5 ports, ppps] | ||
| + | | ||
| + | </ | ||
| ==== LAN Abschalten ==== | ==== LAN Abschalten ==== | ||
| Zeile 563: | Zeile 619: | ||
| Ab dieser Version hat sich die Ersteinrichtung für den Headless Betrieb geändert. Hierfür nutze ich das Lite Image. Auf der SD-Karte müss auf der Boot-Partition einige Dateien angelegt werden diese wären: | Ab dieser Version hat sich die Ersteinrichtung für den Headless Betrieb geändert. Hierfür nutze ich das Lite Image. Auf der SD-Karte müss auf der Boot-Partition einige Dateien angelegt werden diese wären: | ||
| - | - SSH Aktivierung eine leere Datei mit dem namen '' | + | - SSH Aktivierung, eine leere Datei mit dem namen '' |
| - | - Benutzer eine Datei mit dem Namen '' | + | - Benutzer, eine Datei mit dem Namen '' |
| - | - WLAN | + | - WLAN, eine Datei im Pfad ''/ |
| + | |||
| + | < | ||
| + | [connection] | ||
| + | id=WLAN-Name | ||
| + | uuid=# random UUID in the format 11111111-1111-1111-1111-111111111111 | ||
| + | type=wifi | ||
| + | autoconnect=true | ||
| + | interface-name=wlan0 | ||
| + | |||
| + | [wifi] | ||
| + | mode=infrastructure | ||
| + | ssid=WLAN-Name | ||
| + | |||
| + | [wifi-security] | ||
| + | auth-alg=open | ||
| + | key-mgmt=wpa-psk | ||
| + | psk=WLAN-Passwort | ||
| + | |||
| + | [ipv4] | ||
| + | method=auto | ||
| + | |||
| + | [ipv6] | ||
| + | addr-gen-mode=default | ||
| + | method=auto | ||
| + | </ | ||
| + | |||
| + | sudo chmod -R 600 < | ||
| + | sudo chown -R root:root < | ||
| + | |||
| + | Hier soll es eine einzige Datei geben, mit der man alle Punkte ab arbeiten kann: | ||
| + | |||
| + | With Raspberry Pi OS bookworm you can configure WiFi via a '' | ||
| + | |||
| + | Note that this feature is experimental and will be replaced by cloud-init in the future. | ||
| + | |||
| + | An example gist and blog explains some of the options: | ||
| + | |||
| + | I am copying the example from the aforementioned gist (not affiliated): | ||
| + | |||
| + | < | ||
| + | # Required: | ||
| + | config_version = 1 | ||
| + | |||
| + | [system] | ||
| + | hostname = " | ||
| + | |||
| + | [user] | ||
| + | # If present, the default " | ||
| + | name = " | ||
| + | # The password can be encrypted or plain. To encrypt, we can use " | ||
| + | password = " | ||
| + | password_encrypted = true | ||
| + | |||
| + | [ssh] | ||
| + | # ssh_import_id = " | ||
| + | enabled = true | ||
| + | password_authentication = false | ||
| + | # We can also seed the ssh public keys configured for the default user: | ||
| + | # authorized_keys = [ " | ||
| + | |||
| + | [wlan] | ||
| + | ssid = " | ||
| + | password = " | ||
| + | password_encrypted = true | ||
| + | hidden = false | ||
| + | # The country is written to / | ||
| + | # Reference: https:// | ||
| + | country = " | ||
| + | |||
| + | [locale] | ||
| + | keymap = " | ||
| + | timezone = " | ||
| + | </ | ||
| + | |||
| + | You could dig more into the firstboot or init_config scripts (the latter is what loads the config). | ||
| + | |||
| + | |||
| Entscheident ist dieses Verzeichnis auf der Wurzel-Partition wo die Einstellungen konfiguriert werden. | Entscheident ist dieses Verzeichnis auf der Wurzel-Partition wo die Einstellungen konfiguriert werden. | ||
wiki/raspberrypi.1711885373.txt.gz · Zuletzt geändert: 2024/03/31 13:42 von pulsar
