CONFIG_PRU_RPROC_BEAGLELOGIC may be set to "m" or "y" accordingly to enable
BeagleLogic support in the built kernel. BeagleLogic may also be compiled as
an out-of tree module but is still included in the sources.
Please apply this after Matt Ranostay's patch to update pru_rproc.c for
supporting the PRU C Compiler version 2.0.0B [ref: http://git.io/uCfGKQ]
Download the matching PRU firmware beaglelogic-firmware.tar.gz for running
BeagleLogic from http://goo.gl/770FTZ and extract into /lib/firmware on your BBB
Kumar Abhishek (3):
Add DTS for BeagleLogic
Add BeagleLogic binding functions to pru_rproc
Add kernel module for BeagleLogic
Ran into one small issue when merging this as-is into the BeagleBone tree:
In file included from drivers/remoteproc/pru_rproc.c:37:0:
drivers/remoteproc/beaglelogic_glue.h:24:20: error: field ‘miscdev’
has incomplete type
scripts/Makefile.build:307: recipe for target
'drivers/remoteproc/pru_rproc.o' failed
make[2]: *** [drivers/remoteproc/pru_rproc.o] Error 1
scripts/Makefile.build:454: recipe for target 'drivers/remoteproc' failed
make[1]: *** [drivers/remoteproc] Error 2
make[1]: *** Waiting for unfinished jobs....
Yep, I came to realize of this after I had already sent the patch on the list. The fix is to just add #include <linux/miscdevice.h> into the pru_rproc.c file at line 70 [This was not required for the file in Koen’s tree as it had some code from the lighting the example].
I would recommend setting CONFIG_PRU_RPROC_BEAGLELOGIC to "m" so that it
could help in debugging.
Sure, not a problem.
Also, could you please include the firmware files beaglelogic-pru0 and
beaglelogic-pru1 into your tree from this link: http://goo.gl/770FTZ
Otherwise probing the driver will fail (and being compiled in there would be
no way to retrigger the probe)
After:
They will be located here:
/opt/scripts/device/bone/capes/BB-BEAGLELOGIC/
I'll move then to /lib/firmware in the default debian image, but
current debian users will just have to: