Hi
-
软件环境:jp5.0.2
-
硬件环境:
a. xaiver nx TF card,无cd检测信号,不支持热拔插。
b. TF卡供应是外部3.3V供电,拉死。 -
设备树添加如下:
sdmmc3: sdhci@3440000 {
320 mmc-ocr-mask = <0x0>;
321 //cd-inverted;
322 //cd-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Q, 2) 0>;
323 //nvidia,cd-wakeup-capable;
324 mmc-ocr-mask = <0>;
325 //cd-inverted;
326 non-removable;
327 vmmc-supply = <&p3668_vdd_sdmmc3_sw>;
328 status = "okay";
329 };
4. 日志如下
sudo dmesg |grep mmc1
[sudo] password for lee:
[ 19.632917] mmc1: SDHCI controller on 3440000.sdhci [3440000.sdhci] using ADMA 64-bit
[ 19.876705] mmc1: host does not support reading read-only switch, assuming write-enable
[ 20.018765] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
[ 20.019307] mmcblk1: mmc1:aaaa SR128 119 GiB
[ 21.594240] mmc1: Data CRC error
[ 21.594358] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 21.594500] mmc1: sdhci: Sys addr: 0x00000008 | Version: 0x00000505
[ 21.594651] mmc1: sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000004
[ 21.594796] mmc1: sdhci: Argument: 0x09810900 | Trn mode: 0x0000003b
[ 21.594921] mmc1: sdhci: Present: 0x011b0000 | Host ctl: 0x0000001b
[ 21.595044] mmc1: sdhci: Power: 0x00000001 | Blk gap: 0x00000000
[ 21.595168] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 21.595291] mmc1: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 21.595414] mmc1: sdhci: Int enab: 0x03ff000b | Sig enab: 0x03fc000b
[ 21.595539] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 21.595667] mmc1: sdhci: Caps: 0x3f6cd08c | Caps_1: 0x18002f70
[ 21.595792] mmc1: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000
[ 21.596126] mmc1: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x04800e92
[ 21.596586] mmc1: sdhci: Resp[2]: 0x34cb8000 | Resp[3]: 0x00000240
[ 21.597154] mmc1: sdhci: Host ctl2: 0x0000008b
[ 21.601276] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000007ffffff20c
[ 21.608551] mmc1: sdhci: ============================================
[ 21.617815] mmc1: Data CRC error
[ 21.618595] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 21.625072] mmc1: sdhci: Sys addr: 0x00000108 | Version: 0x00000505
[ 21.631287] mmc1: sdhci: Blk size: 0x00007200 | Blk cnt: 0x0000009e
[ 21.637762] mmc1: sdhci: Argument: 0x0c000900 | Trn mode: 0x0000003b
[ 21.644236] mmc1: sdhci: Present: 0x01fb0000 | Host ctl: 0x0000001b
[ 21.650712] mmc1: sdhci: Power: 0x00000001 | Blk gap: 0x00000000
[ 21.657444] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 21.663661] mmc1: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 21.670224] mmc1: sdhci: Int enab: 0x03ff000b | Sig enab: 0x03fc000b
[ 21.676612] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 21.683087] mmc1: sdhci: Caps: 0x3f6cd08c | Caps_1: 0x18002f70
[ 21.689733] mmc1: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000
[ 21.695950] mmc1: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x04800e92
[ 21.702682] mmc1: sdhci: Resp[2]: 0x34cb8000 | Resp[3]: 0x00000240
[ 21.709154] mmc1: sdhci: Host ctl2: 0x0000008b
[ 21.713532] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000007ffffff224
[ 21.720556] mmc1: sdhci: ============================================
[ 21.728100] mmc1: Data CRC error
[ 21.730595] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 21.736814] mmc1: sdhci: Sys addr: 0x00000108 | Version: 0x00000505
[ 21.743286] mmc1: sdhci: Blk size: 0x00007200 | Blk cnt: 0x000000fa
[ 21.749761] mmc1: sdhci: Argument: 0x0c000900 | Trn mode: 0x0000003b
[ 21.756495] mmc1: sdhci: Present: 0x010b0000 | Host ctl: 0x0000001b
[ 21.762968] mmc1: sdhci: Power: 0x00000001 | Blk gap: 0x00000000
[ 21.769445] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 21.775937] mmc1: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 21.782484] mmc1: sdhci: Int enab: 0x03ff000b | Sig enab: 0x03fc000b
[ 21.788612] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 21.795346] mmc1: sdhci: Caps: 0x3f6cd08c | Caps_1: 0x18002f70
[ 21.801739] mmc1: sdhci: Cmd: 0x0000123a | Max curr: 0x00000000
[ 21.808211] mmc1: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x04800e92
[ 21.814684] mmc1: sdhci: Resp[2]: 0x0fcb8000 | Resp[3]: 0x00000240
[ 21.821157] mmc1: sdhci: Host ctl2: 0x0000008b
[ 21.825536] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000007ffffff218
[ 21.832553] mmc1: sdhci: ============================================
[ 21.966285] mmc1: Data CRC error
[ 21.966401] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 21.966542] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00000505
[ 21.966680] mmc1: sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000000
[ 21.966819] mmc1: sdhci: Argument: 0x0c0009b3 | Trn mode: 0x00000013
[ 21.966952] mmc1: sdhci: Present: 0x01fb0000 | Host ctl: 0x0000001b
[ 21.967087] mmc1: sdhci: Power: 0x00000001 | Blk gap: 0x00000000
[ 21.967217] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 21.967357] mmc1: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 21.967493] mmc1: sdhci: Int enab: 0x03ff000b | Sig enab: 0x03fc000b
[ 21.967621] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 21.967757] mmc1: sdhci: Caps: 0x3f6cd08c | Caps_1: 0x18002f70
[ 21.967886] mmc1: sdhci: Cmd: 0x0000113a | Max curr: 0x00000000
[ 21.968183] mmc1: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x04801f91
[ 21.968636] mmc1: sdhci: Resp[2]: 0x19c68000 | Resp[3]: 0x00000240
[ 21.969203] mmc1: sdhci: Host ctl2: 0x0000000b
[ 21.973326] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000007ffffff20c
[ 21.980863] mmc1: sdhci: ============================================
[ 22.004174] mmc1: Data CRC error
[ 22.004303] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 22.008327] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00000505
[ 22.014803] mmc1: sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000000
[ 22.021279] mmc1: sdhci: Argument: 0x0c0009c3 | Trn mode: 0x00000013
[ 22.027755] mmc1: sdhci: Present: 0x01fb0000 | Host ctl: 0x0000001b
[ 22.034227] mmc1: sdhci: Power: 0x00000001 | Blk gap: 0x00000000
[ 22.040704] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x00000007
[ 22.047095] mmc1: sdhci: Timeout: 0x0000000e | Int stat: 0x00000000
[ 22.053828] mmc1: sdhci: Int enab: 0x03ff000b | Sig enab: 0x03fc000b
[ 22.060129] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[ 22.066516] mmc1: sdhci: Caps: 0x3f6cd08c | Caps_1: 0x18002f70
[ 22.073161] mmc1: sdhci: Cmd: 0x0000113a | Max curr: 0x00000000
[ 22.079635] mmc1: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0x04801f91
[ 22.085855] mmc1: sdhci: Resp[2]: 0x19c68000 | Resp[3]: 0x00000240
[ 22.092582] mmc1: sdhci: Host ctl2: 0x0000000b
[ 22.096964] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x0000007ffffff20c
[ 22.104240] mmc1: sdhci: ============================================
5. 问题
请问这个是什么问题?