• 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 » i/o read/write errors with SD
Share
OMAP™ Applications Processors
  • Forums
Options
  • Subscribe via RSS

Forums

i/o read/write errors with SD

This question is answered
vamshi krishna gajjela
Posted by vamshi krishna gajjela
on Apr 11 2012 16:21 PM
Intellectual265 points

Hi All,

       I have booted Pandaboard in the fastboot mode, by creating GPT partition table on SD. I am able to boot and use android. But soon android is hanging (It is happening when I tried to do read/write operations like creating a new folder or when device wakes from sleep), I checked the kernel log from dmesg, It gave me the following errors showing read/writes to SD are failing.

I have used 16GB SD card.

What can we infer from the card status 0x400e00, and its changing to 0x00. I am looking into SD physical layer specifications for checking this error card status. Please help me in this issue.

$ dmesg

mmcblk0: retrying using single block read
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x400e00
mmcblk0: error -110 transferring data, sector 401192, nr 8, card status 0x400e00
end_request: I/O error, dev mmcblk0, sector 401192
end_request: I/O error, dev mmcblk0, sector 401193
mmcblk0: retrying using single block read
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x400e00
mmcblk0: error -110 transferring data, sector 401192, nr 8, card status 0x400e00
end_request: I/O error, dev mmcblk0, sector 401192
end_request: I/O error, dev mmcblk0, sector 401193
mmcblk0: retrying using single block read
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x400e00
mmcblk0: error -110 transferring data, sector 2131976, nr 8, card status 0x400e00
end_request: I/O error, dev mmcblk0, sector 2131976
end_request: I/O error, dev mmcblk0, sector 2131977
EXT4-fs error (device mmcblk0p7): ext4_read_inode_bitmap: Cannot read inode bitmap - block_group = 2, inode_bitmap = 65537
Aborting journal on device mmcblk0p7-8.
mmcblk0: error -110 sending read/write command, response 0x0, card status 0x400e00
mmcblk0: error -110 transferring data, sector 1612056, nr 8, card status 0x0

Thanks,
Vamshi G.
android pandaboard SD/MMC
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Satheesh Radhakrishnan
    Posted by Satheesh Radhakrishnan
    on Apr 12 2012 01:39 AM
    Intellectual1260 points

    Hi,

    Which Android release are you using for this test? Can you try with another SD Card with lesser capacity (8GB or less) and see if this problem goes away?

    Satheesh.

    ------------------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • vamshi krishna gajjela
    Posted by vamshi krishna gajjela
    on Apr 12 2012 09:57 AM
    Intellectual265 points

    Hi Satheesh, Thanks for your response

            I am using PandaBoard L27.12.1-P2 release. I even suspected that issue can be 16GB SD, but how should I prove its failing due to 16GB memory card. with 4GB SD cards It is working fine. I want to know the root cause for this behavior. Generally most of android devices provides booting from eMMC and with an internal memory of 16 or 32 GB. How its possible with those devices. Please help me in this regard considering issue with 16GB SD or 16GB eMMC

    Thanks.

    omap4 questions Panda Board SD/MMC
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Satheesh Radhakrishnan
    Posted by Satheesh Radhakrishnan
    on Apr 13 2012 03:06 AM
    Intellectual1260 points

    Hi Vamshi,

    Could you please try the following patch? Some of the SD Card require bigger timeout for access. You need to manually merge these changes in your kernel.

    diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 690255c..0f2caca 100644
    --- a/drivers/mmc/core/core.c
    +++ b/drivers/mmc/core/core.c
    @@ -280,7 +280,11 @@ void mmc_set_data_timeout(struct mmc_data *data, const struct mmc_card *card)
             if (data->flags & MMC_DATA_WRITE)

    -            limit_us = 300000;
    +            limit_us = 3000000;
             else
    -             limit_us = 100000;
    +             limit_us = 1000000;

    If this does not work, you can try increasing the boot partition size from 64M to 512M and see if this fixes the issue.

    Also, in future please post pandaboard related questions to pandaboard@googlegroups.com Strictly speaking this forum is not for pandaboard discussions.

    Regards, Satheesh

    ------------------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • vamshi krishna gajjela
    Posted by vamshi krishna gajjela
    on Apr 17 2012 15:48 PM
    Intellectual265 points

    Hi Sathessh,

            Sorry, In future I will post issues at pandaboard@googlegroups.com

    I have tried applying the above specified patch, It did not help me still I have the same Issue.  I booted from SD and entered into fastboot and formated eMMC it is of 16GB size and the partition table I created using fastboot is as follows. (I have made necessary changes in u-boot for partitioning eMMC)

    new partition table:

    256  128K xloader

    512 256K bootloader

    2048 8M recovery

    18432 8M boot

    34816 512M system

    1083392 256M cache

    1607680 512M userdata

    2656256 13615M media

    Am I missing any thing while partition eMMC or in filesystem creation. 

    the error gave this card status 0x400e00

    card status is 32 bit field, With above status I could infer that it is CRC error and card was in programming mode.

    Should I change the boot partition from 8M => 64M

    Thanks. 

    omap4 SD/MMC omap4 xloader uboot emmc sdcard
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Satheesh Radhakrishnan
    Posted by Satheesh Radhakrishnan
    on Apr 18 2012 05:45 AM
    Verified Answer
    Verified by Magdalena Iovescu
    Intellectual1260 points

    Hi Vamsi,

    To isolate the problem, is it possible for you to change the media partition size to match a 8GB card? Right now I see that the partition size for media is set to about 13GB. Please try to reduce it to 5GB or less and see if the problem comes up. If it does come up, then it would mean that the problem could be with SD Card driver or below. If not, there should be some fix required in the Filesystem drivers to support 16GB+ cards.

    You can try increasing the boot partition size from 8M to 64M as well and share the results.

    Regards,Satheesh

    ------------------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • vamshi krishna gajjela
    Posted by vamshi krishna gajjela
    on Apr 18 2012 17:09 PM
    Intellectual265 points

    Hi Satheesh,

           I am trying to verify the clock provided to eMMC, as per TRM maximum clock is 48MHZ for eMMC, but omap-hsmmc.c is trying to configure 52MHz. I am trying to cross check this. I will try your suggestions changing the partition size once I am sure about clock.

    Thanks.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • vamshi krishna gajjela
    Posted by vamshi krishna gajjela
    on Apr 22 2012 05:37 AM
    Intellectual265 points

    Hi Sateesh,

            I have a doubt regarding partition sizes. Does the partition size of and img should match the partition size of the disk space on eMMC. 

    for example, actual size of system.img is 184MB, and during its creation partition size is specified as 512M which is same as that of 512M partition on eMMC.

    Where to set the partition size for recovery image ?

    Thanks.

    android
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Satheesh Radhakrishnan
    Posted by Satheesh Radhakrishnan
    on Apr 23 2012 02:17 AM
    Intellectual1260 points

    Hi Vamshi,

    I am not clear on your question. I am unable to understand why you want to change the system and recovery partition of the eMMC. My understanding was that you have a problem in using a 16GB SD Card. My suggestion was to format the 16GB card as an 8GB card or less to see if the problem goes away. This might give some clue to debug the original problem you were facing.

    Satheesh

    ------------------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    ------------------------------------------------------------------------------------------------------------------

    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