i.MX93 Linux OCRAM as shared memory

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX93 Linux OCRAM as shared memory

Jump to solution
1,607 Views
chrishoen
Contributor I

Hello

I'm working with an imx93, non-secure.

Here's my problem: I want to use ocram as shared memory between the linux a55 and the m33.

I have a linux user space test program and an m33 test program that can both access the ocram, but only the first 96KB (20480000 - 20497fff). Can I get more of it? The full 640KB?

The linux test program uses mmap at 0x20480000. It gives a bus error if it goes at or above 0x20498000.

Note: I won't be using the ethosu or rpmsg at all.

How does linux use ocram? Can I increase the 96KB to 640KB?

Thanks
Chris

0 Kudos
Reply
1 Solution
1,571 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

You can try to modify ocram permission settings in ATF:plat/imx/imx93/trdc_config.h

Add more memory blocks in trdc_n_mbc, 0-5 means six memory blocks(6*16KB=96KB), you need add more.

Zhiming_Liu_0-1725004694351.png


Best Regards
Zhiming

View solution in original post

0 Kudos
Reply
1 Reply
1,572 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi

You can try to modify ocram permission settings in ATF:plat/imx/imx93/trdc_config.h

Add more memory blocks in trdc_n_mbc, 0-5 means six memory blocks(6*16KB=96KB), you need add more.

Zhiming_Liu_0-1725004694351.png


Best Regards
Zhiming

0 Kudos
Reply