MmcSd

SD/SDIO/MMC Host Driver

  • Please visit http://www.fps-tech.net/sd_host.html for detailed information on the FPS-Tech SD/SDIO/MMC Host Driver.
  • uClinux driver is available in test-nios2 branch of the sopc git repository
  • Example Quartus project and Evaluation IP is available on link above
  • If you are interested in using the core, please request a free license for the 1-bit DAT version (include your NIC ID).


There are two example designs for MMC/SD on NEEK. One with FPS-Tech SD Host IP, and another use Altera SPI. The FPS-Tech IP achieves higher performance (due to DMA), and uses SDIO mode. While the Altera SPI is compatible with application chooser using PIO and SPI mode.

Please follow RootDevice if you want to use MMC/SD as root filesystem.

Please note, there are two formatting method for a SD media (or other flash media),

1. without partition table, use entire capacity. this is the default when you formatting a black media on Windows.
You will need to use "mkdosfs -I /dev/sda" (substitute the device) . but not /dev/sda1.
On nios2, the SD device is /dev/mmcblk0.

2. with partition table, this may have better compatibility across Linux and digital camera.
You will need to use "fdisk /dev/sda" to create FAT16 partition, type 06.
Then "mkdosfs /dev/sda1"
On nios2, the SD device is /dev/mmcblk0p1.



FPS-Tech SD Host


1. neek_ocm_sdio.zip

select the driver for nios_mmc, and select the filesystem you want to support, eg, vfat and ext3.
The sdio_host component should be named as "sdio", otherwise you have to modify linux-2.6/arch/nios2/kernel/setup.c .


Device Drivers -->  

[*] MMC/SD card support  ---> 
[*]   MMC block device driver                
[ ]     Use bounce buffer for simple hosts   
[ ]   SDIO UART/GPS class support            
[ ]   MMC host test driver                   
      *** MMC/SD Host Controller Drivers ***                      
[*]   NIOS SD/SDIO/MMC Host  
  • Note: Do not enabled bounce buffer for the FPS-Tech SD Host as it will result in driver compatibility issues.
File systems  ---> 

[*] Ext3 journalling file system support 

DOS/FAT/NT Filesystems  --->
 [*] VFAT (Windows-95) fs support
(437) Default codepage for FAT
(iso8859-1) Default iocharset for FAT

-*- Native language support  ---> 
[*]   Codepage 437 (United States, Canada)
[*]   NLS ISO 8859-1  (Latin 1; Western European Languages)



NIOS_MMC: FPS-Tech SD/SDIO/MMC Host Core, version 1.0
NIOS_MMC: F_MAX: 15000000 Hz, F_MIN: 915 Hz
NIOS_MMC: Host built with 1-bit DAT driver
NIOS_MMC: Using block-prefetching

 mmc0: new SD card at address 0002
blk_queue_max_sectors: set to minimum 8
blk_queue_max_phys_segments: set to minimum 1
blk_queue_max_hw_segments: set to minimum 1
blk_queue_max_segment_size: set to minimum 4096
mmcblk0: mmc0:0002 TWTTI 124672KiB 
 mmcblk0: p1 p2

mount -t vfat /dev/mmcblk0p1 /mnt  # for partition 1
or
mount -t vfat /dev/mmcblk0 /mnt  # for no partition table on card


Altera SPI Core


2. neek_ocm_spi.zip

select the driver for mmc_spi, and select the filesystem you want to support as above.
The Altera spi component should be named as "mmc_spi", otherwise you have to modify linux-2.6/arch/nios2/kernel/config.c .

Device Drivers -->  

[*] SPI support  --->  
[*]   Altera SPI Controller

[*] MMC/SD card support  ---> 
[*]   MMC block device driver                
[*]     Use bounce buffer for simple hosts   
[ ]   SDIO UART/GPS class support            
[ ]   MMC host test driver                   
      *** MMC/SD Host Controller Drivers ***  
[*]   MMC/SD over SPI                        


 
mmc_spi spi2.0: ASSUMING SPI bus stays unshared!
mmc_spi spi2.0: ASSUMING 3.2-3.4 V slot power
mmc_spi spi2.0: SD/MMC host mmc0, no DMA, no WP, no poweroff
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
Freeing unused kernel memory: 676k freed (0x1f6000 - 0x29e000)
mmc0: new SD card on SPI
mmcblk0: mmc0:0000 TWTTI 124672KiB 
 mmcblk0: p1 p2





mmc spi connection on DE2


     .MISO_to_the_mmc_spi                  (SD_DAT),
     .MOSI_from_the_mmc_spi                (SD_CMD),
     .SCLK_from_the_mmc_spi                (SD_CLK),
     .SS_n_from_the_mmc_spi                (SD_DAT3),

   

Tag page

Files 4

FileSizeDateAttached by 
 neek_ocm_sdio.zip
No description
837.27 kB00:56, 8 Dec 2008AdminActions
 neek_ocm_spi.config
kernel config to test ds1338, i2c-gpio
24.13 kB15:24, 22 Apr 2009hippoActions
neek_ocm_spi.zip
openip/gpio instead of Altera PIO
1081.41 kB14:52, 23 Apr 2009hippoActions
 sdiotest.zip
cache size variants
1944.31 kB07:10, 5 May 2009hippoActions
Viewing 1 of 1 comments: view all
Nice story about this.
Great Nice Pictures
causes back pain knee high shoes lizlange maternity fishing boats sale flu incubation period remedies sore throat cost breast implants muscle weight gain surgery breast reduction girls party ideas women laptop bags car brake parts continuing nursing education cost breast augmentation protein whey powder baby slings carriers bed bugs pictures bedding duvet covers phone pay as you go outdoor swing sets discount dinnerware sets coffee espresso machines salton yogurt maker hair color pictures pictures of haircuts asvab practice test herpes photos easy cooking recipes toy dog breeds herpes simplex 1 personalized dog tags stress fracture foot occupational therapy schools frontline plus cats fleas on humans physical therapy salary scabies pictures pictures of shingles what is blood pressure ibuprofen side effects pictures of ringworm gendongan bayi kain cukin ring sling pouch sling perlengkapan bayi selendang bayi nursing cover selendang baby perlengkapan bayi baru lahir bayi bayi lucu foto bayi parish vintage ebooks download tv series download manga free download make money online health information cell phone review disorders anxiety psat practice test blood preasure smart water filter filter pur water weight loss effects blood pressure side effects socks over knee socks dress Hot News Today Jual Beli Make Money Celebrity Gossip Kesehatan Alternatif Gosip Selebritis celebrity photos celebrity news hot celebrities celebrity blog kesehatan info kesehatan kesehatan kerja pelayanan kesehatan indonesia artis foto artis gambar artis selebriti iklan iklan gratis jual online handphone daily news breaking news local news online news food dehydrator tray massage chair ijoy homedics massage shiatsu evening gown dress evening wedding dress dry face skin gold toe sock window coverings blinds blinds for windows lip gloss cosmetics folding table chairs women high heels stockings high heels treatment of pain chlorine generation makeup lighted mirror pain management specialist lawn pest control garden pest control joint pain causes
Posted 16:09, 20 Jul 2010
Viewing 1 of 1 comments: view all
You must login to post a comment.
SourceForge.net