This shows you the differences between two versions of the page.
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: | ||
| | ||
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:// | [[https:// | ||
- | ====Install image tool==== | + | ====2.Install image tool==== |
- | Download the latest version of [[https:// | + | Download the latest version of [[https:// |
- | ====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 " | ||
+ | {{: | ||
---- | ---- | ||
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, | + | The Linux kernel version of OctoPi |
wget http:// | wget http:// | ||
(If your Linux kernel version is not 5.4.79, download the corresponding one from http:// | (If your Linux kernel version is not 5.4.79, download the corresponding one from http:// | ||
- | Use this command to check which version of your Linux kernel: **uname -r**)\\ | + | Use this command to check which version of your Linux kernel |
+ | \\ | ||
Install the header file : | Install the header file : | ||
sudo dpkg -i ./ | sudo dpkg -i ./ | ||
{{: | {{: | ||
- | ===b)Download the CH340 serial driver source code and unzip it=== | + | ===b)Download the CH340/ |
wget http:// | wget http:// | ||
unzip ch341ser_linux-kernel5.4.79.zip | unzip ch341ser_linux-kernel5.4.79.zip | ||
Line 61: | Line 65: | ||
sudo depmod | sudo depmod | ||
{{: | {{: | ||
+ | |||
====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==== | ||
- | {{: | + | ===a)Reboot your Raspberry Pi, then add X40 settings to the profile.=== |
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | ===b)Connect printer with 115200 baud rate=== | ||
+ | {{: | ||
---- | ---- | ||
=====Install OctoPrint from source on a Raspberry Pi===== | =====Install OctoPrint from source on a Raspberry Pi===== | ||
- | This installation method is a bit complicated, | + | This installation method is a bit complicated, |
====1.Install OctoPrint==== | ====1.Install OctoPrint==== | ||
Install OctoPrint following the [[https:// | Install OctoPrint following the [[https:// | ||
\\ | \\ | ||
- | **If you can connect the printer | + | **If you can connect the printer |
\\ | \\ | ||
**If you can not connect the printer with OctoPrint**, | **If you can not connect the printer with OctoPrint**, | ||
====2.Update serial driver==== | ====2.Update serial driver==== | ||
- | ===a)Install | + | ===a)Update |
- | 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 | + | ===c)Download |
- | This will cause " | + | wget http:// |
+ | unzip ch341ser_linux-kernel5.4.79.zip | ||
+ | {{: | ||
+ | |||
+ | ===d)Build it:=== | ||
+ | cd ch341ser_linux-kernel5.4.79 && make | ||
+ | {{: | ||
+ | |||
+ | ===e)Install it:=== | ||
+ | sudo cp ch34x.ko / | ||
+ | sudo depmod | ||
+ | {{: | ||
+ | |||
+ | ====3.Reboot your Raspberry Pi and connect | ||
+ | ===a)Reboot | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | ===b)Connect printer with 115200 baud rate=== | ||
+ | {{: | ||