Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Altera_Forum
Honored Contributor I
736 Views

SD card in u-boot

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