Hi Greg, I followed yout guide - rpmsg_pru31 appears! My mistake must have been that I set the PRU_CGT incorrectly to /usr.
Thanks for taking the time! Torben, a happy camper On Sunday, May 29, 2016 at 5:30:30 PM UTC+2, Greg wrote: > > Hi Torben- > > I got that image to work. Here is a summary of the steps. Note that I am > ssh-ing to a BBG as root. > > 1. Flash IOT image to micro-sd. > 2. Insert micro-sd into BBG slot, press boot and power buttons and > release. > 3. ssh ro...@192.168.1.7 <javascript:> > 4. uname -r to verify kernel -> 4.4.9-ti-r25 YES, it is the correct > kernel. > 5. apt-get update > 6. cd / and then find . -name cgt-pru, and the path is > /usr/share/ti/cgt-pru. This is the location of the PRU library and > includes. > However, the clpru compiler binary is not there: > which clpru > /usr/bin/clpru > So the compiler binary is in a different location. This is a problem > for the labs make files. > cd /usr/share/ti/cgt-pru > mkdir bin > ln -s /usr/bin/clpru clpru > So now the make files will find the compiler executable in the > correct location via the link. > 7. cd /home/debian > git clone git:// > git.ti.com/pru-software-support-package/pru-software-support-package.git > This will clone a copy of the latest pru support package. > 8. cd into lab_5 in the package: > cd lab_5/solution/PRU_Halt > make > This will fail, it is looking for environment variable $PRU_CGT > export PRU_CGT=/usr/share/ti/cgt-pru > Now try make again. It should succeed. > 9. cd gen > cp PRU_Halt.out am335x-pru0-fw > cp am335x-pru0-fw /lib/firmware > 10. Now cd into the PRU_RPMsg_Echo_Interrupt1 directory in the same lab_5. > Edit main.c as follows: > //#define CHAN_NAME "rpmsg-client-sample" > #define CHAN_NAME "rpmsg-pru" > 11. Now almost the same as #9, this time for pru1: > cd gen > cp PRU_RPMsg_Echo_Interrupt1.out am335x-pru1-fw > cp am335x-pru1-fw /lib/firmware > 12. Reboot > 13. cd /dev look for rpmsg_pru31 device file. It will be there! > > Hopefully I did not miss any of the steps. Let me know if this helps. > > Regards, > Greg > > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/0d490dfc-4845-45f0-a019-65cacf8c8edf%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.