mirror of https://github.com/Desuuuu/klipper.git
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:
parent
5c982c90f3
commit
afac81c161
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue