This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/BEAGLEBK: PRU program load

Part Number: BEAGLEBK


Tool/software: Linux

Hi,

I'm following this guide:

Specifically lab_4.

I'm waiting on a JTag for the BeagleBone Black, but in the mean time can compile .out PRU executables and would like to load them.

There's a lot to decipher in those instructions, and I think they might be slightly outdated given we bought the BBB a couple weeks ago.

I'm booting from the EMMC, and would like the PRUs to be loaded with firmware upon boot.  It seems like lab_4 is designed to take you through this, although it's not working for me.  When I press the buttons on the cape nothing happens.

Although there's a lot there, from what lab_4 is telling me, I should be able to copy my .out files onto the BBB, symlink them as am335x-pru<x>-fw, and be able to load them with

    rmmod -f /lib/modules/4.4.12-xxxxxxxx/kernel/drivers/remoteproc/pru_rproc.ko
    insmod /lib/modules/4.4.12-xxxxxxxx/kernel/drivers/remoteproc/pru_rproc.ko


The output of my insmod is

insmod: ERROR: could not insert module /lib/modules/4.4.30-ti-r64/kernel/drivers/remoteproc/pru_rproc.ko: Unknown symbol in module

So I assume before I even start looking at my device tree, etc, I should address this first.

This is the output of dmesg after trying to insmod that module:

[ 1061.883000] pru_rproc: Unknown symbol pruss_intc_trigger (err 0)
[ 1061.883063] pru_rproc: Unknown symbol pruss_intc_unconfigure (err 0)
[ 1061.883112] pru_rproc: Unknown symbol pruss_intc_configure (err 0)
[ 1061.883200] pru_rproc: Unknown symbol pruss_cfg_set_gpmux (err 0)
debian@beaglebone:/lib/firmware$ uname -a
Linux beaglebone 4.4.30-ti-r64 #1 SMP Fri Nov 4 21:23:33 UTC 2016 armv7l GNU/Linux