2008-10-29 03:02:28     SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-10-29 03:02:28     SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Bill Xie (CHINA)

Message: 64305   

 

        Hello, 1G and 2 G TF card can work fine in uclinux, but using 4G and 8G can't detect by program.

 

Does this way have max  card capability  limit ?  Thank you very much for you reading my question.

QuoteReplyEditDelete

 

 

2008-10-29 06:08:40     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Javier Herrero (SPAIN)

Message: 64331   

 

4Gb and 8Gb cards are High Capacity types, with a protocol slightly different to the 2Gb and lower capacity cards. Probably high capacity types are not supported by the driver.

 

Regards,

 

Javier

 

 

QuoteReplyEditDelete

 

 

2008-10-29 21:52:16     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Yi Li (CHINA)

Message: 64388   

 

The mmc_spi driver in mainline kernel (drivers/mmc/host/mmc_spi.c) supports SDHC, but it does not work well on blackfin yet. I think you may have a try. If using SVN trunk, you may build the driver and try it.

 

-Yi

QuoteReplyEditDelete

 

 

2008-10-29 22:12:44     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Bill Xie (CHINA)

Message: 64389   

 

Hi,Javier

 

   Thank you for your response,Why this driver   cann't suport high High Capacity types?

 

 

 

Bill

QuoteReplyEditDelete

 

 

2008-10-29 22:25:58     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Bill Xie (CHINA)

Message: 64390   

 

Hi,Yi

 

  Thank you,How to  use svn  checkout  this SPI MMC/SD drivers?

 

  svn checkout svn://blackfin.uclinux.org/uclinux-dist/trunk uclinux-dist

 

  Does use above way to get  svn trunk ?

 

Bill

QuoteReplyEditDelete

 

 

2008-10-30 03:48:37     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Yi Li (CHINA)

Message: 64396   

 

Yes. For detailed info on how to check out from SVN, please refer to: https://blackfin.uclinux.org/gf/project/uclinux-dist/scmsvn

 

-Yi

 

 

QuoteReplyEditDelete

 

 

2008-10-30 04:49:26     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Javier Herrero (SPAIN)

Message: 64398   

 

Hello,

 

I'm not sure if it supports HCSD or not, because somewhere I saw that has been tested with 4Gb cards, but I tested it with a 8Gb card and did not recognize it, but it did recognize a 2Gb card, and since I did not need more capacity, I supposed that HCSD support were not working (at least not for the 8Gb Transcend card...).

 

On the other side, yes, the driver has some problems, as Yi has pointed. I have it working along with a M25P64 and a Trascend 2Gb card in the same SPI bus, using the SPI framework, but with some (a bit ugly) hardware tricks, and although seems to work OK (copying files JFFS2 in M25P64 from/to the SD card), I've not yet tested it completely. The main hardware trick was to gate the clock signal to the SD card avoid reaching the SD when its CS is not active - it seems that if CS goes inactive during a long transaction, the card continues intrepreting CLK pulses that really are intended for other device in the SPI bus. But anyway, I'm not an expert with SD cards, I've only been messing a bit around

 

Best regards,

 

Javier

 

 

QuoteReplyEditDelete

 

 

2008-10-30 21:37:05     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Bill Xie (CHINA)

Message: 64472   

 

Hi,

 

    Thank you !

 

 

 

Bill

QuoteReplyEditDelete

 

 

2009-06-10 09:14:04     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

david wang (CHINA)

Message: 75459   

 

hello,

 

  Does the newest kernel support HCSD yet? Have anybody tried this? Thanks!

QuoteReplyEditDelete

 

 

2009-06-11 00:27:38     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Yi Li (CHINA)

Message: 75485   

 

David,

 

Yes. SDHC card is supported. We have tested with several Transend and Sandisk card.

 

-Yi

QuoteReplyEditDelete

 

 

2009-06-11 01:41:20     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

david wang (CHINA)

Message: 75486   

 

Hi, Yi

 

  Thanks! And another question, which kernel could support hcsd? Does the 2008R1.5-RC3 release work, or should I svn update from the trunk?

QuoteReplyEditDelete

 

 

2009-06-11 01:49:49     Re: SPI MMC/SD driver cann't detect 4G or 8G TF card in bf531

Yi Li (CHINA)

Message: 75487   

 

David,

 

The SDHC support is actually in the linux kernel's mmc stack. You will have to use svn trunk or the 2009R1 branch.

 

-Yi

Attachments

    Outcomes