Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

SD card in u-boot

Altera_Forum
Honored Contributor II
770 Views

Hello everyone, 

 

I' have a problem about sd card(SPI mode) on u-boot (ver. u-boot-2011.12). 

 

when I use the 'fatls' command, I could not get the correct/expected result. 

 

EX: 

========================================== 

(expect) 

==> fatls mmc_spi 0 

1694152 vmlinux_bin 

877709 zimage 

859412 zimage_bin 

859476 uimage_bin 

4 file(s), 0 dir(s) 

 

(Real world...:eek:) 

==> fatls mmc_spi 0 

1694152 vmlinux_bin 

877709 zimage 

-1 zimage_bin 

 

3 file(s), 4 dir(s) 

========================================== 

 

But the SD device works well on uClinux (I try the 'ls', 'cat' on uClinux) 

 

Any ideas? 

 

 

I tried this on Altera DE-0 

SPI core configs in SOPC are http://imageshack.us/photo/my-images/442/spicore.jpg 

(My system clk is 50MHz) 

 

The system info: 

http://imageshack.us/photo/my-images/198/de0basesystem.jpg 

 

I create my_fpag.h by "sopc-create-config-files (http://sopc.et.ntust.edu.tw/?p=toolchain-build.git;a=blob_plain;f=tools/sopc-create-config-files;hb=...)" script. 

The attachments are the detail setting files
0 Kudos
0 Replies
Reply