Specifications
=> fdt list /chosen
chosen {
};
=>
Note: fdt boardsetup performs board-specific blob updates, most commonly setting clock frequencies,
etc. Discovering its operation is left as an excercise for the reader.
5.9.8. Special Commands
5.9.8.1. i2c - I2C sub-system
=> help i2c
i2c - I2C sub-system
Usage:
i2c crc32 chip address[.0, .1, .2] count - compute CRC32 checksum
i2c loop chip address[.0, .1, .2] [# of objects] - looping read of device
i2c md chip address[.0, .1, .2] [# of objects] - read from I2C device
i2c mm chip address[.0, .1, .2] - write to I2C device (auto-incrementing)
i2c mw chip address[.0, .1, .2] value [count] - write to I2C device (fill)
i2c nm chip address[.0, .1, .2] - write to I2C device (constant address)
i2c probe - show devices on the I2C bus
i2c read chip address[.0, .1, .2] length memaddress - read to memory
i2c reset - re-init the I2C Controller
i2c speed [speed] - show or set I2C bus speed
=>
5.9.9. Storage devices
This chapter introduces commands to work with storage devices, i.e. ATA, CF, SATA, SCSI, USB, NAND,
etc. connected to the board.
5.9.9.1. MMC devices
=> help mmc
mmc - MMC sub system
Usage:
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
=>
The mmc dev command displays the current device
=> mmc dev
mmc0 is current device
=>
The mmc list command displays the available mmc devices
=> mmc list
5.9.9.1. MMC devices 72