<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Memory read/write utility for P5040DS-PB in P-Series</title>
    <link>https://community.nxp.com/t5/P-Series/Memory-read-write-utility-for-P5040DS-PB/m-p/664496#M4013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;mmap returns an MMAP_FAIL and sets EPERM as errno when trying to map a file from a partition that is mounted with noexec option in RHEL-4.8&lt;/LI&gt;&lt;LI style="box-sizing: border-box;"&gt;The problem occurs only for a 32 bit application running on a 64 bit system&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2017 02:08:28 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2017-01-11T02:08:28Z</dc:date>
    <item>
      <title>Memory read/write utility for P5040DS-PB</title>
      <link>https://community.nxp.com/t5/P-Series/Memory-read-write-utility-for-P5040DS-PB/m-p/664494#M4011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Can anyone share the memory read/write utility for P5040DS-PB. I do have devmem2.c ( as attached ) that works fine for other targets. However it is not working for P5040.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The function "mmap" fails with EPERM [Operation not permitted] error. The "prot" argument was changed to "PROT_READ | PROT_WRITE | PROT_EXEC" , still it shows the same error[Operation not permitted].&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337122"&gt;devmem2.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2017 09:50:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Memory-read-write-utility-for-P5040DS-PB/m-p/664494#M4011</guid>
      <dc:creator>rammurmu</dc:creator>
      <dc:date>2017-01-06T09:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Memory read/write utility for P5040DS-PB</title>
      <link>https://community.nxp.com/t5/P-Series/Memory-read-write-utility-for-P5040DS-PB/m-p/664495#M4012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I found the way to ready using the attached devmem2.c. The crux is address argument need to passed as 36 bit address, i.e. CCSRBAR + ADDR OFFSET should be 36bit. The mmap function will return correct mapping after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example to read the BR0 ( OFFSET = 0x124000) ( CCSRBARL = 0xFE000000 , CCSRBARH = 0xF0000000 ). The final address of BR0 is 0xFFE124000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 04:36:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Memory-read-write-utility-for-P5040DS-PB/m-p/664495#M4012</guid>
      <dc:creator>rammurmu</dc:creator>
      <dc:date>2017-01-10T04:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Memory read/write utility for P5040DS-PB</title>
      <link>https://community.nxp.com/t5/P-Series/Memory-read-write-utility-for-P5040DS-PB/m-p/664496#M4013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="box-sizing: border-box; margin-top: 0px; margin-bottom: 1rem; color: #333333; font-family: Overpass, 'Open Sans', Helvetica, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #ffffff;"&gt;&lt;LI style="box-sizing: border-box;"&gt;mmap returns an MMAP_FAIL and sets EPERM as errno when trying to map a file from a partition that is mounted with noexec option in RHEL-4.8&lt;/LI&gt;&lt;LI style="box-sizing: border-box;"&gt;The problem occurs only for a 32 bit application running on a 64 bit system&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2017 02:08:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/Memory-read-write-utility-for-P5040DS-PB/m-p/664496#M4013</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-01-11T02:08:28Z</dc:date>
    </item>
  </channel>
</rss>

