diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-07-05 13:21:02 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-07-05 14:21:32 -0400 |
commit | 2d173f51b1531ffbde3723655bae0adb9bca5ecb (patch) | |
tree | 781921bb209c5b116b8bf0c0bd7f5869734f9cbd /docs/beaglebone.md | |
parent | b32ba3727bf6b07bb1099cde694f9d55081855ca (diff) | |
download | kutter-2d173f51b1531ffbde3723655bae0adb9bca5ecb.tar.gz kutter-2d173f51b1531ffbde3723655bae0adb9bca5ecb.tar.xz kutter-2d173f51b1531ffbde3723655bae0adb9bca5ecb.zip |
pru: Add documentation and install scripts for running on the PRU
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs/beaglebone.md')
-rw-r--r-- | docs/beaglebone.md | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/docs/beaglebone.md b/docs/beaglebone.md new file mode 100644 index 00000000..2eea47a8 --- /dev/null +++ b/docs/beaglebone.md @@ -0,0 +1,79 @@ +This document describes the process of running Klipper on a Beaglebone +PRU. The PRU support is experimental. + +Building an OS image +==================== + +Start by installing the +[latest Jessie IoT](https://beagleboard.org/latest-images) image +(2017-03-19 or later). One may run the image from either a micro-SD +card or from builtin eMMC. If using the eMMC, install it to eMMC now +by following the instructions from the above link. + +Then ssh into the beaglebone machine (ssh debian@beaglebone -- +password is "temppwd") and install Klipper by running the following +commands: +``` +git clone https://github.com/KevinOConnor/klipper +./klipper/scripts/install-beaglebone.sh +``` + +Install Octoprint +================= + +One may then install Octoprint: +``` +git clone https://github.com/foosel/OctoPrint.git +cd OctoPrint/ +virtualenv venv +./venv/bin/python setup.py install +``` + +And setup OctoPrint to start at bootup: +``` +sudo cp ~/OctoPrint/scripts/octoprint.init /etc/init.d/octoprint +sudo chmod +x /etc/init.d/octoprint +sudo cp ~/OctoPrint/scripts/octoprint.default /etc/default/octoprint +sudo update-rc.d octoprint defaults +``` + +It is necessary to modify OctoPrint's **/etc/default/octoprint** +configuration file. One must change the OCTOPRINT_USER user to +"debian", uncomment the BASEDIR, CONFIGFILE, and DAEMON settings and +change the references from "/home/pi/" to "/home/debian/": +``` +sudo nano /etc/default/octoprint +``` + +Then start the Octoprint service: +``` +sudo systemctl start octoprint +``` + +Make sure the octoprint web server is accessible - it should be at: +[http://beaglebone:5000/](http://beaglebone:5000/) + + +Building the micro-controller code +================================== + +To compile the Klipper micro-controller code, start by configuring it +for the "Beaglebone PRU": +``` +cd ~/klipper/ +make menuconfig +``` + +To build and install the new micro-controller code, run: +``` +sudo service klipper stop +make flash +sudo service klipper start +``` + +Remaining configuration +======================= + +Complete the installation by configuring Klipper and Octoprint +following the instructions in +[the main installation document](Installation.md#Configuring_Klipper). |