December 14, 2013

Using the GitHub AM335x PRU development package for linux

See the following link: Some other tutorials tell you to "obtain the zip file" for this. If you look closely on the page above you will find a button that offers to provide you a zip file. I prefer to use git clone to fetch the package and either of the following commands should work:
git clone https://github.com/beagleboard/am335x_pru_package.git
git clone git://github.com/beagleboard/am335x_pru_package.git
Once you do this, you will have a directory: am335x_pru_package.

Package contents

Here is the output of ls -lR
.:
total 1392
-rw-rw-r-- 1 tom tom   95575 Dec 14 14:34 am335xPruPackage_1_2_Manifest.pdf
-rw-rw-r-- 1 tom tom 1313637 Dec 14 14:34 am335xPruReferenceGuide.pdf
drwxrwxr-x 2 tom tom    4096 Dec 14 14:34 Documentation
drwxrwxr-x 5 tom tom    4096 Dec 14 14:34 pru_sw
-rw-rw-r-- 1 tom tom     989 Dec 14 14:34 README.txt

./Documentation:
total 2768
-rw-rw-r-- 1 tom tom 994778 Dec 14 14:34 01-AM335x_PRU_ICSS_Overview.pdf
-rw-rw-r-- 1 tom tom 312903 Dec 14 14:34 02-AM18x_PRUSS_to_AM335x_PRU-ICSS_Software_Migration_Guide.pdf
-rw-rw-r-- 1 tom tom 645516 Dec 14 14:34 03-AM335x_PRU_Linux_Application_Loader-ug.pdf
-rw-rw-r-- 1 tom tom 869042 Dec 14 14:34 04-CCS_PRU_Debugger-training.pdf
-rw-rw-r-- 1 tom tom   2153 Dec 14 14:34 AM335x_PRU_ICSS.gel

./pru_sw:
total 12
drwxrwxr-x 4 tom tom 4096 Dec 14 14:34 app_loader
drwxrwxr-x 5 tom tom 4096 Dec 14 14:34 example_apps
drwxrwxr-x 3 tom tom 4096 Dec 14 14:34 utils

./pru_sw/app_loader:
total 8
drwxrwxr-x 2 tom tom 4096 Dec 14 14:34 include
drwxrwxr-x 2 tom tom 4096 Dec 14 14:34 interface

./pru_sw/app_loader/include:
total 16
-rwxrwxr-x 1 tom tom 5666 Dec 14 14:34 prussdrv.h
-rwxrwxr-x 1 tom tom 4298 Dec 14 14:34 pruss_intc_mapping.h

./pru_sw/app_loader/interface:
total 40
-rwxrwxr-x 1 tom tom  1317 Dec 14 14:34 Makefile
-rwxrwxr-x 1 tom tom 21243 Dec 14 14:34 prussdrv.c
-rwxrwxr-x 1 tom tom  9350 Dec 14 14:34 __prussdrv.h

./pru_sw/example_apps:
total 20
-rwxrwxr-x 1 tom tom  609 Dec 14 14:34 DIRS
-rw-rw-r-- 1 tom tom 1068 Dec 14 14:34 Makefile
drwxrwxr-x 2 tom tom 4096 Dec 14 14:34 PRU_memAccess_DDR_PRUsharedRAM
drwxrwxr-x 2 tom tom 4096 Dec 14 14:34 PRU_memAccessPRUDataRam
drwxrwxr-x 2 tom tom 4096 Dec 14 14:34 PRU_PRUtoPRU_Interrupt

./pru_sw/example_apps/PRU_memAccess_DDR_PRUsharedRAM:
total 32
-rwxrwxr-x 1 tom tom  299 Dec 14 14:34 log.txt
-rwxrwxr-x 1 tom tom  720 Dec 14 14:34 Makefile
-rwxrwxr-x 1 tom tom 8724 Dec 14 14:34 PRU_memAccess_DDR_PRUsharedRAM.c
-rwxrwxr-x 1 tom tom 4360 Dec 14 14:34 PRU_memAccess_DDR_PRUsharedRAM.hp
-rwxrwxr-x 1 tom tom 3785 Dec 14 14:34 PRU_memAccess_DDR_PRUsharedRAM.p

./pru_sw/example_apps/PRU_memAccessPRUDataRam:
total 28
-rwxrwxr-x 1 tom tom  291 Dec 14 14:34 log.txt
-rwxrwxr-x 1 tom tom  706 Dec 14 14:34 Makefile
-rwxrwxr-x 1 tom tom 7373 Dec 14 14:34 PRU_memAccessPRUDataRam.c
-rwxrwxr-x 1 tom tom 5055 Dec 14 14:34 PRU_memAccessPRUDataRam.hp
-rwxrwxr-x 1 tom tom 3834 Dec 14 14:34 PRU_memAccessPRUDataRam.p

./pru_sw/example_apps/PRU_PRUtoPRU_Interrupt:
total 36
-rwxrwxr-x 1 tom tom  498 Dec 14 14:34 log.txt
-rwxrwxr-x 1 tom tom  784 Dec 14 14:34 Makefile
-rwxrwxr-x 1 tom tom 4042 Dec 14 14:34 PRU_PRU0toPRU1_Interrupt.p
-rwxrwxr-x 1 tom tom 3921 Dec 14 14:34 PRU_PRU1toPRU0_Interrupt.p
-rwxrwxr-x 1 tom tom 9138 Dec 14 14:34 PRU_PRUtoPRU_Interrupt.c
-rwxrwxr-x 1 tom tom 5656 Dec 14 14:34 PRU_PRUtoPRU_Interrupt.hp

./pru_sw/utils:
total 412
-rw-rw-r-- 1 tom tom   1610 Dec 14 14:34 LICENCE.txt
-rwxrwxr-x 1 tom tom  98294 Dec 14 14:34 pasm_2.arm
-rwxrwxr-x 1 tom tom 131584 Dec 14 14:34 pasm_2.exe
-rwxrwxr-x 1 tom tom  92916 Dec 14 14:34 pasm_2.mac
-rwxrwxr-x 1 tom tom  82065 Dec 14 14:34 pasm_2.x86
drwxrwxr-x 2 tom tom   4096 Dec 14 14:34 pasm_source

./pru_sw/utils/pasm_source:
total 260
-rwxrwxr-x 1 tom tom   132 Dec 14 14:34 dosbuild.bat
-rwxrwxr-x 1 tom tom   112 Dec 14 14:34 linuxbuild
-rwxrwxr-x 1 tom tom   116 Dec 14 14:34 macbuild
-rwxrwxr-x 1 tom tom 41810 Dec 14 14:34 pasm.c
-rwxrwxr-x 1 tom tom  4052 Dec 14 14:34 pasmdbg.h
-rwxrwxr-x 1 tom tom 13725 Dec 14 14:34 pasmdot.c
-rwxrwxr-x 1 tom tom 14620 Dec 14 14:34 pasmexp.c
-rwxrwxr-x 1 tom tom 16014 Dec 14 14:34 pasm.h
-rwxrwxr-x 1 tom tom 16299 Dec 14 14:34 pasmmacro.c
-rwxrwxr-x 1 tom tom 64422 Dec 14 14:34 pasmop.c
-rwxrwxr-x 1 tom tom 30508 Dec 14 14:34 pasmpp.c
-rwxrwxr-x 1 tom tom 32390 Dec 14 14:34 pasmstruct.c
-rwxrwxr-x 1 tom tom  7450 Dec 14 14:34 pru_ins.h


Feedback? Questions? Drop me a line!

Tom's Computer Info / tom@mmto.org