15 mmc/sdhc, Bsp operations – Artesyn COMX-P4080 Installation and Use (August 2014) User Manual
Page 104

BSP Operations
COMX-P4080 COM Express Module Installation and Use (6806800L20C)
104
U-Boot provides "sf" utilities to operate SPI Flash.
Below are usage samples for "sf".
sf probe 0
4096 KiB S25FL032A(P) at 0:0 is now current device
sf erase 0 80000
sf read 1000000 0 10000
sf write 1000000 0 10000
7.15 MMC/SDHC
COMX-P4080 provides a MMC/SDHC interface to the COM-E connector. There is also a
connector for this provided on the carrier. By default, the MMC/SDHC 4-bit mode is selected.
U-Boot provides "mmcinfo" and "mmc" utilities to operate the MMC/SDHC card. "mmcinfo"
must be excuted before other "mmc" commands can be run.
sf probe [bus:]cs [hz] [mode]
-
Initializes flash device on given SPI bus and chip select.
sf read addr offset len
-
Reads ’len’ bytes starting at ’offset’ to memory at ’addr’
sf write addr offset len
-
Writes ’len’ bytes from memory at ’addr’ to flash at
’offset’
sf erase offset len
-
Erases ’len’ bytes from ’offset’
mmcinfo
mmcread <device num> addr blk# cnt
mmc write <device num> addr blk# cnt
mmc rescan <device num>
mmc list
-
Lists available devices