Part Number: AM3358
Other Parts Discussed in Thread: TPS65217
Tool/software: Linux
This may not be the correct forum for this question. If so, please direct me to the correct forum.
I've been working with the Beaglebone Black and Green developing code for the PRUs. I was using the following version:
Linux beaglebone 4.4.9-ti-r25 #1 SMP Thu May 5 23:08:13 UTC 2016 armv71 GNU/Linux
I am doing remote_proc from the Arm side to the PRUs. I have my .OUT files in the /lib/firmware folder.
I start my Arm code on startup with a service.
Everything was working great until I upgraded to the following build:
Linux beaglebone 4.9.29-ti-rt-r36 #1 SMP PREEMPT RT Wed May 24 14:33:25 EDT 2017 armv7l GNU/Linux
What I am seeing is
Failed to open /dev/rpmsg_pru31
when the Arm code is doing the following:
#define NUM_MESSAGES 100
#define DEVICE_NAME "/dev/rpmsg_pru31"
void thread2_main(void)
{
int status;
struct pollfd pollfds[1];
int result = 0;
/* Open the rpmsg_pru character device file */
pollfds[0].fd = open(DEVICE_NAME, O_RDWR);
/*
* If the RPMsg channel doesn't exist yet the character device
* won't either.
* Make sure the PRU firmware is loaded and that the rpmsg_pru
* module is inserted.
*/
if(pollfds[0].fd < 0) {
printf("Failed to open %s\n", DEVICE_NAME);
close(pollfds[0].fd);
// return -1;
}
I'm not sure where to look for the problem.
Something changed so the remote_proc can't hook up.
This is my lsmod:
root@beaglebone:/sys/module# lsmod
Module Size Used by
binfmt_misc 11051 1
c_can_platform 7475 0
spidev 8867 0
c_can 12250 1 c_can_platform
can_dev 14440 1 c_can
spi_omap2_mcspi 12866 0
tieqep 8606 0
virtio_rpmsg_bus 13117 0
rpmsg_core 8217 1 virtio_rpmsg_bus
pru_rproc 15399 0
pruss_intc 8775 2 pru_rproc
pruss 10633 1 pru_rproc
omap_aes_driver 23718 0
crypto_engine 7035 1 omap_aes_driver
pruss_soc_bus 4596 0
omap_sham 26574 0
omap_rng 5544 0
rng_core 8523 1 omap_rng
usb_f_acm 8217 1
u_serial 12927 3 usb_f_acm
usb_f_rndis 25931 1
g_multi 5958 0
usb_f_mass_storage 50190 2 g_multi
u_ether 13883 2 g_multi,usb_f_rndis
libcomposite 54819 4 usb_f_acm,usb_f_mass_storage,g_multi,usb_f_rndis
cpufreq_ondemand 7899 1
evdev 13460 1
cpufreq_userspace 3807 0
cpufreq_conservative 4417 0
tps65217_charger 5088 0
cpufreq_powersave 1567 0
uio_pdrv_genirq 4045 0
uio 10625 1 uio_pdrv_genirq
I am just hoping you might be able to point me in the right direction.
Thanks,
