User Tools

Site Tools


x40:octoprint

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
x40:octoprint [2023/01/30 11:38]
mao
x40:octoprint [2023/01/31 14:58] (current)
mao
Line 8: Line 8:
  =====Our Customized OctoPi=====  =====Our Customized OctoPi=====
 This is the easiest way to use OctoPrint on a Raspberry Pi\\ This is the easiest way to use OctoPrint on a Raspberry Pi\\
-====Download Image====+====1.Download Image====
 [[https://github.com/WEEDO3DTECH/OctoPi/releases/download/v1.8.6/2022-09-22-raspios-bullseye-armhf-lite-eww.xz|Download our custom version of OctoPi]] .\\ [[https://github.com/WEEDO3DTECH/OctoPi/releases/download/v1.8.6/2022-09-22-raspios-bullseye-armhf-lite-eww.xz|Download our custom version of OctoPi]] .\\
-====Install image tool==== +====2.Install image tool==== 
-Download the latest version of [[https://www.raspberrypi.com/software/|Raspberry Pi Imager]] and install it. If you want to use Raspberry Pi Imager from a second Raspberry Pi, you can install it from a terminal using **sudo apt install rpi-imager**\\ +Download the latest version of [[https://www.raspberrypi.com/software/|Raspberry Pi Imager]] and install it. \\ 
-====Flash image====+====3.Flash image====
 Then: Then:
   *Connect an SD card reader with the SD card inside.   *Connect an SD card reader with the SD card inside.
Line 18: Line 18:
   *Choose the SD card you wish to write your image to.   *Choose the SD card you wish to write your image to.
   *Review your selections and click on the Write button to begin writing data to the SD Card.   *Review your selections and click on the Write button to begin writing data to the SD Card.
 +====4.Connect Printer====
 +Select X40 from the "Printer Profile" settings, and connect the printer with 115200 baud rate.
 +{{:octoprint:x40-octoprint-connect.png?600|}}\\
  
 ---- ----
Line 40: Line 43:
  
 ===a)Install the Linux kernel header file:=== ===a)Install the Linux kernel header file:===
-The Linux kernel version of OctoPi is 5.4.79, So we download the corresponding header file installation package.+The Linux kernel version of OctoPi V0.18.0 is 5.4.79, so we download the corresponding header file installation package.
   wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_1.20201126-1_armhf.deb    wget http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_1.20201126-1_armhf.deb 
 (If your Linux kernel version is not 5.4.79, download the corresponding one from http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/ ; \\ (If your Linux kernel version is not 5.4.79, download the corresponding one from http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/ ; \\
-Use this command to check which version of your Linux kernel: **uname -r**)\\+Use this command to check which version of your Linux kernel is: **uname -r**)\\ 
 +\\
 Install the header file : Install the header file :
   sudo dpkg -i ./raspberrypi-kernel-headers_1.20201126-1_armhf.deb   sudo dpkg -i ./raspberrypi-kernel-headers_1.20201126-1_armhf.deb
 {{:octoprint:4install-header.png?400|}} {{:octoprint:4install-header.png?400|}}
  
-===b)Download the CH340 serial driver source code and unzip it===+===b)Download the CH340/CH341 serial driver source code and unzip it===
   wget http://www.weedo3dprinter.com/lib/exe/fetch.php/firmware/ch341ser_linux-kernel5.4.79.zip   wget http://www.weedo3dprinter.com/lib/exe/fetch.php/firmware/ch341ser_linux-kernel5.4.79.zip
   unzip ch341ser_linux-kernel5.4.79.zip   unzip ch341ser_linux-kernel5.4.79.zip
Line 61: Line 65:
   sudo depmod   sudo depmod
 {{:octoprint:7copy.png?400|}} {{:octoprint:7copy.png?400|}}
 +
 ====5.Reboot your Raspberry Pi and Connect the printer with its baud rate==== ====5.Reboot your Raspberry Pi and Connect the printer with its baud rate====
