diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-14 11:44:06 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-09-20 12:55:28 -0400 |
commit | 5a85c1667a80cc2dda9861980c64d99f8da0163e (patch) | |
tree | d1e8a9e8b4ba59e5fd346259247f114620a0652d /scripts/install-beaglebone.sh | |
parent | 16d2ec3a905204dd804831611aff37a4b508e0fa (diff) | |
download | kutter-5a85c1667a80cc2dda9861980c64d99f8da0163e.tar.gz kutter-5a85c1667a80cc2dda9861980c64d99f8da0163e.tar.xz kutter-5a85c1667a80cc2dda9861980c64d99f8da0163e.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'scripts/install-beaglebone.sh')
-rwxr-xr-x | scripts/install-beaglebone.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/install-beaglebone.sh b/scripts/install-beaglebone.sh index 209f6948..695e9f15 100755 --- a/scripts/install-beaglebone.sh +++ b/scripts/install-beaglebone.sh @@ -33,10 +33,17 @@ install_udev() { report_status "Installing pru udev rule..." sudo /bin/sh -c "cat > /etc/udev/rules.d/pru.rules" <<EOF -KERNEL=="rpmsg_pru30", MODE="0666" +KERNEL=="rpmsg_pru30", GROUP="tty", MODE="0660" EOF } +# Step 5: Add user to tty group +install_groups() +{ + report_status "Adding $USER to tty group..." + sudo adduser $USER tty +} + # Helper functions report_status() { @@ -63,3 +70,4 @@ install_main install_packages install_script install_udev +install_groups |