i.MX8M plus mmap() issue

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX8M plus mmap() issue

1,058 次查看
Na-veen
Contributor II

Hi,

Could it be possible to access DDR area from Linux user space with mmap() or related? I need a SHM- area between A53 process and am searching a minimum effort solution to realize that.

Thanks,

Nav

0 项奖励
回复
3 回复数

1,050 次查看
b36401
NXP Employee
NXP Employee

Do you mean to communicate between A and M cores?
You can use rpmsg for such purposes.

0 项奖励
回复

1,043 次查看
Na-veen
Contributor II

Hi,

For communication between a53. I am trying to secure memory area between the cores.

 

Thanks,

Nav

0 项奖励
回复

1,056 次查看
Na-veen
Contributor II

Simple code example,

Trying to build simple application with below lines of code and it fails allocate memory with "No such device error"

char * region = mmap(NULL,4096, PROT_WRITE,MAP_PRIVATE,0,0);

0 项奖励
回复