Sdカードの読み取り不良について想定原因を教えてください

@alvaro.tx
SDカードの読み取り不良が発生しています。

下記のlogについて、どのようなことが要因として考えられるか見解をいただけますでしょうか?

[ 32.489023] mmc1: Timeout waiting for hardware interrupt.
[ 32.494458] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 32.500912] mmc1: sdhci: Sys addr: 0xdda55000 | Version: 0x00000002
[ 32.507362] mmc1: sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000001
[ 32.513809] mmc1: sdhci: Argument: 0x000001ff | Trn mode: 0x00000013
[ 32.520255] mmc1: sdhci: Present: 0x01f8820e | Host ctl: 0x00000013
[ 32.526702] mmc1: sdhci: Power: 0x00000002 | Blk gap: 0x00000080
[ 32.533148] mmc1: sdhci: Wake-up: 0x00000008 | Clock: 0x0000007f
[ 32.539594] mmc1: sdhci: Timeout: 0x0000008f | Int stat: 0x00000000
[ 32.546040] mmc1: sdhci: Int enab: 0x117f100b | Sig enab: 0x117f100b
[ 32.552487] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000502
[ 32.558933] mmc1: sdhci: Caps: 0x07eb0000 | Caps_1: 0x0000b407
[ 32.565379] mmc1: sdhci: Cmd: 0x0000303a | Max curr: 0x00ffffff
[ 32.571829] mmc1: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x03a0e77f
[ 32.578279] mmc1: sdhci: Resp[2]: 0x325b5900 | Resp[3]: 0x00400e00
[ 32.584726] mmc1: sdhci: Host ctl2: 0x00000000
[ 32.589173] mmc1: sdhci: ADMA Err: 0x00000003 | ADMA Ptr: 0x400c0204
[ 32.595620] mmc1: sdhci-esdhc-imx: ========= ESDHC IMX DEBUG STATUS DUMP =========
[ 32.603192] mmc1: sdhci-esdhc-imx: cmd debug status: 0x3100
[ 32.608855] mmc1: sdhci-esdhc-imx: data debug status: 0x32a0
[ 32.614602] mmc1: sdhci-esdhc-imx: trans debug status: 0x33a2
[ 32.620438] mmc1: sdhci-esdhc-imx: dma debug status: 0x3400
[ 32.626101] mmc1: sdhci-esdhc-imx: adma debug status: 0x35b4
[ 32.631850] mmc1: sdhci-esdhc-imx: fifo debug status: 0x3680
[ 32.637601] mmc1: sdhci-esdhc-imx: async fifo debug status: 0x3750
[ 32.643872] mmc1: sdhci: ============================================
[ 32.650392] mmc1: error -110 reading general info of SD ext reg
[ 32.650414] mmc1: error -110 whilst initialising SD card

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

The log you provided indicates a timeout error while waiting for a hardware interrupt from the SD card interface, which is a common issue in embedded systems. Here are some potential causes and troubleshooting steps you can consider:

  1. Hardware Connection Issues: Ensure the SD card is properly seated in the slot and check for any physical damage to the card or slot that might prevent proper contact.

  2. Power Supply Problems: Verify that the SD card is receiving adequate power, as insufficient power can lead to communication failures.

  3. Driver or Kernel Configuration: The error might be related to the SDHCI driver or kernel configuration. Ensure the correct driver is loaded and any necessary kernel parameters are set correctly. For instance, if using UHS-I cards, confirm that UHS-I support is configured in the device tree or kernel parameters.

  4. Card Compatibility: Check if the SD card is compatible with the device, as some cards may not work well with certain hardware due to differences in supported features or standards.

  5. Software or Firmware Issues: Make sure the software and firmware are up to date, as bugs in older versions can cause such issues.

To troubleshoot further, you can:

  • Try using a different SD card to see if the issue persists.
  • Check the system logs for any additional error messages that might provide more context.
  • Review the device tree and kernel configuration to ensure the SD card interface is correctly set up.

If the problem continues, consider testing the SD card on a different device to rule out card-specific issues.

I hope this helps you resolve the issue.

Best regards,
Toradex AI Assistant.

Please, also check if these links can help you solve your problem:

Installing mini pci express Video capture cards.

@kentaro

お問い合わせいただきありがとうございます。
SDカードの問題は、接続部分やSDカードそのものに起因することが多く、特に高振動環境下ではその傾向が強まります。

お手数ですが、他のハードウェア(異なるSOMやキャリアボード、あるいはWindows PCなど)でSDカードの状態をご確認いただけますでしょうか。

過去にも類似の問題が発生したことがあると認識しております。Kernelのメッセージは、SDカード接続の不具合が発生したタイミングや状況を示しているにすぎないと思います。ただし、SDカードに関連する問題の原因は、通常、前述の内容と同様です(1段落目をご参照ください):Causes of microSD card read failure - #4 by alvaro.tx

以上、引き続きよろしくお願いいたします。
アルバロ。

1 Like