Skip to content

Instantly share code, notes, and snippets.

@pratimugale
Last active August 25, 2019 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratimugale/46a5d2fcd4dffef780c025ed7ba71d50 to your computer and use it in GitHub Desktop.
Save pratimugale/46a5d2fcd4dffef780c025ed7ba71d50 to your computer and use it in GitHub Desktop.
#!/bin/sh
# For the pruss_api driver
sudo depmod -ae
# For the prussd daemon service
sudo chmod a+x /usr/bin/prussd.py
sudo systemctl enable prussd.service
sudo systemctl daemon-reload
sudo systemctl start prussd.service
# Paths required to compile PRU firmware examples
if [ ! -f /usr/share/ti/cgt-pru/bin/clpru -a ! -f /usr/share/ti/cgt-pru/bin/lnkpru ]
then
cd /usr/share/ti/cgt-pru && mkdir -p bin && cd bin && sudo ln -s `which clpru` . && sudo ln -s `which lnkpru` . && sudo ln -s /usr/bin/ /usr/share/ti/cgt-pru/bin
else
echo "Paths required to compile PRU firmware examples have already been made"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment