From f2d69e039b9188c82a0a3b3525ea87a08e6599e1 Mon Sep 17 00:00:00 2001 From: kremlin Date: Wed, 20 Jan 2016 18:56:24 -0500 Subject: [PATCH 1/1] add pru setup instructions --- doc/pru-setup | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc/pru-setup 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 -- 2.41.0