forked from Klipper3d/klipper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pru: Update installation and flash scripts
Update the scripts used to install and "flash" the pru micro-controller code. Also, add a "flash" script for the linux micro-controller code. This makes it easier to install Klipper on a Beaglebone board that uses a Replicape. Signed-off-by: Kevin O'Connor <[email protected]>
- Loading branch information
1 parent
16d2ec3
commit 5a85c16
Showing
5 changed files
with
126 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
# This script installs the Linux MCU code to /usr/local/bin/ | ||
|
||
if [ "$EUID" -ne 0 ]; then | ||
echo "This script must be run as root" | ||
exit -1 | ||
fi | ||
set -e | ||
|
||
# Install new micro-controller code | ||
echo "Installing mirco-controller code to /usr/local/bin/" | ||
rm -f /usr/local/bin/klipper_mcu | ||
cp out/klipper.elf /usr/local/bin/klipper_mcu | ||
sync | ||
|
||
# Restart (if system install script present) | ||
if [ -f /etc/init.d/klipper_pru ]; then | ||
echo "Attempting host MCU restart..." | ||
service klipper_pru restart | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters