6 Software
User Manual 80/374
Low Level Hardware Access
This device includes the entry into the NAND flash.
The 1 GB NAND flash is mounted here.
Example: Read memory information
Read memory information of /dev/mtd6 using /usr/sbin/mtdinfo.
# mtdinfo /dev/mtd6
mtd6
Name: nand-flash
Type: nand
Eraseblock size: 131072 bytes, 128.0 KiB
Amount of eraseblocks: 8192 (1073741824 bytes, 1024.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size: 512 bytes
OOB size: 64 bytes
Character device major/minor: 90:12
Bad blocks are allowed: true
Device is writable: true
6.5.3 EEPROM
Low Level Hardware Access
/sys/bus/i2c/devices/0-
0050/eeprom
This user space interface represents the EXTERN
7kB EEPROM. The user can handle it by using a
shell script and / or C-Code.
/sys/bus/i2c/devices/0-
0050/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