mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-11-02 11:25:59 +01:00
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user