From ffbace56d1dd509dc0df8cf2f043662c36226ef2 Mon Sep 17 00:00:00 2001
From: "Mark A. Yoder" <Mark.A.Yoder@Rose-Hulman.edu>
Date: Tue, 27 Dec 2022 15:15:24 -0500
Subject: [PATCH] Updated for cookbook at /opt/source

---
 books/pru-cookbook/03details/details.rst | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/books/pru-cookbook/03details/details.rst b/books/pru-cookbook/03details/details.rst
index 6dd6cddd..82a71dfa 100644
--- a/books/pru-cookbook/03details/details.rst
+++ b/books/pru-cookbook/03details/details.rst
@@ -34,8 +34,10 @@ It's all on a GitHub repository.
 
 .. code-block:: shell-session
 
+    bone$ cd /opt/source
     bone$ git clone https://git.beagleboard.org/beagleboard/pru-cookbook-code
-
+    bone$ cd pru-cookbook-code
+    bone$ sudo ./install.sh
 .. note::
    #TODO#: The version of code used needs to be noted in the documentation.
 
@@ -166,23 +168,19 @@ Now you are ready to compile and run.  This is automated for you in the Makefile
 .. code-block:: shell-session
 
     bone$ make
-    /var/lib/cloud9/common/Makefile:28: MODEL=TI_AM335x_BeagleBone_Black,TARGET=gpio.pru0,COMMON=/var/lib/cloud9/common
-    /var/lib/cloud9/common/Makefile:147: GEN_DIR=/tmp/cloud9-examples,CHIP=am335x,PROC=pru,PRUN=0,PRU_DIR=/sys/class/remoteproc/remoteproc1,EXE=.out
+    /opt/source/pru-cookbook-code/common/Makefile:27: MODEL=TI_AM335x_BeagleBone_Green_Wireless,TARGET=gpio.pru0,COMMON=/opt/source/pru-cookbook-code/common
     -    Stopping PRU 0
-    /bin/sh: 1: echo: echo: I/O error
-    Cannot stop 0
     CC	gpio.pru0.c
-    "/var/lib/cloud9/common/prugpio.h", line 53: warning #1181-D: #warning directive: "Found am335x"
-    LD	/tmp/cloud9-examples/gpio.pru0.o
-    -	copying firmware file /tmp/cloud9-examples/gpio.pru0.out to /lib/firmware/am335x-pru0-fw
-    write_init_pins.sh
-    writing "out" to "/sys/class/gpio/gpio30/direction"
+    "/opt/source/pru-cookbook-code/common/prugpio.h", line 53: warning #1181-D: #warning directive: "Found else"
+    LD	/tmp/vsx-examples/gpio.pru0.o
+    -	copying firmware file /tmp/vsx-examples/gpio.pru0.out to /lib/firmware/am335x-pru0-fw
     -    Starting PRU 0
-    MODEL   = TI_AM335x_BeagleBone_Black
+    write_init_pins.sh
+    MODEL   = TI_AM335x_BeagleBone_Green_Wireless
     PROC    = pru
     PRUN    = 0
     PRU_DIR = /sys/class/remoteproc/remoteproc1
-    rm /tmp/cloud9-examples/gpio.pru0.o
+    rm /tmp/vsx-examples/gpio.pru0.o
 
 Congratulations, your are now running a PRU.  If you have an LED attached to
 ``P9_11`` on the Black, or ``P2_05`` on the Pocket, it should be blinking.
-- 
GitLab