Path: blob/master/Tools/Linux_HAL_Essentials/README.md
9444 views
PRU PWM
Updating kernel
Check your kernel version using
uname -rIf you get 3.8.13bone56+ as output then you may skip Updating kernel.
For other kernel versions write following cmds in your BBB:
After above steps reboot and check your kernel version using
uname -r,it should be3.8.13bone57
NOTE: For Ubuntu different scripts shall be used. E.g., for precise:
Setting Up PRU Compiler
You should first check if there is the PRU Compiler available in your Linux-Distribution.
apt-get updatesudo apt-get install ti-pru-cgt-installer
If it is not available in your Linux-Distribution you have to download it from the TI website.
Download PRU C Compiler v2.0.0B2 installer
Please check the path where you install PRU compiler.
Setting environment variable
note: semicolons in second command were intended
Compiling and loading the code
just
makecopy generated executable
pwmpru1toardupilot/Tools/Linux_HAL_Essentials/.To load firmware use
./startup.sh load: only once after reboot it will copy overlays and firmware to/lib/firmware/and loads them../startup.sh reload: it only copies firmware to/lib/firmware/and reloads pru firmware.
Enable loading cape during BBB startup (no need to follow above step if you do this step once):
cp BB-PXF-01-00A0.dtbo /lib/firmwareadd
cape_enable=capemgr.enable_partno=BB-PXF-01to/boot/uboot/uEnv.txtadd
CAPE=BB-PXF-01to/etc/default/capemgr