15 i2c, Table 7-8, U-boot i2c utilities – Artesyn COMX-P40x0 ENP2 Installation and Use (August 2014) User Manual
Page 100

BSP
COMX-P40x0 ENP2 Installation and Use (6806800R95B)
100
7.15 I2C
There are a total of four I2C buses in the COMX-P40x0, labeled as I2C<1/2/3/4>. For more
information, see
.
U-Boot provides the following utilities for I2C bus and devices.
nand write
Addr off|partition size
Read/write ’size’ bytes starting at offset ’off’ to/from memory
address ’addr’, skipping bad blocks.
nand erase [clean] [off size]
Erase ’size’ bytes from offset ’off’ (will erase on the entire device if it
is not specified)
nand bad
Shows bad blocks
nand dump[.oob] off
Dumps page
nand scrub
Cleans NAND by erasing bad blocks. Considered unsafe.
nand markbad off [...]
Marks bad block or blocks at offset. Considered unsafe.
nand biterr off
Makes a bit error at offset. Considered unsafe.
Table 7-7 NAND Flash Command Usage (continued)
Command
Description
Table 7-8 U-Boot I2C Utilities
Utility
Description
i2c crc32 chip address[.0, .1, .2] count
Compute CRC32 checksum
i2c dev [dev]
Shows or sets current I2C bus
i2c loop chip address[.0, .1, .2] [# of objects]
[# of delay(us)]
Loops reading of device
i2c md chip address[.0, .1, .2] [# of objects]
Reads from I2C device
i2c mm chip address[.0, .1, .2]
Writes to I2C device (auto-incrementing)
i2c mw chip address[.0, .1, .2] value [count]
Writes to I2C device (fill)
i2c nm chip address[.0, .1, .2]
Writes to I2C device (constant address)
i2c probe
Shows devices on the I2C bus