{"id":57232,"date":"2021-12-15T16:05:04","date_gmt":"2021-12-15T15:05:04","guid":{"rendered":"https:\/\/ar3dp.de\/docs\/3d-druck\/klipper-3d\/mainsailos-erste-schritte\/"},"modified":"2021-12-15T16:05:04","modified_gmt":"2021-12-15T15:05:04","slug":"mainsailos-erste-schritte","status":"publish","type":"docs","link":"https:\/\/ar3dp.de\/en\/docs\/3d-druck\/klipper-3d\/mainsailos-erste-schritte\/","title":{"rendered":"MainsailOS &#8211; Erste Schritte"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Image downloaden &amp; flashen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Die aktuell neuste Version kannst du auf der GitHub-Seite von Mainsail herunterladen.<\/p>\n\n\n\n<div class=\"wp-block-fgb-button aligncenter fgb-button-wrapper\"><a href=\"https:\/\/github.com\/mainsail-crew\/mainsail\/releases\" class=\"fgb-button btn fgb-button--align-center btn-danger transition-3d-hover\" rel=\"nofollow noopener\" target=\"_blank\"><div class=\"fgb-button--inner\">Zur Downloadseite<\/div><\/a><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Die ganze Dokumentation zu MainsailOS findest du <a href=\"https:\/\/docs.mainsail.xyz\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">hier<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">MainsailOS konfigurieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Um MainsailOS einzurichten, musst du dich via SSH (z.B. mit Putty) mit deinen Raspberry Pi verbinden. Wenn du deine IP-Adresse nicht weist, dann ist der schnellste Weg diese herauszufinden, der Router. Eine Anleitung dazu findest du <a href=\"https:\/\/ar3dp.de\/docs\/internet-netzwerk\/router\/ip-adresse-herausfinden\/\" target=\"_blank\" rel=\"noreferrer noopener\">hier<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_1.png\" alt=\"\" class=\"wp-image-57234\" srcset=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_1.png 661w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_1-18x12.png 18w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_1-380x240.png 380w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_1-590x373.png 590w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><figcaption>Ansicht nach erfolgreichen Login<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Wurde der Standardzugang nicht ge\u00e4ndert, dann kannst du dich mit folgenden Daten anmelden.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Benutzername: Pi\nPasswort: raspberry<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Config erstellen<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">War der Login erfolgreich, muss eine Config f\u00fcr das Erstellen der Firmware angelegt werden. Gebt dazu folgende Befehle ein.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">cd ~\/klipper\/\nmake menuconfig<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Es \u00f6ffnet sich anschlie\u00dfend ein Fenster, wo du die Informationen zu den verbauten Microcontroller machen musst. Anbei findest du eine kleine \u00dcbersicht bekannter IC&#8217;s.<\/p>\n\n\n\n<div class=\"alert-box alert text-center font-size-1 rounded-0 mb-0 bg-danger\"><span class=\"text text-light\"><strong class=\"text-uppercase\">Achtung<\/strong> &#8211; Du musst absolut sicher sein, dass der Typ richtig ist. Das sicherste hier ist auf das Board zu schauen! Folgende Liste ist nur ein Anhaltspunkt und kann ggf. abweichen.<\/span><\/div>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Board \/ Drucker<\/th><th>Microcontroller<\/th><th>Typ<\/th><\/tr><\/thead><tbody><tr><td>Prusa Rambo Einsy<\/td><td>Atmega 2560<\/td><td>Atmega AVR<\/td><\/tr><tr><td>Anet a8<\/td><td>Atmega 1284P<\/td><td> Atmega AVR <\/td><\/tr><tr><td><\/td><td><\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_2.png\" alt=\"\" class=\"wp-image-57240\" srcset=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_2.png 661w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_2-18x12.png 18w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_2-380x240.png 380w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_2-590x373.png 590w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><figcaption>Makeconfig Anet a8<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Wenn alle Einstellungen getroffen sind, mit &#8220;Q&#8221; den Editor verlassen und mit &#8220;Y&#8221; speichern. Anschlie\u00dfend muss die Firmware erstellt werden. Dazu f\u00fchrst du folgenden Befehl aus.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">make<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Klipper erstellt nun die ben\u00f6tigte Firmware f\u00fcr deinen Microcontroller.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_3.png\" alt=\"\" class=\"wp-image-57245\" srcset=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_3.png 661w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_3-18x12.png 18w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_3-380x240.png 380w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_3-590x373.png 590w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><figcaption>Erstellung der Firmware<\/figcaption><\/figure><\/div>\n\n\n\n<h4 class=\"wp-block-heading\">USB-Port herausfinden<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Anschlie\u00dfend m\u00fcssen wir den USB-Port-Name herausfinden, an welchen dein Drucker bzw. Druckerboard h\u00e4ngt. Dazu f\u00fchrst du folgenden Befehl aus.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">ls -l \/dev\/serial\/by-id\/*<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Als Ergebnis erhalte ich folgenden Port.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lrwxrwxrwx 1 root root 13 Dec 15 15:17 <span class=\"font-weight-semi-bold\">\/dev\/serial\/by-id\/usb-1a86_USB_Serial-if00-port0<\/span> -&gt; ..\/..\/ttyUSB0\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Der ben\u00f6tigte Port in meinen Fall lautet:  <span class=\"font-weight-semi-bold\">\/dev\/serial\/by-id\/usb-1a86_USB_Serial-if00-port0<\/span> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Notiert bzw. merkt euch den USB-Port. Dieser wird sp\u00e4ter noch f\u00fcr die printer.cfg-Datei ben\u00f6tigt.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Firmware flashen<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Nun sagen wir unseren Pi, dass er die eben erstellte Firmware auf das angeschlossene Druckerboard flashen soll. F\u00fchrt dazu folgende Befehle nacheinander aus.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">sudo service klipper stop\nmake flash FLASH_DEVICE=\/dev\/serial\/by-id\/usb-1a86_USB_Serial-if00-port0\nsudo service klipper start<\/pre><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"661\" height=\"418\" src=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_4.png\" alt=\"\" class=\"wp-image-57248\" srcset=\"https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_4.png 661w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_4-18x12.png 18w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_4-380x240.png 380w, https:\/\/ar3dp.de\/wp-content\/uploads\/2021\/12\/ar_mainsailos_config_4-590x373.png 590w\" sizes=\"(max-width: 661px) 100vw, 661px\" \/><figcaption>Flash-Vorgang abgeschlossen<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Alternativ, wenn das Flashen oben nicht klappt.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;shell&quot;,&quot;mime&quot;:&quot;text\/x-sh&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;Shell&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;shell&quot;}\">sudo service klipper stop\navrdude -v -p atmega1284p -c arduino -P \/dev\/serial\/by-id\/usb-1a86_USB_Serial-if00-port0 -b 57600 -D -U flash:w:\/home\/pi\/Klipper\/out\/Klipper.elf.hex:i\nsudo service klipper start<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Pinter.cfg erstellen<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Nun besuche MainsailOS \u00fcber deinen Webbrowser indem du die IP-Adresse des Pi&#8217;s eingibst. Unter &#8220;Machine&#8221; -&gt; &#8220;Config&#8221; erstellst du eine neue Datei mit dem Namen &#8220;printer.cfg&#8221; und kopierst folgende Zeilen hinein.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;properties&quot;,&quot;mime&quot;:&quot;text\/x-properties&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;Properties files&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;properties&quot;}\"># Mainsail settings\n[include mainsail.cfg]<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Auf derselben Seite findest du diverse Beispiele f\u00fcr die &#8220;printer.cfg&#8221; f\u00fcr diverse Drucker. Sollte deiner dabei sein, kopiere den Inhalt aus dem Beispiel in die &#8220;printer.cfg&#8221;. Anschlie\u00dfend suche nach dem Tag &#8220;[mcu]&#8221; und gibt dort den korrekt USB-Port an.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;showPanel&quot;:true,&quot;languageLabel&quot;:&quot;language&quot;,&quot;fullScreenButton&quot;:true,&quot;copyButton&quot;:true,&quot;mode&quot;:&quot;properties&quot;,&quot;mime&quot;:&quot;text\/x-properties&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;fileName&quot;:&quot;&quot;,&quot;TrpContentRestriction&quot;:{&quot;restriction_type&quot;:&quot;exclude&quot;,&quot;selected_languages&quot;:[],&quot;panel_open&quot;:true},&quot;language&quot;:&quot;Properties files&quot;,&quot;maxHeight&quot;:&quot;400px&quot;,&quot;modeName&quot;:&quot;properties&quot;}\">[mcu]\n#serial: \/dev\/ttyUSB0\nserial: \/dev\/serial\/by-id\/usb-1a86_USB_Serial-if00-port0\n#ggf. die Bautrate mit angegeben\nbaud: 115200<\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Image downloaden &amp; flashen Die aktuell neuste Version kannst du auf der GitHub-Seite von Mainsail herunterladen. Die ganze Dokumentation zu MainsailOS findest du hier. MainsailOS konfigurieren Um MainsailOS einzurichten, musst du dich via SSH (z.B. mit Putty) mit deinen Raspberry Pi verbinden. Wenn du deine IP-Adresse nicht weist, dann ist der schnellste Weg diese herauszufinden,&#8230;<\/p>","protected":false},"author":1,"featured_media":0,"parent":57231,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_featured":false,"_is_vendor_doc":"0","footnotes":""},"doc_tag":[918,917,914,920,915],"class_list":["post-57232","docs","type-docs","status-publish","hentry","doc_tag-a8","doc_tag-anet","doc_tag-mainsail","doc_tag-makeconfig","doc_tag-os"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/57232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/comments?post=57232"}],"version-history":[{"count":0,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/57232\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/57231"}],"next":[{"title":"Klipper auf Prusa i3 MK3\/MK3S installieren","link":"https:\/\/ar3dp.de\/en\/docs\/3d-druck\/klipper-3d\/klipper-auf-prusa-i3-mk3-mk3s-installieren\/","href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/docs\/57256"}],"wp:attachment":[{"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/media?parent=57232"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/ar3dp.de\/en\/wp-json\/wp\/v2\/doc_tag?post=57232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}