-{{:octoprint:8tina2s-connect.png?600|}}+===a)Reboot your Raspberry Pi, then add X40 settings to the profile.=== 
 +{{:octoprint:x40-octoprint-settings_1_.png?400|}} 
 +{{:octoprint:x40-octoprint-settings_2_.png?400|}} 
 +{{:octoprint:x40-octoprint-settings_3_.png?400|}} 
 +{{:octoprint:x40-octoprint-settings_4_.png?400|}} 
 + 
 +===b)Connect printer with 115200 baud rate=== 
 +{{:octoprint:x40-octoprint-connect.png?600|}}\\
  
 ---- ----
  
 =====Install OctoPrint from source on a Raspberry Pi===== =====Install OctoPrint from source on a Raspberry Pi=====
-This installation method is a bit complicated, if you do not have programming skills, we do not recommend you to use this method+This installation method is a bit complicated, if you do not have programming skills, we do not recommend you to use this method.
 ====1.Install OctoPrint==== ====1.Install OctoPrint====
 Install OctoPrint following the [[https://community.octoprint.org/docs|OctoPrint community documents]].\\ Install OctoPrint following the [[https://community.octoprint.org/docs|OctoPrint community documents]].\\
 \\ \\
-**If you can connect the printer with OctoPrint**, there's nothing more you need to do.\\+**If you can connect the printer by baud rate 115200**, skip to section 3.\\
 \\ \\
 **If you can not connect the printer with OctoPrint**, continue with section 2 to update the serial driver of CH341: **If you can not connect the printer with OctoPrint**, continue with section 2 to update the serial driver of CH341:
 ====2.Update serial driver==== ====2.Update serial driver====
-===a)Install your Linux kernel header package=== +===a)Update your Linux kernel===
-If you are compiling a kernel module or similar, you will need the Linux Kernel headers. These provide the various function and structure definitions required when compiling code that interfaces with the kernel.\\ +
- +
-If you have cloned the entire kernel from github, the headers are already included in the source tree. If you don’t need all the extra files, it is possible to install only the kernel headers from the Raspberry Pi OS repo.\\+
   sudo apt-get update   sudo apt-get update
 +  sudo apt-get install raspberrypi-bootloader raspberrypi-kernel
 +  sudo reboot
 +===b)Install your Linux kernel header package===
   sudo apt install raspberrypi-kernel-headers   sudo apt install raspberrypi-kernel-headers
-Those command above will install the latest version of kernel headers.Maybe not the same with your kernel version+===c)Download the CH340/CH341 serial driver source code and unzip it=== 
-This will cause "directory not found"error when build the serial driver from the source.+  wget http://www.weedo3dprinter.com/lib/exe/fetch.php/firmware/ch341ser_linux-kernel5.4.79.zip 
 +  unzip ch341ser_linux-kernel5.4.79.zip 
 +{{:octoprint:5download-source.png?400|}} 
 + 
 +===d)Build it:=== 
 +  cd ch341ser_linux-kernel5.4.79 && make 
 +{{:octoprint:6build.png?400|}} 
 + 
 +===e)Install it:=== 
 +  sudo cp ch34x.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/ 
 +  sudo depmod 
 +{{:octoprint:7copy.png?400|}}\\ 
 + 
 +====3.Reboot your Raspberry Pi and connect the printer with its baud rate==== 
 +===a)Reboot your Raspberry Pi, then add X40 settings to the profile.=== 
 +{{:octoprint:x40-octoprint-settings_1_.png?400|}} 
 +{{:octoprint:x40-octoprint-settings_2_.png?400|}} 
 +{{:octoprint:x40-octoprint-settings_3_.png?400|}} 
 +{{:octoprint:x40-octoprint-settings_4_.png?400|}} 
 + 
 +===b)Connect printer with 115200 baud rate=== 
 +{{:octoprint:x40-octoprint-connect.png?600|}}
  
x40/octoprint.1675049884.txt.gz · Last modified: 2023/01/30 11:38 by mao