{"id":2881,"date":"2014-09-10T17:05:12","date_gmt":"2014-09-10T15:05:12","guid":{"rendered":"http:\/\/speefak.spdns.de\/oss_lifestyle\/?p=2881"},"modified":"2024-06-02T14:15:07","modified_gmt":"2024-06-02T12:15:07","slug":"raspberry-pi-grundlagen-und-befehle","status":"publish","type":"post","link":"https:\/\/speefak.spdns.de\/oss_lifestyle\/raspberry-pi-grundlagen-und-befehle\/","title":{"rendered":"Raspberry Pi &#8211; Grundlagen und Befehle"},"content":{"rendered":"<p>Es sind mittlerweile 3 Modelle des Raspberry Pi erh\u00e4ltlich.<\/p>\n<ul>\n<li>Raspberry Pi Model A (256 MB Ram, 1x USB, kein Lan)<\/li>\n<li>Raspberry Pi Model B (512 MB Ram, 2x USB, LAN)<\/li>\n<li>Raspebrry Pi Model B+ (512 MB Ram 4x USB, LAN)<\/li>\n<\/ul>\n<p>Am 14. Juli 2014 wurde das <i>Model B+<\/i> vorgestellt. Bei diesem wurde die Anzahl der GPIO- und der USB-Ports erh\u00f6ht, die Leistungsaufnahme verringert und die Audioausgabe verbessert. Der SD-Kartenslot wurde von einem kompakteren Micro-SD-Kartenslot abgel\u00f6st. Das Modell B+ ersetzt das gleich viel kostende Modell B. Dies wird aber weiter angeboten und ist f\u00fcr Kunden gedacht, deren Anwendungen auf die Form der Platine und Pinbelegung hin konstruiert sind.<br \/>\nW\u00e4hrend beim Modell B die Stromversorgung mit einem USB-Y Kabel realisiert werden konnte, wird f\u00fcr das Modell B+ der Micro-USB Stromanschluss genutzt.<\/p>\n<hr \/>\n<h2>Die Spezifikationen der beiden Varianten A und B des Raspberry Pi:<\/h2>\n<table class=\"wikitable\">\n<tbody>\n<tr>\n<th><\/th>\n<th>Modell A<\/th>\n<th>Modell B<\/th>\n<th>Modell B+<\/th>\n<\/tr>\n<tr>\n<td>Preisempfehlung:<\/td>\n<td>25 US-$ (exkl. Mehrwertsteuer)<\/td>\n<td colspan=\"2\">35 US-$ (exkl. Mehrwertsteuer)<\/td>\n<\/tr>\n<tr>\n<td>Gr\u00f6\u00dfe:<\/td>\n<td colspan=\"3\">Kreditkartengr\u00f6\u00dfe 85,60 mm \u00d7 56 mm \u00d7 21 mm<\/td>\n<\/tr>\n<tr>\n<td><a title=\"System-on-a-Chip\" href=\"https:\/\/de.wikipedia.org\/wiki\/System-on-a-Chip\">SoC<\/a>:<\/td>\n<td colspan=\"3\"><a title=\"Broadcom\" href=\"https:\/\/de.wikipedia.org\/wiki\/Broadcom\">Broadcom<\/a> BCM2835<\/td>\n<\/tr>\n<tr>\n<td>CPU:<\/td>\n<td colspan=\"3\"><a title=\"ARM-Architektur\" href=\"https:\/\/de.wikipedia.org\/wiki\/ARM-Architektur#ARMv6_.282002.29\">ARM11<\/a>76JZF-S (700 MHz)<\/td>\n<\/tr>\n<tr>\n<td>GPU:<\/td>\n<td colspan=\"3\"><a title=\"Broadcom\" href=\"https:\/\/de.wikipedia.org\/wiki\/Broadcom\">Broadcom<\/a> VideoCore IV<\/td>\n<\/tr>\n<tr>\n<td>Arbeitsspeicher (SDRAM):<\/td>\n<td>256 MB<\/td>\n<td>512 MB (bis Oktober 2012 256 MB)<\/td>\n<td>512 MB<\/td>\n<\/tr>\n<tr>\n<td>USB-2.0-Anschl\u00fcsse:<\/td>\n<td>1<\/td>\n<td>2 (\u00fcber integrierten Hub)<\/td>\n<td>4<\/td>\n<\/tr>\n<tr>\n<td>Videoausgabe:<\/td>\n<td colspan=\"2\">HDMI, Composite Video\/FBAS<\/td>\n<td>HDMI, Composite Video\/FBAS (integriert in Klinkenstecker)<\/td>\n<\/tr>\n<tr>\n<td>Tonausgabe:<\/td>\n<td colspan=\"3\">3,5-mm-Klinkenstecker (analog), HDMI (digital)<\/td>\n<\/tr>\n<tr>\n<td>Nicht-fl\u00fcchtiger Speicher:<\/td>\n<td colspan=\"2\">Kartenleser f\u00fcr SD (SDHC und SDXC)\/MMC\/SDIO<\/td>\n<td>Kartenleser f\u00fcr microSD (SDHC und SDXC)\/MMC\/SDIO<\/td>\n<\/tr>\n<tr>\n<td>Netzwerk:<\/td>\n<td>\u2013<\/td>\n<td colspan=\"2\">10\/100-MBit-Ethernet-Controller (LAN9512 des Herstellers SMSC)<\/td>\n<\/tr>\n<tr>\n<td>Schnittstellen:<\/td>\n<td>Bis zu 17 <a title=\"Allzweckeingabe\/-ausgabe\" href=\"https:\/\/de.wikipedia.org\/wiki\/Allzweckeingabe\/-ausgabe\">GPIO<\/a>-Pins, SPI, I\u00b2C, UART, EGL<\/td>\n<td>26 GPIO-Pins, SPI, I\u00b2C, UART, EGL<\/td>\n<td>40 GPIO-Pins, SPI, I\u00b2C, UART, EGL<\/td>\n<\/tr>\n<tr>\n<td>Echtzeituhr:<\/td>\n<td colspan=\"3\">\u2013<\/td>\n<\/tr>\n<tr>\n<td>Leistungsaufnahme:<\/td>\n<td>5 V, 500 mA (2,5 W)<\/td>\n<td>5 V, 700 mA (3,5 W)<\/td>\n<td>5 V, 500-600 mA (2,5-3 W)<\/td>\n<\/tr>\n<tr>\n<td>Stromversorgung:<\/td>\n<td colspan=\"3\">5V-Micro-USB-Anschluss (Micro-B), alternativ 4 \u00d7 <a title=\"Batterie (Elektrotechnik)\" href=\"https:\/\/de.wikipedia.org\/wiki\/Batterie_%28Elektrotechnik%29#Baugr.C3.B6.C3.9Fen\">AA-Batterien<\/a><\/td>\n<\/tr>\n<tr>\n<td>Betriebssysteme:<\/td>\n<td colspan=\"3\"><a class=\"mw-redirect\" title=\"GNU\/Linux\" href=\"https:\/\/de.wikipedia.org\/wiki\/GNU\/Linux\">GNU\/Linux<\/a>, <a title=\"Berkeley Software Distribution\" href=\"https:\/\/de.wikipedia.org\/wiki\/Berkeley_Software_Distribution\">BSD<\/a>, <a title=\"RISC OS\" href=\"https:\/\/de.wikipedia.org\/wiki\/RISC_OS\">RISC OS<\/a>, <a title=\"Plan 9 (Betriebssystem)\" href=\"https:\/\/de.wikipedia.org\/wiki\/Plan_9_%28Betriebssystem%29\">Plan 9<\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h2>Raspberry Pi Konfiguration (Debian basierend)<\/h2>\n<p><span style=\"text-decoration: underline;\">Systemkonfiguration<\/span><\/p>\n<ul>\n<li>raspi-config (Basiskonfiguration, Dateisystem vergr\u00f6\u00dfern, Passwort \u00e4ndern, \u00dcbertakten)<\/li>\n<li>dpkg-reconfigure tzdata (Zeitzone einstellen)<\/li>\n<li>date -s &#8220;10\/09\/2014 11:50:23&#8221; (Systemzeit manuell anpassen)<\/li>\n<li>dpkg-reconfigure console-data \/ dpkg-reconfigure keyboard-configuration (Tastaturbelegung anpassen)<\/li>\n<\/ul>\n<p><span style=\"text-decoration: underline;\">Systemparameter auslesen<\/span><\/p>\n<ul>\n<li>cat \/sys\/devices\/system\/cpu\/cpu0\/cpufreq\/cpuinfo_cur_freq (CPU Taktrate auslesen)<\/li>\n<li>cat \/sys\/class\/thermal\/thermal_zone*\/temp (CPU Temperatur auslesen)<\/li>\n<li>htop | top | saidar (Systemauslastung anzeigen)<\/li>\n<li>ncdu | duscus (Speicherkartenbelegung anzeigen)<\/li>\n<li>nload (Netzwerkaktivit\u00e4t anzeigen)<\/li>\n<\/ul>\n<hr \/>\n<h2>Die config.txt Datei<\/h2>\n<p>In der sich auf der FAT32 Partition befindlichen config.txt Datei befinden sich die Systemparameter f\u00fcr die Ansteuerung und Konfiguration der Hardware des Raspberry Pi. \u00c4nderungen an den Parametern wirken sich nach einem Neustart des Systemes aus.<\/p>\n<p><span style=\"text-decoration: underline;\">Folgende Parameter haben Einfluss auf die Geschwindigkeit des Raspberry Pi:<\/span><\/p>\n<ul>\n<li><strong>arm_freq<\/strong> &#8211; Sets the frequency of ARM processor. The default value is 700. (MHz)<\/li>\n<li><strong>gpu_freq<\/strong> &#8211; Simultaneously sets the frequency for: core_freq, h264_freq, isp_freq, and v3d_freq. (MHz)<\/li>\n<li><strong>core_freq<\/strong> &#8211; Sets the frequency of GPU processor. This will have an impact on ARM performance. The default value is 250. (MHz)<\/li>\n<li><strong>h264_freq<\/strong> &#8211; Sets the frequency of hardware video block. The default value is 250. (MHz)<\/li>\n<li><strong>isp_freq<\/strong> &#8211; Sets the frequency of image sensor pipeline block. The default value is 250.(MHz)<\/li>\n<li><strong>v3d_freq<\/strong> &#8211; Sets the frequency of 3D block. The default value is 250. (MHz)<\/li>\n<li><strong>sdram_freq<\/strong> &#8211; Sets the frequency of of SDRAM. The default value is 400. (MHz)<\/li>\n<\/ul>\n<p>Achtung: <strong>gpu_freq<\/strong> regelt 3 Werte simultan. Um diese Werte unabh\u00e4ngig voneinander zu regeln, muss gpu_freq deaktiviert und <strong>h264_freq<\/strong>, <strong>isp_freq<\/strong>, und <strong>v3d_freq <\/strong>aktiviert werden. Parameter k\u00f6nnen durch Auskommentieren (# an den Zeilenanfang stellen) oder L\u00f6schen der ganzen Parameterzeile deaktiviert werden.<\/p>\n<hr \/>\n<h2>Bugs<\/h2>\n<ul>\n<li>\u00a0Uhrzeit Stellt sich auf 01.01.1970 zur\u00fcck: In der Datei <em><strong>\/etc\/adjtime<\/strong><\/em> wird die Differenz zwischen der Hardwareuhr und der Software\/Linux Uhr festgehalten. Da der Raspberry Pi keine Hardwareuhr besitzt, kann es zu Fehlberechnungen kommen und die Softwareuhr wird auf das o.g. Datum zur\u00fcckgesetzt. Durch den Befehl <em><strong>date -s &#8220;10\/09\/2014 11:50:23&#8221; <\/strong><\/em>wird die Systemzeit korrigiert und mit dem L\u00f6schen der Datei \/etc\/adjtime eventuelle Fehlberechnungen korrigiert.<\/li>\n<\/ul>\n<hr \/>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-2821 alignleft\" src=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-content\/uploads\/2014\/08\/CC_BY_NC_SA.png\" alt=\"CC_BY_NC_SA\" width=\"65\" height=\"23\" \/>by Speefak <span style=\"font-size: 8pt;\">| <a href=\"http:\/\/elinux.org\/RPiconfig\" target=\"_blank\" rel=\"noopener\">elinux.org<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Es sind mittlerweile 3 Modelle des Raspberry Pi erh\u00e4ltlich. Raspberry Pi Model A (256 MB Ram, 1x USB, kein Lan) Raspberry Pi Model B (512 MB Ram, 2x USB, LAN) Raspebrry Pi Model B+ (512 MB Ram 4x USB, LAN) Am 14. Juli 2014 wurde das Model B+ vorgestellt. Bei diesem wurde die Anzahl der [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,7,26],"tags":[],"class_list":["post-2881","post","type-post","status-publish","format-standard","hentry","category-anleitungen","category-grundlagen","category-linux"],"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"speefak","author_link":"https:\/\/speefak.spdns.de\/oss_lifestyle\/author\/speefak_oss\/"},"rttpg_comment":1,"rttpg_category":"<a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/anleitungen\/\" rel=\"category tag\">Anleitungen<\/a> <a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/grundlagen\/\" rel=\"category tag\">Grundlagen<\/a> <a href=\"https:\/\/speefak.spdns.de\/oss_lifestyle\/category\/linux\/\" rel=\"category tag\">Linux<\/a>","rttpg_excerpt":"Es sind mittlerweile 3 Modelle des Raspberry Pi erh\u00e4ltlich. Raspberry Pi Model A (256 MB Ram, 1x USB, kein Lan) Raspberry Pi Model B (512 MB Ram, 2x USB, LAN) Raspebrry Pi Model B+ (512 MB Ram 4x USB, LAN) Am 14. Juli 2014 wurde das Model B+ vorgestellt. Bei diesem wurde die Anzahl der&hellip;","_links":{"self":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts\/2881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/comments?post=2881"}],"version-history":[{"count":0,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/posts\/2881\/revisions"}],"wp:attachment":[{"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/media?parent=2881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/categories?post=2881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/speefak.spdns.de\/oss_lifestyle\/wp-json\/wp\/v2\/tags?post=2881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}