17 mmc/sdhc – Artesyn COMX-P40x0 ENP2 Installation and Use (January 2015) User Manual
Page 116

BSP
COMX-P40x0 ENP2 Installation and Use (6806800R95C)
116
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.17 MMC/SDHC
The COMX-P40x0 ENP2 module provides a MMC/SDHC interface to the COM Express
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 executed 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