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:
Kevin O'Connor 2017-10-04 21:35:31 -04:00
parent 5c982c90f3
commit afac81c161
1 changed files with 4 additions and 1 deletions

View File

@ -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