Skip to main content.
Navigation:
DENX
>
DULG
>
LinuxMMC
Translations:
Edit
|
Attach
|
Raw
|
Ref-By
|
Printable
|
More
DULG
Sections of this site:
DENX Home
|
DULG
|
ELDK-5
|
Know
|
Training
|
U-Boot
|
U-Bootdoc
Topics
DULG Home
BoardSelect
Manual
FAQ
Application Notes
Changes
Index
List of pages in DULG
Search
%SECTION0{name=LinuxMMC}% Using MultiMediaCards in Linux The MultiMediaCard (MMC) is a flash memory card standard. Booting Linux with a MMC card connected to the %BOARD% you should find in the bootlog something like that: <pre> mmc0: new high speed SD card at address 0002 mmcblk0: mmc0:0002 00000 1.90 GiB mmcblk0: p1 </pre> If the mmc card is detected, you should see at least the following device files: <pre> /dev/mmcblk0 </pre> If there are partitions on it, you see the following device files: <pre> /dev/mmcblk0pX X =[1..n] with n=number of partitions </pre> %IF{"HAVE_FDISK" eq "true"}% If you have a new unintialized mmc/sd card, you can create normal partitions and filesystems on it,like you would do on a harddisk drive. %INCLUDE{DULGData_%BOARD%.LinuxMMCFdiskCreatepartition}% you should see now the following device files on the %BOARDNAME%: %INCLUDE{DULGData_%BOARD%.LinuxMMCShowdevicefiles}% print the partition info with fdisk: %INCLUDE{DULGData_%BOARD%.LinuxMMCFdisk}% %ENDIF% mount the partition: %INCLUDE{DULGData_%BOARD%.LinuxMMCMount}% write some files to the MMC: %INCLUDE{DULGData_%BOARD%.LinuxMMCReadWrite}% unmount the partition with: %INCLUDE{DULGData_%BOARD%.LinuxMMCUmount}%