Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

mouting SD card on uClinux

I read the post about MMC/SD on altera wiki and followed this instruction but get this error

I used hardware of DE2_NIOS_HOST_MOUSE_VGA (DE2_Systemv1.6 CD), removed the components of SD (SD_DAT, SD_CLK,SD_CMD) in SOPC builder, then i deleted these lines:

// All inout port turn to tri-state

assign SD_DAT = 1'bz;

// Set SD Card to SD Mode

//assign SD_DAT3 = 1'b1;

.out_port_from_the_SD_CLK(SD_CLK),

.bidir_port_to_and_from_the_SD_CMD(SD_CMD),

.bidir_port_to_and_from_the_SD_DAT(SD_DAT),

*insert 4 lines code from wiki

.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),

then generate and compile this projects

after i used file system_0.ptf to make kernel and set config

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

but when i boot with the SD card 1GB FAT, i see the messages

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)

but i can't see messages deteced MMC/SD or other messages

mmc0: new SD card on SPI

mmcblk0: mmc0:0000 TWTTI 124672KiB

plese help me

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Please help me, i searched these post about this problem on forum but no resulst