On the SPI-MMC card for CS_DIP_SW turn on option 5:
1 = OFF 2 = OFF 3 = OFF 4 = OFF 5 = ON 6 = OFF 7 = OFF 8 = OFF
For more details on hardware setting see this link:http://www.vpx.nu/dokuwiki/doku.php?id=hardware_bf53x
Enable the MMC/SD SPI addon card driver in the kernel build system:
Linux Kernel v220.127.116.11 Configuration
Device Drivers ---> MMC/SD Card support ---> <*> MMC/SD for SPI support (EXPERIMENTAL) (4) SPI chip select signal for MMC/SD card [*] MMC/SD Card detect support (5) Card detect PFx number < > MMC support File systems ---> DOS/FAT/NT Filesystems ---> <*> MSDOS fs support <*> VFAT (Windows-95) fs support (437) Default codepage for FAT (iso8859-1) Default iocharset for FAT Native Language Support ---> --- Base native language support (iso8859-1) Default NLS Option <*> Codepage 437 (United States, Canada)
After you done with this step don't forget to do make command and copy your new image file to tftpboot folder similar as we did in AD1836A card set up. Important: when you enable the MMC driver, you also need to disable all sound card support driver
Device Drivers ---> Sound ---> < > Sound card support
During make menuconfig, add applications which may be used.
Filesystem Applications ---> [*] fdisk [*] e2fsck [*] mke2fs [*] mkdosfs
To find File system Applications option in configuration, go to uclinux-dist directory do:
Enable [*] Customize Vendor/User Settings under Kernel/Library/Defaults Selection —> option then save and exit. there should be a new configuration window shows up, find the Filesystem Applications—→
Core Applications ---> Library Configuration ---> Flash Tools ---> Filesystem Applications ---> Network Applications --->
Configure the kernel, application and switch according to the reqirements above. Make and download the image to stamp board.
Check the MMC/SD driver by the following command, it will show the controller infomation. If a card is inserted, it will also show the card information.
Now you can either format entire MMC or create partitions using fdisk the same way you would on a hard drive.
mkdosfs /dev/mmc (will destroy any partition tables) mount -t msdos -o sync /dev/mmc /mnt Note, skip ‘-o sync’ if you want performance over data security). For VFAT with long filename support: mkfs.vfat /dev/mmc mount -t vfat -o sync /dev/mmc /mnt
Try partitioning using the following command:
For more tests and examples of MMC card see link: http://docs.blackfin.uclinux.org/doku.php?id=mmc_driver&s=mmc%20card
For details about how to load a compressed kernel image into flash please see this link:http://docs.blackfin.uclinux.org/doku.php?id=loading_a_compressed_kernel_image