P2040: Issue with MMC/SD card in kernel

cancel
Showing results for 
Search instead for 
Did you mean: 

P2040: Issue with MMC/SD card in kernel

2,204 Views
gouravjain
Contributor IV

Hi,

In my custom board, based on P2041rdb, SD/MMC card is throwing following error while linux is booting up,

mmc0: new high speed SDHC card at address b368
mmcblk0: mmc0:b368 SDC 7.34 GiB
mmcblk0: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
mmcblk0:
mmcblk0: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 0
mmcblk0: error -110 transferring data, sector 1, nr 7, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 1
EXT2-fs (ram0): warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 284k freed
INIT: version 2.88 booting
mmcblk0: error -110 transferring data, sector 2, nr 6, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 2
Starting udev
udevd[907]: starting version 182
mmcblk0: error -110 transferring data, sector 3, nr 5, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 3
mmcblk0: error -110 transferring data, sector 4, nr 4, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 4
mmcblk0: error -110 transferring data, sector 5, nr 3, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 5
Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
bootlogd.
mmcblk0: error -110 transferring data, sector 6, nr 2, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 6
mmcblk0: error -110 transferring data, sector 7, nr 1, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 7
Buffer I/O error on device mmcblk0, logical block 0
mmcblk0: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
mmcblk0: retrying using single block read
mmcblk0: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 0
mmcblk0: error -110 transferring data, sector 1, nr 7, cmd response 0x900, card status 0x0
end_request: I/O error, dev mmcblk0, sector 1
mmcblk0: error -110 transferring data, sector 2, nr 6, cmd response 0x900, card status 0x0
mmcblk0: error -110 transferring data, sector 3, nr 5, cmd response 0x900, card status 0x0
mmcblk0: error -110 transferring data, sector 4, nr 4, cmd response 0x900, card status 0x0
mmcblk0: error -110 transferring data, sector 5, nr 3, cmd response 0x900, card status 0x0
mmcblk0: error -110 transferring data, sector 6, nr 2, cmd response 0x900, card status 0x0
mmcblk0: error -110 transferring data, sector 7, nr 1, cmd response 0x900, card status 0x0
Buffer I/O error on device mmcblk0, logical block 0
EXT2-fs (mtdblock7): error: can't find an ext2 filesystem on dev mtdblock7.
mmcblk0: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0
mmcblk0: retrying using single block read
mmcblk0: error -110 transferring data, sector 0, nr 8, cmd response 0x900, card status 0x0

Don't know from where to start debugging this error. Can anyone throw some light on my issue.

Thanks,

Gourav

0 Kudos
3 Replies

807 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello gourav jain,

Please go to u-boot prompt, and try the following commands to check whether it is possible to access SD card under u-boot.

=>mmc info

=>ext2ls mmc 0:7  /boot

=>ext2load mmc 0:2 10000000 /boot/<exist file>

If it fails, please check the hardware design problem, please refer to the section "eSDHC recommendations" in https://www.nxp.com/docs/en/application-note/AN4403.pdf .

If u-boot can access SD successfully, please attach you whole u-boot and Linux Kernel boot log.

In addition, which version Linux SDK are you using?


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

807 Views
gouravjain
Contributor IV

Hi Yiping,

Thanks for paying attention on my query...

I got following logs,

=> mmc info
mmc - MMC sub system

Usage:
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
=> ext2ls mmc 0:7 /boot
** Invalid partition 7 **
=>

thanks,

Gourav

0 Kudos

807 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Gourav,

Under Linux, please use "fdisk" to create a valid partition on the SD card.

Then under u-boot use the following command to check whether it is possible to read the content in this partition.

=> ext2ls mmc 0:<part_num>  /


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos