====== EEPROM write and read ======
In this section two different commands will be used: "echo" for writing and "hexdump" for reading. The device path of the EEPROM is different on each Starterkit-modell.
To write to the EEPROM use
echo "[write_something_no_brackets_needed]" > [Device_path]
To check if the process was successful read with
hexdump -C -n 256 [Device_path]
=== EEPROM path on STKa6x BSP rev.106 ===
/sys/devices/soc0/soc/2100000.aips-bus/21a0000.i2c/i2c-0/0-0050/eeprom
=== EEPROM path on STKa335x BSP rev.102 ===
/sys/devices/ocp.2/44e0b000.i2c//i2c-0/0-0050/eeprom
=== EEPROM path on STKa53 BSP rev.109 ===
/sys/devices/soc.3/60000000.aips/63fc4000.i2c/i2c-1/1-0050/eeprom
=== EEPROM path on STKa28 BSP rev.109 ===
/sys/devices/soc0/80000000.apb/80040000.apbx/8005a000.i2c/i2c-1/1-0050/eeprom
==== Example ====
On STKa335x, a successful write-read operation should look like this:
root@TQMa335x:~ echo "eepromtest" > /sys/devices/ocp.2/44e0b000.i2c//i2c-0/0-005
0/eeprom
root@TQMa335x:~ hexdump -C -n 256 /sys/devices/ocp.2/44e0b000.i2c//i2c-0/0-0050/
eeprom
00000000 65 65 70 72 6f 6d 74 65 73 74 0a ff ff ff ff ff |eepromtest......|
00000010 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
00000020 d0 ff 50 22 e2 aa ff ff ff ff ff ff ff ff ff ff |..P"............|
00000030 33 33 39 38 39 31 32 39 ff ff ff ff ff ff ff ff |33989129........|
00000040 54 51 4d 41 33 33 35 34 2d 41 41 2e 30 32 30 31 |TQMA3354-AA.0201|
00000050 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
*
00000100