SD card read/write error


#1

Hi all,

Linux version: debian 16.06
SD card size:64GB / format:ext4 (sudo mkfs.ext4 /dev/mmcblk1p1)

I found out that SD card error when I continue to read/write it.
This error occur on my product board, but dragon board not.
The error message was as follow(vi /var/log/syslog), and it occur about write SD card for an hour:

May 22 07:31:39 cube110-013 kernel: [ 4.576762] mmcblk1: p1
May 22 07:31:39 cube110-013 kernel: [ 15.033363] EXT4-fs (mmcblk1p1): mounted filesystem with ordered data mode. Opts: (null)
Dec 28 19:14:18 cube110-013 kernel: [ 2948.080030] mmcblk1: error -110 sending stop command, original cmd response 0x900, card status 0x400e00
Dec 28 19:14:18 cube110-013 kernel: [ 2948.081560] mmcblk1: retrying because a re-tune was needed
Dec 28 19:20:31 cube110-013 kernel: [ 3321.262637] mmcblk1: retrying because a re-tune was needed
Dec 28 23:23:38 cube110-013 kernel: [17908.357307] mmcblk1: retrying because a re-tune was needed
Dec 28 23:32:36 cube110-013 kernel: [18446.513857] mmcblk1: retrying because a re-tune was needed
Dec 28 23:32:36 cube110-013 kernel: [18446.580475] mmcblk1: error -84 transferring data, sector 59125864, nr 16, cmd response 0x900, card status 0xc00
Dec 28 23:38:50 cube110-013 kernel: [18820.465277] mmcblk1: retrying because a re-tune was needed
Dec 28 23:38:50 cube110-013 kernel: [18820.472974] mmcblk1: error -84 transferring data, sector 59127832, nr 16, cmd response 0x900, card status 0xc00
Dec 28 23:39:01 cube110-013 kernel: [18831.292963] mmcblk1: error -84 transferring data, sector 59127832, nr 16, cmd response 0x900, card status 0xc00
Dec 28 23:39:11 cube110-013 kernel: [18841.299548] blk_update_request: I/O error, dev mmcblk1, sector 59127832
Dec 28 23:39:11 cube110-013 kernel: [18841.303392] blk_update_request: I/O error, dev mmcblk1, sector 59127840
Dec 28 23:39:11 cube110-013 kernel: [18841.309822] Aborting journal on device mmcblk1p1-8.
Dec 28 23:39:11 cube110-013 kernel: [18841.436757] EXT4-fs error (devicemmcblk1p1): ext4_journal_check_start:56: Detected aborted journal
Dec 28 23:39:11 cube110-013 kernel: [18841.444804] EXT4-fs (mmcblk1p1): Remounting filesystem read-only

Does anyone have the same issue? How can I fix the problem?

Thanks.


#2

I have been using 64GB SDCards on the 410c DragonBoard for quite some time with no issues. Based on the error message that says the driver wants to “retune” I would suspect a signal integrity issue on your product board layout. Did you simulate the SDIO traces and ensure that they were properly matched when you did the PCB layout for your product? Did you follow the Hardware design guidelines? https://developer.qualcomm.com/download/sd410/apq8016e-processor-design-guidelines.pdf Page 50.