Using the below I can Read/Write ARM/DSP DDR memory using
Physical addresses, load and execute programs in the DSP
etc. (maps entire 256MB)...

int fd;
void *map;

if ((fd=open("/dev/mem",O_RDWR|O_SYNC))==-1)  exit(1);
map=mmap((void
*)0x80000000,0x10000000,PROT_READ|PROT_WRITE|PROT_EXEC,MAP_SHARED,fd,0x8
0000000);
if (map!=(void *)0x80000000)                            exit(1);

Wow ! that works !!
Many thanks Rudy!!
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to