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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user