diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-10-04 21:35:31 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-10-05 13:50:12 -0400 |
commit | afac81c1616018b6803e18ffcb19a85d3c516dd5 (patch) | |
tree | 9f482cfd26c444412934e4f2d28898fdbeeac337 /scripts | |
parent | 5c982c90f32e1429c931cbe126c08922edf76ed6 (diff) | |
download | kutter-afac81c1616018b6803e18ffcb19a85d3c516dd5.tar.gz kutter-afac81c1616018b6803e18ffcb19a85d3c516dd5.tar.xz kutter-afac81c1616018b6803e18ffcb19a85d3c516dd5.zip |
pru: Update start script to always unbind the PRU before binding it
It appears some versions of Debian will load the PRU with firmware on
boot, so make sure to always deactivate the PRU before attempting to
activate it with new firmware.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/klipper-pru-start.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/klipper-pru-start.sh b/scripts/klipper-pru-start.sh index 6e2cd96a..e73213d0 100755 --- a/scripts/klipper-pru-start.sh +++ b/scripts/klipper-pru-start.sh @@ -43,8 +43,11 @@ pru_start() { if [ -c /dev/rpmsg_pru30 ]; then pru_stop - sleep 1 + else + echo 4a334000.pru0 > /sys/bus/platform/drivers/pru-rproc/unbind + echo 4a338000.pru1 > /sys/bus/platform/drivers/pru-rproc/unbind fi + sleep 1 log_daemon_msg "Starting pru" echo 4a334000.pru0 > /sys/bus/platform/drivers/pru-rproc/bind |