- I have a X86 CPU with custom I2C Master Harware. My Linux is Ubuntu 14.04, kernel 3.13.
- I wrote an I2c driver for my custom I2C Master Hardware.
- When I load my driver the device /sys/bus/i2c/devices/i2c-11 is created.
- Attached to my I2C bus there is a I2C eeprom memory.
- When I load the linux eeprom driver, the sys file /sys/bus/i2c/devices/i2c-11/11-0050/eeprom is created automatically by eeprom driver.
- PROBLEM: this file /sys/bus/i2c/devices/i2c-11/11-0050/eeprom is READ ONLY.
- Read from eeprom file WORKS OK, e.g : $ sudo cat /sys/bus/i2c/devices/i2c-11/11-0050/eeprom | hexdump -C.
- But I can't write to /sys/bus/i2c/devices/i2c-11/11-0050/eeprom because is read only. Why is this file created READ ONLY?.
Thank you.
Peio
P.D: I tried chmod the eeprom file to rwx, but in anycase I receive an error trying to write to the eeprom: "bash: eeprom: Permission denied".