AnsweredAssumed Answered

iMX6 - EEPROM(AT2432) Accessing From user space

Question asked by Dhanyakumar Hosamane on Jun 15, 2016
Latest reply on Jun 15, 2016 by Biyong Sun


Hello

I am using iMX 6 quad board from Phytec.

 

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?

 

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.

 

On bootup I see EEPROM is successfully detected.

[    2.036834] at24 2-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write

 

However, I don’t see EEPROM device is listed under /dev OR /sys/class, but I can see eeprom listed under sys/bus/i2c/devices/2-0050/eeprom

 

 

I tried using eeprog utility but it fails (Error at line 256: unable to open eeprom device file)

 

Regards

Dhanyakumar

Outcomes