Did you use the correct mmap parameters? 

Here's an example of a line using mmap() that I used to map NAND memory:


config = mmap(0, siz_config, PROT_READ|PROT_WRITE, MAP_FILE|MAP_SHARED, 
                                fileno(fconfig), off_config);

Notice the PROT_WRITE and MAP_SHARED, these were necessary for my
purpose and perhaps using them will solve your problem as well. 

Regards,
Sander


-----Original Message-----
From:
[EMAIL PROTECTED]
cidsp.com
[mailto:[EMAIL PROTECTED]
ux.davincidsp.com] On Behalf Of Carlos Ojea
Sent: Thursday, December 21, 2006 1:45 PM
To: [email protected]
Subject: Accesing dsp's memory (ddr2)

Hello:
In a user-space program called 'control' I did a mmap so I can read
dsp's memory.
However, I have this problem when I try to a write to dsp's memory :

do_wp_page: bogus page at address 4012c000
VM: killing process control

Anyone knows why I can read but not write to dsp's memory?
Thanks,
Carlos
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
  
--------------------------------------------------------

 
CONFIDENTIALITY NOTICE - This e-mail transmission, and any documents, files or 
previous e-mail messages attached to it may contain information that is 
confidential or legally privileged. If you are not the intended recipient, or a 
person responsible for delivering it to the intended recipient, you are hereby 
notified that you must not read this transmission and that any disclosure, 
copying, printing, distribution or use of any of the information contained in 
or attached to this transmission is STRICTLY PROHIBITED. If you have received 
this transmission in error, please immediately notify Sander Huijsen by 
telephone or [EMAIL PROTECTED] and delete the original transmission and its 
attachments without reading or saving in any manner.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to