6 Software
User Manual 81/374
/sys/bus/i2c/devices/0-
0054/eeprom
This user space interface represents the EXTERN
8kB EEPROM. The user can handle it by using a
shell script and / or C-Code
/sys/bus/i2c/devices/0-
0054/lock
System file to switch EEPROM between read only
and read/write mode
p1:
< lock > .. sets EEPROM to read only
< kcol > .. sets EEPROM to read / write
p2:
< locked > .. EEPROM is read only
< unlocked > .. EEPROM is readable / writable
Example: Read system parameters from EEPROM
# stw_eep -r variant
Y_TC3G
/sys/bus/i2c/devices/0-
0050/eeprom_sys
This user space interface represents the internal
1kB EEPROM only used by STW.
/sys/bus/i2c/devices/0-
0050/lock_sys
System file to switch eeprom_sys between read
only and read / write mode.
p1:
< lock > .. sets EEPROM to read only
< kcol > .. sets EEPROM to read / write
p2:
< locked > .. EEPROM is read only
< unlocked > .. EEPROM is readable / writable
Don't unlock the eeprom_sys STW eeprom area. Overwriting this area will cause an unexpected
system behavior!