Forum Discussion

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

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=head)" script.

The attachments are the detail setting files
No RepliesBe the first to reply