• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » OMAP™ Applications Processors » OMAP 4 Forum » For panda, does sd/mmc can work with nfs?
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

Forums

For panda, does sd/mmc can work with nfs?

This question is answered
gary69393
Posted by gary69393
on Mar 31 2012 21:25 PM
Intellectual360 points

Hello,

Does someone had tested sd/mmc with nfs?

After tried latest mainline tree and linaro 3.1, I found sd card doesn't work

with nfs or usb fs, and it works well with mmc fs. However blaze board doesn't

have the problem.

It seems the issue is related to power supply.

For blaze, I can see there is an extra mmc0 interrupt num which should be handled by

twl6030.

root@localhost:/root> cat /proc/interrupts | grep mmc
           CPU0       CPU1
 91:        145           0         GIC   mmc1
115:        145          0         GIC   mmc0
384:          1           0     twl6030  mmc0

But for panda, only two mmc interrupt nums exist.

root@localhost:/root> cat /proc/interrupts |grep mmc
 91:         13       GIC  mmc1
115:          0       GIC  mmc0

PS: From schemtic, I found USB phy and mmc share same VIO_1V8, is it has impact about the issue.

Thanks,

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • gary69393
    Posted by gary69393
    on Mar 31 2012 22:07 PM
    Intellectual360 points

    Actually, if sd/mmc is initialized before usb host, then sd/mmc also works, but hot-plug sd/mmc card is failed.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David Anders
    Posted by David Anders
    on Apr 04 2012 10:07 AM
    Verified Answer
    Verified by Magdalena Iovescu
    Prodigy180 points

    i have not tested the linaro builds with this configuration, however i have tested mainline kernel with no issues.

    Dave

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • gary69393
    Posted by gary69393
    on Apr 04 2012 20:42 PM
    Intellectual360 points

    Interesting, I tested pandaboard Rev A3 with mainline kernel 3.4-rc1, and this issue is still exist.

    Thanks,

    Gary

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David Anders
    Posted by David Anders
    on Apr 16 2012 14:54 PM
    Prodigy180 points

    Gary,

    i just ran a full test with 3.2, 3.3 and 3.4-rc series, with no failures of any type related to sd/mmc.

    Dave

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • gary69393
    Posted by gary69393
    on Apr 16 2012 20:56 PM
    Intellectual360 points

    Dave,

    Could you confirm what is the version of pandaboard?

    I have both panda and blaze in my hand, however blaze works fine,

    and I guess this issue related to pull up resistor of mmc's card detect line,

    since blaze uses 470k resistor while panda uses 10k resistor.


    Thanks,

    Gary

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David Anders
    Posted by David Anders
    on Apr 16 2012 21:07 PM
    Prodigy180 points

    i tested with A3 same as you posted.

    10K is nominal for the pullup resistors as it is implemented on the panda.

    i suspect you have a code difference somewhere that is at the root of your issue.

    Dave

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • gary69393
    Posted by gary69393
    on Apr 16 2012 22:03 PM
    Intellectual360 points

    I don't think so, and also tried latest 3.4.0-rc3 kernel with no luck.

    Thanks,

    Gary

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David Anders
    Posted by David Anders
    on Apr 16 2012 22:06 PM
    Prodigy180 points

    Gary,

    please send me a copy of your kernel .config so that i may try it, as well as the exact test conditions you are using to replicate the issue.


    Dave

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • gary69393
    Posted by gary69393
    on Apr 16 2012 22:27 PM
    Intellectual360 points

    Dave,

    I just boot the kernel with nfs or filesystem under usb disk, then just hot plug mmc card after enter into userspace,

    but fdisk can't display mmc info. The config file is a little bit big,

    upstream-linux$ ls -lh .config
    -rwxrwxrwx 1 root root 65K 2012-04-16 15:44 .config

    I amn't want pollute the thread, and I already enabled the following options.

    1966 CONFIG_MMC=y
    1967 # CONFIG_MMC_DEBUG is not set
    1968 CONFIG_MMC_UNSAFE_RESUME=y
    1969 # CONFIG_MMC_CLKGATE is not set
    1970
    1971 #
    1972 # MMC/SD/SDIO Card Drivers
    1973 #
    1974 CONFIG_MMC_BLOCK=y
    1975 CONFIG_MMC_BLOCK_MINORS=8
    1976 CONFIG_MMC_BLOCK_BOUNCE=y
    1977 CONFIG_SDIO_UART=y
    1978 # CONFIG_MMC_TEST is not set
    1979
    1980 #
    1981 # MMC/SD/SDIO Host Controller Drivers
    1982 #
    1983 # CONFIG_MMC_SDHCI is not set
    1984 # CONFIG_MMC_SDHCI_PXAV3 is not set
    1985 # CONFIG_MMC_SDHCI_PXAV2 is not set
    1986 CONFIG_MMC_OMAP=y
    1987 CONFIG_MMC_OMAP_HS=y

    could you tell me which other options should be enabled?

    Thanks,

    Gary

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • David Anders
    Posted by David Anders
    on Apr 16 2012 23:48 PM
    Prodigy180 points

    email the .config to x0132446@ti.com

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • gary69393
    Posted by gary69393
    on May 17 2012 21:50 PM
    Verified Answer
    Verified by gary69393
    Intellectual360 points

    Seems panda missed card_detect_irq for mmc1 card, below patch fixed this.

    ---
    arch/arm/mach-omap2/board-omap4panda.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
    index 1b782ba..171c53f 100644
    --- a/arch/arm/mach-omap2/board-omap4panda.c
    +++ b/arch/arm/mach-omap2/board-omap4panda.c
    @@ -255,6 +255,7 @@ static int omap4_twl6030_hsmmc_late_init(struct device *dev)
    __func__, irq);
    return irq;
    }
    + pdata->slots[0].card_detect_irq = irq;
    pdata->slots[0].card_detect = twl6030_mmc_card_detect;
    }
    return 0;
    --
    1.7.3
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use