Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

SD over spi?? Help

Altera_Forum
Honored Contributor II
1,290 Views

I am trying to run an sd card using the spi mode I followed the instructions in the wiki during boot here is what i get 

 

 

... 

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 

... 

 

but when I try to moun it 

 

/> mount -t vfat /dev/mmcblk0p1 /mnt 

mount: mounting /dev/mmcblk0p1 on /mnt failed: No such device or address 

 

anything I am missing threre is no other items displayed during boot. 

 

the card is installed. 

 

hmmmm
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
366 Views

We use the following configuration in menuconfig: 

 

Device Drivers ---> SPI support ---> Altera SPI Controller Device Drivers ---> MMC/SD card support ---> MMC/SD over SPI File systems ---> Ext3 journalling file system support File systems ---> DOS/FAT/NT Filesystems ---> VFAT (Windows-95) fs support File systems ---> -*- Native language support ---> Codepage 437 (United States, Canada) File systems ---> -*- Native language support ---> NLS ISO 8859-1 (Latin 1; Western European Languages) 

 

And this is what we see on initialization: 

 

... 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 ... mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new SD card on SPI mmcblk0: mmc0:0000 SA01G 972 MiB mmcblk0: p1 ... 

 

And then inside the etc/rc script the following command: 

 

mount -t vfat /dev/mmcblk0p1 /sd 

 

Are you doing anything different from the above? 

 

Cheers, 

 

Ricardo.
0 Kudos
Reply