Hardware Reference
In-Depth Information
running build
running build_py
python setup.py install
running install
.
.
.
Processing pru_speak-0.0-py2.7.egg
Removing /usr/local/lib/python2.7/dist-packages/
pru_speak-0.0-py2.7.egg
Copying pru_speak-0.0-py2.7.egg to /usr/local/lib/python2.7/
dist-packages
pru-speak 0.0 is already the active version in easy-install.pth
Installed /usr/local/lib/python2.7/dist-packages/
pru_speak-0.0-py2.7.egg
Processing dependencies for pru-speak==0.0
Searching for ply==3.4
Best match: ply 3.4
Processing ply-3.4-py2.7.egg
ply 3.4 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/ply-3.4-py2.7.egg
Finished processing dependencies for pru-speak==0.0
install -m 755 bs_tcp_server.py /usr/bin
install -m 755 bs_shell.py /usr/bin
Runing the Kernel Module
Use the modprobe command to load the kernel module and config-pin to load the
device tree overlay:
bone# modprobe pru_speak
bone# config-pin overlay BB-PRUSPEAK
The kernel module will need to be reloaded after rebooting, unless it's been added to /etc/
modules-load.d/modules.conf and /boot/uEnv.txt .
Running the Script
The PRU is now ready to run code. Add the code in Example 8-6 to a file named
pruSpeak.py . This code copies the input on P8_16 to the output on P9_31 .
Search WWH ::




Custom Search