2009-04-15 09:32:34     SPI/MMC: won't mount card if posix queues enabled!

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

2009-04-15 09:32:34     SPI/MMC: won't mount card if posix queues enabled!

Tim Shearer (UNITED STATES)

Message: 72691   

 

This is a funny one.  It is completely repeatable, but I can't see how this aspect of the kernel configuration could possible impact the operation of the SD/MMC driver.

 

2009R1 trunk, CM-BF537E, Sandisk 2GB SD card.

 

I got the SD card to work 100% reliably using the configuration described on the wiki, and minor mods to my hardware (100K pull-ups on the chip select and MOSI, rather than 10K).  The driver is built in, not a module.

 

I tested it with a script that constantly rebooted the Blackfin, checked the contents of the disk, and wrote to an NFS file if there was a problem.  Four different boards, 10,000 reboots, not one failure.

 

Then I enabled Posix Message Queues in general setup.  And now it never works.  I've repeatedly distcleaned the project, and rebuilt, and it's the same every time.

 

I'm nervous that changing kernel configurations for software updates will render hardware in the field useless, so if anyone has any suggestions on what could be tipping this over the edge, then do let me know!

 

Many thanks,

 

Tim

 

 

QuoteReplyEditDelete

 

 

2009-04-15 10:16:13     Re: SPI/MMC: won't mount card if posix queues enabled!

Tim Shearer (UNITED STATES)

Message: 72697   

 

Here's a little more information:

 

mmc_spi spi0.2: ASSUMING 3.2-3.4 V slot power                                                                                                                                

mmc_spi spi0.2: SD/MMC host mmc0, no DMA, no WP, no poweroff                                                                                                                 

mmc_spi spi0.2: requested mode not fully supported                                                                                                                           

mmc_spi spi0.2: can't change chip-select polarity                                                                                                                            

mmc0: error -53 whilst initialising SD card

 

Also, if I touch the chip select line with my finger, it works ok.  So I guess I need a cap on there.  Still weird that it works fine with a different kernel config.

 

 

 

 

QuoteReplyEditDelete

 

 

2009-04-15 23:46:19     Re: SPI/MMC: won't mount card if posix queues enabled!

Yi Li (CHINA)

Message: 72716   

 

I have a try on BF537-stamp, with posix message queue turned on. spi-mmc work OK.

 

root:/> version

kernel:    Linux release 2.6.28.9-ADI-2009R1-pre-svn6273, build #80 Thu Apr 16 11:25:06 CST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release svn-7972, build #105 Thu Apr 16 11:24:46 CST 2009

 

-Yi

QuoteReplyEditDelete

 

 

2009-04-16 08:52:22     Re: SPI/MMC: won't mount card if posix queues enabled!

Tim Shearer (UNITED STATES)

Message: 72753   

 

Thanks Yi, I thought that might be the case!

 

Tim

Attachments

    Outcomes