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.

Beagle Bone Black PRU remote message buffer size (FIFO size)

A bulky unsigned int8 data of at least 6KB is read in parallel as PRU-1 inputs (pr1_pru1_pru_r31_bit 0 to pr1_pru1_pru_r31_bit 7), and PRU-1 passes the data to user space in AM335x by the remote message and virtual IO bus. I have two questions as follows:

1. The virtual interface /dev/rpmsg_pru31 between PRU-1 and AM335x only support the character. How to change it be uint8 (0~255 in decimal) at both PRU firmware side and Linux module side?

2. Resource table and PRU_rpmsg.h for PRU firmware compilation limit the rpmsg buffer size up to 512B (496B payload and 16B header). At the module side, ‘virtio_rpmsg_bus.c’ and ‘rpmsg_pru.c’ also restrict the FIFO size up to 512B but allows 512 buffers to use (512x512=256K). Is it hardcoded into the system? Can increase the communication speed between PRU-1 and AM335x by increasing the FIFO size?

 

Thanks for your kindly reply.

Regards,

Yanjia