<?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: Access OCOTP registers in IMX8MQ in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883931#M133952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question&amp;nbsp; is I am able to access all the other physical registers using "devmem"&amp;nbsp; utility without any issue.&lt;/P&gt;&lt;P&gt;But we are not able to access OCOTP controller registers using same utility.&lt;/P&gt;&lt;P&gt;We are also able to access same registers at u-boot level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: why we are not able to access OCOTP controller registers at later stage (after kernel&amp;nbsp; booting)? Is there any driver or configuration which doesn't allow us to access OCOTP controller registers after booting.&amp;nbsp; Because at earlier stage driver (drivers/soc/imx/soc-imx8.c) is accessing OCOTP controller registers successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Feb 2019 06:06:33 GMT</pubDate>
    <dc:creator>jignesh1</dc:creator>
    <dc:date>2019-02-07T06:06:33Z</dc:date>
    <item>
      <title>Access OCOTP registers in IMX8MQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883929#M133950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are going to make product based on IMX8MQ (MIMX8MQ6DVAJZAA) processor.&amp;nbsp; Currently we are doing POC on IMX8MQ processor EVK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;We need unique ID of the board for our use case. As per Technical Reference&amp;nbsp; Manual we have two registers (0x30350410 and 0x30350420) in OCOTP controller for this purpose.&lt;/LI&gt;&lt;LI&gt;The issue is that we are not able to access it from user space. (using devmem utility).&lt;/LI&gt;&lt;LI&gt;Whenever we try to access these registers board got hang for few seconds and reboot.&lt;/LI&gt;&lt;LI&gt;This issue is same if we try to access any registers of OCOTP controller. (base : 0x30350000)&lt;/LI&gt;&lt;LI&gt;Is there any specific method to access these registers? Are we missing anything?&lt;/LI&gt;&lt;LI&gt;We also find the in kernel there is already driver exist for this purpose (drivers/soc/imx/soc-imx8.c) which provides unique ID via sysfs interface as (&amp;nbsp;cat /sys/devices/soc0/soc_uid). We see that this driver reads these registers at early stage of kernel booting. &lt;/LI&gt;&lt;LI&gt;We want to access same unique ID in our custom driver to access soc_uid via proc entry due to code modularity with older products(based on IMX6Q). But it is not accessible via custom driver. It shows same behavior as devmem.&lt;/LI&gt;&lt;LI&gt;In IMX6Q we didn't face such issue while accessing OCOTP registers via devmem or custom driver.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please provide your suggestion if we are missing anything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2019 05:57:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883929#M133950</guid>
      <dc:creator>jignesh1</dc:creator>
      <dc:date>2019-02-06T05:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Access OCOTP registers in IMX8MQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883930#M133951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for registers access one can try to use memtool:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool?h=imx_4.14.78_1.0.0_ga" title="https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool?h=imx_4.14.78_1.0.0_ga"&gt;memtool\test - imx-test - i.MX Driver Test Application Software&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 06 Feb 2019 23:17:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883930#M133951</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-02-06T23:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Access OCOTP registers in IMX8MQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883931#M133952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question&amp;nbsp; is I am able to access all the other physical registers using "devmem"&amp;nbsp; utility without any issue.&lt;/P&gt;&lt;P&gt;But we are not able to access OCOTP controller registers using same utility.&lt;/P&gt;&lt;P&gt;We are also able to access same registers at u-boot level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Question: why we are not able to access OCOTP controller registers at later stage (after kernel&amp;nbsp; booting)? Is there any driver or configuration which doesn't allow us to access OCOTP controller registers after booting.&amp;nbsp; Because at earlier stage driver (drivers/soc/imx/soc-imx8.c) is accessing OCOTP controller registers successfully. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jignesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Feb 2019 06:06:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883931#M133952</guid>
      <dc:creator>jignesh1</dc:creator>
      <dc:date>2019-02-07T06:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Access OCOTP registers in IMX8MQ</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883932#M133953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jignesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;devmem is not supported by nxp, one can post issues related to devmem on&lt;/P&gt;&lt;P&gt;kernel mail list or check linux forums, like&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/12040303/how-to-access-physical-addresses-from-user-space-in-linux" title="https://stackoverflow.com/questions/12040303/how-to-access-physical-addresses-from-user-space-in-linux"&gt;memory - How to access physical addresses from user space in Linux? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 01:37:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Access-OCOTP-registers-in-IMX8MQ/m-p/883932#M133953</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-02-08T01:37:02Z</dc:date>
    </item>
  </channel>
</rss>

