1.bulk data resides in a shared memory region
2.RPMsg is used only as a notification mechanism
We want to ensure that the OSD62 BSP supports all required components and to confirm the correct steps to enable this.
1. Requesting Guidance on Shared Memory Setup:
To use rpmsg_char_zerocopy, we need a shared DDR region that both A53 and M4 can access.
The correct memory address & size for this carve-out
2. M4 Access to Shared DDR
For M4 to access the same physical DDR region, TI normally uses RAT (Region-Based Address Translation) or fixed mapping.
We need clarification on:
1.How the OSD62-PM-BRK maps shared DDR for the M4 core?
2.Whether RAT configuration is required for this board
3.Any example memory mapping/linker script you provide for M4 firmware
Q: Whether RAT configuration is required for this board
Yes. The only thing to keep in mind is the memory start address and size. OSD62-PM DDR start address is the same as AM62x-SK, but the size is 1GB: reg = <0x00000000 0x80000000 0x00000000 0x40000000>;
Q: Any example memory mapping/linker script you provide for M4 firmware
You should be able to use the example you pointed to by setting up a carveout:
Add a new 32MB range named “apps-shared-memory” at 0xa6000000.
root@osd62-pm-brk:~# ./rpmsg_char_zerocopy -r 9 -e apps-shared-memory
_rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio0.rpmsg_chrdev.-1.16
Can't create an endpoint device: Invalid argument
TEST STATUS: FAILED
Please tell me which code m4-core should run to make zerocopy example work.
My apologies for the delayed response. Hope you have made some progress on this issue. Looking at the log above, it seems like the linux application cannot find the remote M4 core according to the configuration in code. The remote endpoint is defined here in the linux application code: https://git.ti.com/cgit/rpmsg/rpmsg_char_zerocopy/tree/linux/src/rpmsg_char_zerocopy.c#n55.
Running “readlink -f /sys/bus/rpmsg/devices/virtio0.rpmsg_chrdev*” should show you a path that corresponds to the m4fss core. Please check on your board.
Looking at /sys/bus/rpmsg/devices/ I can see virtio0.rpmsg_chrdev.-1.14 but not 1.16 on the default BRK image I am running. Can you try modifying the linux code and recompiling? I will try to get the example running on my end and see if I run into any issues.
Hi Niraj,
Yes I have to add ti-rpmsg-char package in my Yocto to enable this support. After that the test has been passed so I am now able to use that shared memory region between MPU and MCU.