Everything working for sure on Debian 7.11 (kernel 3.8.13-bone80).
sudo su
apt-get install am335x-pru-package
mkdir src
cd src
wget https://www.freebasic-portal.de/dlfiles/592/libpruio-0.2.tar.bz2
tar xjf libpruio-0.2.tar.bz2
cd libpruio-0.2
cp src/c_wrapper/libpruio.so /usr/local/lib
ldconfig
cp src/c_wrapper/pruio*.h* /usr/local/include
cp src/config/libpruio-0A00.dtbo /lib/firmware
vim /boot/uEnv.txt
Unocommect line under Disable HDMI/eMMC (v3.8.x)
reboot
After reboot:
sudo su
echo BB-BONE-PRU-01 > /sys/devices/bone_capemgr.9/slots
mv /home/Debian/src/libpruio-0.2 /opt
cd /opt
git clone https://github.com/MaciekDudynski/BBB.git
cd BBB/
On each reboot:
sudo su
echo BB-BONE-PRU-01 > /sys/devices/bone_capemgr.9/slots
cd /opt/BBB/
Checking capes:
cat /sys/devices/bone_capemgr.9/slots
Enables BB-BONE-PRU-01 cape.
Enables BB-ADC cape.
Prints currently loaded capes (/sys/devices/bone_capemgr.9/slots).
Simple program reading (and printing) AIN-0 value in infinite loop. This program needs BB-ADC cape.
Simple program reading value (CH0) from connected with SPI ADC. This program needs BB-SPIDEV0 cape.
Just reads 1 000 000 times AIN-0 and writes that to file. This program needs libpruio or BB-BONE-PRU-01 cape.
Prints current value of AIN-0 and current number of reads. This program needs libpruio or BB-BONE-PRU-01 cape.
Writes to binary files all reads from AIN-0 (200 kHz). Configuration described in source file. This program needs libpruio or BB-BONE-PRU-01 cape.
- Simplyfy instuction
- Add more sources
- Add DAC
- Add filters
- Add libprui recompile instruction
The spi_bus files are taken from Derek Molloy. (https://github.com/derekmolloy/exploringBB).