Specifications
root@generic-armv5te:/tmp/duts# mount -t vfat /dev/mmcblk0p2 /tmp/duts/mmc
root@generic-armv5te:/tmp/duts# mount
rootfs on / type rootfs (rw)
192.168.1.1:/opt/eldk-5.2.1/armv5te/rootfs-lsb-sdk/ on / type nfs (rw,relatime,vers=3,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.1.1,mountvers=3,mountproto=tcp,local_lock=all,addr=192.168.1.1)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,mode=755)
/dev/mmcblk0p2 on /media/mmcblk0p2 type vfat (rw,sync,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/mmcblk0p3 on /media/mmcblk0p3 type ext4 (rw,sync,relatime,data=ordered)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /var/volatile type tmpfs (rw,relatime)
tmpfs on /media/ram type tmpfs (rw,relatime)
/dev/mmcblk0p2 on /var/volatile/tmp/duts/mmc type vfat (rw,sync,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
root@generic-armv5te:/tmp/duts# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 330279532 155153328 158348988 50% /
192.168.1.1:/opt/eldk-5.2.1/armv5te/rootfs-lsb-sdk/ 330279532 155153328 158348988 50% /
none 127104 140 126964 1% /dev
/dev/mmcblk0p2 30642 12666 17976 42% /media/mmcblk0p2
/dev/mmcblk0p3 1781936 1187500 503916 71% /media/mmcblk0p3
tmpfs 127104 168 126936 1% /var/volatile
tmpfs 127104 0 127104 0% /media/ram
/dev/mmcblk0p2 30642 12666 17976 42% /var/volatile/tmp/duts/mmc
root@generic-armv5te:/tmp/duts# ls -al mmc
total 12682
drwxr-xr-x 2 root root 16384 Jan 1 1970 .
drwxr-xr-x 3 root root 60 Oct 2 16:59 ..
-rwxr-xr-x 1 root root 29 Oct 2 15:44 date_of_creation
-rwxr-xr-x 1 root root 29 Sep 5 04:12 date_of_modification
-rwxr-xr-x 1 root root 5410 May 22 11:32 env.txt
-rwxr-xr-x 1 root root 3754 Apr 17 10:13 env.txt.OLD
-rwxr-xr-x 1 root root 1152054 Feb 7 2012 img.bmp
-rwxr-xr-x 1 root root 1152054 Feb 7 2012 img1.bmp
-rwxr-xr-x 1 root root 1024 Oct 2 15:44 random.hex
-rwxr-xr-x 1 root root 233738 Feb 8 2012 slide-1.bmp
-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-2.bmp
-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-3.bmp
-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-4.bmp
-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-5.bmp
-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-6.bmp
-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-7.bmp
-rwxr-xr-x 1 root root 1152054 Feb 8 2012 slide-8.bmp
-rwxr-xr-x 1 root root 2340744 Apr 18 07:07 uImage
root@generic-armv5te:/tmp/duts#
write some files to the MMC:
root@generic-armv5te:/tmp/duts# date > /tmp/duts/mmc/date_of_creation
root@generic-armv5te:/tmp/duts# dd if=/dev/urandom of=/tmp/duts/random.hex bs=10 24 count=1
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.00196875 s, 520 kB/s
root@generic-armv5te:/tmp/duts# cp random.hex mmc/
root@generic-armv5te:/tmp/duts# cmp random.hex mmc/random.hex
root@generic-armv5te:/tmp/duts# ls -al mmc/
total 12682
drwxr-xr-x 2 root root 16384 Jan 1 1970 .
drwxr-xr-x 3 root root 80 Oct 2 16:59 ..
-rwxr-xr-x 1 root root 29 Oct 2 16:59 date_of_creation
-rwxr-xr-x 1 root root 29 Sep 5 04:12 date_of_modification
-rwxr-xr-x 1 root root 5410 May 22 11:32 env.txt
-rwxr-xr-x 1 root root 3754 Apr 17 10:13 env.txt.OLD
-rwxr-xr-x 1 root root 1152054 Feb 7 2012 img.bmp
-rwxr-xr-x 1 root root 1152054 Feb 7 2012 img1.bmp
-rwxr-xr-x 1 root root 1024 Oct 2 16:59 random.hex
-rwxr-xr-x 1 root root 233738 Feb 8 2012 slide-1.bmp
9.3. Using MultiMediaCards in Linux" 109