Last active
August 25, 2019 08:02
-
-
Save pratimugale/46a5d2fcd4dffef780c025ed7ba71d50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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