2009-02-06 03:46:37 Sd card hotplug problem
Bill Xie (CHINA)
Message: 68955
Hi:
1. If the sd card insert before board power on,It is ok.But kernel cannot catputed card removed.
root:/bin> cat /proc/spi_mmc
Driver build date: Jan 7 2009
SCLK: 20000 KHz
SPISEL41 as chip select
Driver: Blackfin PIO SPI directly
Total errors: 0
SD card :
Capacity: 1017643008 B
Name: SD ?
Rev: 9.1
Date: 2003/8
Serial: 0xed560 (972128)
CSD ver.: 0
CCC supported: 5f5
Mult. block writes works: YES
if the sd card is removed,the kernel is not captured this message.
oot:/bin> cat /proc/spi_mmc
Driver build date: Jan 7 2009
SCLK: 20000 KHz
SPISEL41 as chip select
Driver: Blackfin PIO SPI directly
Total errors: 0
SD card :
Capacity: 1017643008 B
2.If board power on before SD card insert,It cannot detect sd card.
The uclinux hotplug is enble.
Bus options (PCI, PCMCIA, EISA, MCA, ISA) --->
[*] Support for hot-pluggable device
BusyBox --->
Linux System Utilities --->
[*] mdev
[*] Support loading of firmwares
Let me know your suggestion to resolve this problem.Thank you.
Bill
QuoteReplyEditDelete
2009-02-06 13:23:45 Re: Sd card hotplug problem
Frank Van Hooft (CANADA)
Message: 69002
I don't know if this is of any help to you...
On our BF537 board with SD, we have the SD "card detect" line attached to a GPIO. Within our application code we keep an eye on that GPIO, so that if the card is removed or inserted, we can respond accordingly.
So we're not asking the kernel to handle card detect / removal, we're simply monitoring it ourselves.
Like I said, I don't know if that's of any help to you, but it works for us.
QuoteReplyEditDelete
2009-02-06 14:25:54 Re: Sd card hotplug problem
Tim Shearer (UNITED STATES)
Message: 69006
Works for us too. We poll our GPIO SD detect line, then run a mount script when the card is detected.
QuoteReplyEditDelete
2009-02-06 14:28:35 Re: Sd card hotplug problem
Tim Shearer (UNITED STATES)
Message: 69007
Incidentally, for anyone having comms problems when mounting their SD/MMC cards (on custom and CM-BF537E eval boards), check you're using 100R termination resistors on all data lines, and pullups in the appropriate places.
Use the Rubico stamp expansion board schematic as a reference if in doubt.
QuoteReplyEditDelete
2009-02-07 03:09:26 Re: Sd card hotplug problem
Bill Xie (CHINA)
Message: 69017
Hi,thank you.Your way by GPIO to decect sd card removed or insert.But I don't know how to realize this way by software.
Please help me to solve this problem . Thanks.
--Bill
QuoteReplyEditDelete
2009-02-08 23:17:00 Re: Sd card hotplug problem
Yi Li (CHINA)
Message: 69052
Bill,
If enabling card detection, the card still cannot be detected?
Device Drivers --->
MMC/SD Card support --->
<*> MMC/SD for SPI support (EXPERIMENTAL)
SPI driver (Blackfin SPI bus directly) --->
(4) SPI chip select signal for MMC/SD card
(20000000) SPI clock limit for MMC/SD transfers
[*] MMC/SD Card detect support (EXPERIMENTAL)
(55) IRQ# for card detection
-Yi
QuoteReplyEditDelete
2009-02-09 02:18:19 Re: Sd card hotplug problem
Bill Xie (CHINA)
Message: 69056
Yi:
Thank you for your response.My spi/sd configure is same as your mention.
If sd card is inserted , board must power on or kernel reboot to detect sd.
Out message:
mmc_pio_spi:cs_#: 0x29, baud=0x0, flag=0xff00, ctrl=0x400
spi_mmc: configure for card detection
No IRQF_TRIGGER set_type function for IRQ 55 (<NULL>)
Is not the interrupt working?
--Bill
QuoteReplyEditDelete
2009-02-11 21:13:01 Re: Sd card hotplug problem
Bill Xie (CHINA)
Message: 69298
The sd socket CD pin is not connect BFx.So the detected interrupt is not working.