<?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 iMX6 - EEPROM(AT2432) Accessing From user space in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521247#M84380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello&lt;/P&gt;&lt;P&gt;I am using iMX 6 quad board from Phytec. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is regarding accessing EEPROM from user space either by using console / programming in other words How can I read from / write into EEPROM memory from user space?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;AT24c32 EEPROM is connected to my iMX6 processor via I2C-2 bus. Device tree and make menu configuration are done correctly to enable EEPROM driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On bootup I see EEPROM is successfully detected.&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.036834] at24 2-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don’t see EEPROM device is listed under &lt;STRONG&gt;/dev&lt;/STRONG&gt; OR &lt;STRONG&gt;/sys/class&lt;/STRONG&gt;, but I can see eeprom listed under &lt;STRONG&gt;sys/bus/i2c/devices/2-0050/eeprom&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using eeprog utility but it fails (&lt;STRONG&gt;Error at line 256: unable to open eeprom device file&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dhanyakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 09:26:39 GMT</pubDate>
    <dc:creator>dhanyahc</dc:creator>
    <dc:date>2016-06-15T09:26:39Z</dc:date>
    <item>
      <title>iMX6 - EEPROM(AT2432) Accessing From user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521247#M84380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello&lt;/P&gt;&lt;P&gt;I am using iMX 6 quad board from Phytec. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is regarding accessing EEPROM from user space either by using console / programming in other words How can I read from / write into EEPROM memory from user space?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;AT24c32 EEPROM is connected to my iMX6 processor via I2C-2 bus. Device tree and make menu configuration are done correctly to enable EEPROM driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On bootup I see EEPROM is successfully detected.&lt;/P&gt;&lt;P&gt;[&amp;nbsp;&amp;nbsp;&amp;nbsp; 2.036834] at24 2-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I don’t see EEPROM device is listed under &lt;STRONG&gt;/dev&lt;/STRONG&gt; OR &lt;STRONG&gt;/sys/class&lt;/STRONG&gt;, but I can see eeprom listed under &lt;STRONG&gt;sys/bus/i2c/devices/2-0050/eeprom&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using eeprog utility but it fails (&lt;STRONG&gt;Error at line 256: unable to open eeprom device file&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dhanyakumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 09:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521247#M84380</guid>
      <dc:creator>dhanyahc</dc:creator>
      <dc:date>2016-06-15T09:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 - EEPROM(AT2432) Accessing From user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521248#M84381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dhanyakumar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eeprom integration one can look at&lt;/P&gt;&lt;P&gt;linux/Documentation/devicetree/bindings/eeprom.txt&lt;/P&gt;&lt;P&gt;24c02 eeprom example:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fgit.freescale.com%2Fgit%2Fcgit.cgi%2Fimx%2Flinux-2.6-imx.git%2Ftree%2Farch%2Farm%2Fboot%2Fdts%2Fimx6qdl-rex.dtsi%3Fh%3Dimx_4.1.15_1.0.0_ga" rel="nofollow" target="_blank"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/tree/arch/arm/boot/dts/imx6qdl-rex.dtsi?h=imx_4.1.15_1.0.0_ga&lt;/A&gt;&lt;/P&gt;&lt;P&gt;usage&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.imx6rex.com%2Fopen-rex%2Fsoftware%2Fhow-to-use-access-openrex-peripherals%2F%23eeprom" rel="nofollow" target="_blank"&gt;http://www.imx6rex.com/open-rex/software/how-to-use-access-openrex-peripherals/#eeprom&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:53:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521248#M84381</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-06-16T02:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 - EEPROM(AT2432) Accessing From user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521249#M84382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks Igor, &lt;/SPAN&gt;Thank you for your time and response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand device tree structure and usage of I2C tools to test EEPROM but my question was how can I access EEPROM using AT24 driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to see EEPROM device at&lt;STRONG&gt;&amp;nbsp; /sys/bus/i2c/devices/2-0050/eeprom&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kernel uses AT24 driver to communicate with EEPROM over I2C. I wanted to know how can I use /invoke AT24 driver to access EEPROM from user space. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 03:51:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521249#M84382</guid>
      <dc:creator>dhanyahc</dc:creator>
      <dc:date>2016-06-16T03:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 - EEPROM(AT2432) Accessing From user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521250#M84383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The at24 driver is also a i2c driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Igor already provided the link, which contains the i2c user space tools/command line usage.&lt;/P&gt;&lt;P&gt;The sys directory operations depend on the attributions populated in the driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the i2c user space tools, such as i2cdetect&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@imx6qdlsolo"&gt;root@imx6qdlsolo&lt;/A&gt;:~# i2cdetect -y&amp;nbsp; -q 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp; 1&amp;nbsp; 2&amp;nbsp; 3&amp;nbsp; 4&amp;nbsp; 5&amp;nbsp; 6&amp;nbsp; 7&amp;nbsp; 8&amp;nbsp; 9&amp;nbsp; a&amp;nbsp; b&amp;nbsp; c&amp;nbsp; d&amp;nbsp; e&amp;nbsp; f&lt;/P&gt;&lt;P&gt;00:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;10: -- -- -- -- -- -- -- -- -- -- UU -- UU -- -- --&lt;/P&gt;&lt;P&gt;20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;40: -- -- -- -- -- -- -- -- -- --&lt;STRONG&gt; 4a&lt;/STRONG&gt; -- -- -- -- --&lt;/P&gt;&lt;P&gt;50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;70: -- -- -- -- -- -- -- --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="mailto:root@imx6qdlsolo"&gt;root@imx6qdlsolo&lt;/A&gt;:~# i2cget&amp;nbsp; -y 0 0x&lt;STRONG&gt;4a&lt;/STRONG&gt; 0x9&amp;nbsp; b&lt;/P&gt;&lt;P&gt;0x03&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 05:34:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-EEPROM-AT2432-Accessing-From-user-space/m-p/521250#M84383</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2016-06-16T05:34:18Z</dc:date>
    </item>
  </channel>
</rss>

