From: kremlin Date: Wed, 20 Jan 2016 23:56:24 +0000 (-0500) Subject: add pru setup instructions X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=capstone.git;a=commitdiff_plain;h=f2d69e039b9188c82a0a3b3525ea87a08e6599e1 add pru setup instructions --- f2d69e039b9188c82a0a3b3525ea87a08e6599e1 diff --git a/doc/pru-setup b/doc/pru-setup new file mode 100644 index 0000000..8f066c5 --- /dev/null +++ b/doc/pru-setup @@ -0,0 +1,23 @@ +1.) build/install pru kernel module driver & library objects/headers + a. https://github.com/beagleboard/am335x_pru_package.git + b. headers go in /usr/include/pruss/ + c. in app_loader/interface/, `CROSS_COMPILE= make` + d. in app_loader/lib/ move objects to /usr/lib && `ldconfig` + +2.) build/install assembler + a. in pru_sw/utils/pasm_source/, `source linuxbuild` (wtf) + b. executable is one dir up, put in $PATH + +3.) load "kernel module" + a. `echo BB-BONE-PRU-01 > /sys/devices/bone_capemgr.9/slots` + +4.) write pru assembly + a. this is the most fun part + b. assemble object via binary in step 2 + +5.) write host loader + a. C + b. init lib, setup intr. + c. load object from 4a via lib func + d. block until intr via lib func + e. clean up via lib func