SD Card not detected

Hi,

We have our carrier board with nano(emmc),and BSP version is R32.2.1.
We connect CLK/CMD/DATA to pin 219,221,223,225,227,229 and,connect gpio08 to sdcard detect pin.

I follow this link to patch dts,I plug sdcard and poweron,but I get error message.
https://devtalk.nvidia.com/default/topic/1062120/jetson-nano/microsd-card-not-detected-on-jetson-nano-production-module/post/5380051/#5380051

I add this in dts.

{
	sdhci@700b0000 {
		status = "disabled";
	};
	sdhci@700b0400 {
		status = "okay";
	};

case 1
I plug sdcard and poweron,I get error message,I unplug sdcard and the system hangs when I plug sdcard again,then I reboot the nano,it’s still get error message.

case 2
I don’t plug sdcard with poweron,I don’t get error message,but When I plug sdcard the system don’t detect sdcard.

According this link
https://devtalk.nvidia.com/default/topic/1064510/jetson-nano/sd-card-issue-with-nano-l4t-32-2-1/post/5392370/#5392370

I add this to dts,it isn’t to detect sdcard.

{
	sdhci@700b0000 {
		status = "disabled";
	};
	sdhci@700b0400 {
		status = "okay";
		cd-gpios = <&gpio TEGRA_GPIO(Z, 2) 0>;
	};

add_cd-gpio.log (20.8 KB)
debug.log (60 KB)
plug_SD.log (24.8 KB)

1 Like

Hi,

I follow this link to patch dts,I plug sdcard and poweron
MicroSD card not detected on Jetson Nano production module - Jetson Nano - NVIDIA Developer Forums

May I know how does your dts look like now?

I get error message.

What error message?

There is no kernel log in both files (add_cd-gpio.log/debug.log).

Please check.

Hi WayneWWW,

I’ve attached the dmesg log and dts.

After Poweron I saw this below,you can see the debug.log file have more detail

[    1.085740] tegradc tegradc.1: dpd enable lookup fail:-19
[    1.567239] cgroup: cgroup2: unknown option "nsdelegate"
[    1.655749] mmc1: Data CRC error
[    1.659008] sdhci: =========== REGISTER DUMP (mmc1)===========
[    1.664873] sdhci: Sys addr: 0x00000008 | Version:  0x00000303
[    1.670737] sdhci: Blk size: 0x00007200 | Blk cnt:  0x00000007
[    1.676599] sdhci: Argument: 0x00000000 | Trn mode: 0x0000003b
[    1.682461] sdhci: Present:  0x01fb0008 | Host ctl: 0x00000017
[    1.688321] sdhci: Power:    0x00000001 | Blk gap:  0x00000000
[    1.694181] sdhci: Wake-up:  0x00000000 | Clock:    0x00000007
[    1.700042] sdhci: Timeout:  0x0000000e | Int stat: 0x00001000
[    1.705903] sdhci: Int enab: 0x02ff100b | Sig enab: 0x02fc100b
[    1.711764] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[    1.717626] sdhci: Caps:     0x376cd08c | Caps_1:   0x10006f77
[    1.723485] sdhci: Cmd:      0x0000123a | Max curr: 0x00000000
[    1.729343] sdhci: Host ctl2: 0x0000308b
[    1.733289] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000ffefe410
[    1.739903] sdhci: ===========================================
[    7.798988] tegra-xusb 70090000.xusb: HC died; cleaning up
[   12.150873] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   12.157897] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   12.164646] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   12.169832] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   12.176753] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   12.182364] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   12.188241] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   12.193503] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   12.198950] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   13.686853] mmc0: Timeout waiting for hardware interrupt.
[   13.692289] sdhci: =========== REGISTER DUMP (mmc0)===========
[   13.698159] sdhci: Sys addr: 0x00000008 | Version:  0x00000303
[   13.704025] sdhci: Blk size: 0x00007200 | Blk cnt:  0x00000000
[   13.709893] sdhci: Argument: 0x00c15f48 | Trn mode: 0x0000003b
[   13.715759] sdhci: Present:  0x01fb00f0 | Host ctl: 0x00000035
[   13.721626] sdhci: Power:    0x00000001 | Blk gap:  0x00000000
[   13.727496] sdhci: Wake-up:  0x00000000 | Clock:    0x00000007
[   13.733364] sdhci: Timeout:  0x0000000e | Int stat: 0x00000002
[   13.739229] sdhci: Int enab: 0x02ff100b | Sig enab: 0x02fc100b
[   13.745099] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
[   13.750966] sdhci: Caps:     0x376cd08c | Caps_1:   0x10006f77
[   13.756834] sdhci: Cmd:      0x0000123a | Max curr: 0x00000000
[   13.762699] sdhci: Host ctl2: 0x0000300d
[   13.766654] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000ffefe410
[   13.773274] sdhci: ===========================================
[   22.390867] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   22.397888] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   22.404643] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   22.409823] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   22.416746] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   22.422371] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   22.428244] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   22.433507] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   22.438957] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   22.445516] Failed to set dvfs regulator vdd-core
[   22.658833] INFO: rcu_sched detected stalls on CPUs/tasks:
[   22.664381] 	0-...: (0 ticks this GP) idle=c7d/2/0 softirq=297/297 fqs=2396 
[   22.671465] 	(detected by 3, t=5252 jiffies, g=-281, c=-282, q=11)
[   22.677760] INFO: rcu_preempt detected stalls on CPUs/tasks:
[   22.683471] 	0-...: (1 GPs behind) idle=c7d/2/0 softirq=296/297 fqs=2303 
[   22.690292] 	(detected by 3, t=5255 jiffies, g=-156, c=-157, q=533)
[   32.630859] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   32.639383] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   32.647652] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   32.654372] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   32.662864] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   32.670061] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   32.677508] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   32.684328] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   32.691307] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   42.874858] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   42.883396] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   42.891670] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   42.898381] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   42.906834] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   42.913983] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   42.921392] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   42.928195] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   42.935168] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   42.943250] Failed to set dvfs regulator vdd-core
[   53.114857] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   53.123428] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   53.131742] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   53.138482] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   53.146960] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   53.154116] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   53.161519] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   53.168294] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   53.175235] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   63.354868] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   63.363380] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   63.371634] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   63.378324] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   63.386769] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   63.393911] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   63.401308] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   63.408078] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   63.415008] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   63.423044] Failed to set dvfs regulator vdd-core
[   63.429281] Failed to set regulator vdd-core for clock cbus to 800 mV
[   73.594857] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   73.603393] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   73.611662] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   73.618374] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   73.626844] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   73.634002] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   73.641416] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   73.648215] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   73.655179] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   83.830867] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   83.839403] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   83.847657] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   83.854333] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   83.862750] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   83.869860] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   83.877228] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   83.883972] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   83.890895] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[   83.898932] Failed to set dvfs regulator vdd-core
[   85.678852] INFO: rcu_sched detected stalls on CPUs/tasks:
[   85.685907] 	0-...: (0 ticks this GP) idle=c7d/2/0 softirq=297/297 fqs=9865 
[   85.694503] 	[   85.694741] INFO: rcu_preempt detected stalls on CPUs/tasks:
[   85.694747] 	0-...: (1 GPs behind) idle=c7d/2/0 softirq=296/297 fqs=9397 
[   85.694748] 	
[   94.074862] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[   94.083400] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[   94.091667] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[   94.098355] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[   94.106759] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[   94.113861] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[   94.121220] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[   94.127955] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[   94.134865] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  104.314863] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  104.323360] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  104.331603] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  104.338276] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  104.346691] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  104.353791] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  104.361146] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  104.367876] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  104.374779] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  104.382818] Failed to set dvfs regulator vdd-core
[  114.554853] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  114.563384] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  114.571653] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  114.578337] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  114.586750] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  114.593854] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  114.601210] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  114.607948] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  114.614856] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  124.790865] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  124.799361] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  124.807601] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  124.814273] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  124.822683] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  124.829784] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  124.837138] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  124.843873] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  124.850781] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  124.858823] Failed to set dvfs regulator vdd-core
[  124.865047] Failed to set regulator vdd-core for clock vi to 800 mV
[  135.030870] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  135.039397] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  135.047653] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  135.054340] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  135.062757] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  135.069859] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  135.077213] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  135.083948] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  135.090858] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  145.270868] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  145.279365] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  145.287603] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  145.294274] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  145.302681] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  145.309782] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  145.317137] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  145.323876] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  145.330781] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  145.338809] Failed to set dvfs regulator vdd-core
[  148.698840] INFO: rcu_sched detected stalls on CPUs/tasks:
[  148.705885] 	0-...: (0 ticks this GP) idle=c7d/2/0 softirq=297/297 fqs=16843 
[  148.714569] 	(detected by 3, t=36762 jiffies, g=-281, c=-282, q=11)
[  148.722451] INFO: rcu_preempt detected stalls on CPUs/tasks:
[  148.729682] 	0-...: (1 GPs behind) idle=c7d/2/0 softirq=296/297 fqs=16968 
[  148.738109] 	(detected by 3, t=36766 jiffies, g=-156, c=-157, q=533)
[  155.510872] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  155.519406] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  155.527666] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  155.534342] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  155.542768] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  155.549882] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  155.557248] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  155.563996] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  155.570925] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  165.754871] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  165.763379] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  165.771631] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  165.778308] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  165.786730] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  165.793846] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  165.801206] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  165.807958] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  165.814884] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  165.822925] Failed to set dvfs regulator vdd-core
[  175.990864] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  175.999404] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  176.007670] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  176.014355] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  176.022783] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  176.029900] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  176.037273] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  176.044019] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  176.050950] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  186.234870] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  186.243388] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  186.251643] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  186.258327] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  186.266751] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  186.273868] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  186.281236] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  186.287990] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  186.294918] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  186.302967] Failed to set dvfs regulator vdd-core
[  186.309218] Failed to set regulator vdd-core for clock cbus to 800 mV
[  196.474858] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  196.483384] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  196.491650] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  196.498326] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  196.506747] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  196.513862] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  196.521237] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  196.527991] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  196.534918] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  206.710862] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  206.719375] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  206.727626] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  206.734315] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  206.742749] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  206.749867] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  206.757243] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  206.763999] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  206.770932] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  206.778978] Failed to set dvfs regulator vdd-core
[  211.718854] INFO: rcu_sched detected stalls on CPUs/tasks:
[  211.725908] 	0-...: (0 ticks this GP) idle=c7d/2/0 softirq=297/297 fqs=23876 
[  211.734602] 	(detected by 3, t=52517 jiffies, g=-281, c=-282, q=11)
[  211.742490] INFO: rcu_preempt detected stalls on CPUs/tasks:
[  211.749723] 	0-...: (1 GPs behind) idle=c7d/2/0 softirq=296/297 fqs=24413 
[  211.758149] 	(detected by 3, t=52521 jiffies, g=-156, c=-157, q=533)
[  216.950867] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  216.959410] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  216.967679] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  216.974361] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  216.982784] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  216.989900] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  216.997270] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  217.004023] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  217.010958] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  227.190866] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  227.199380] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  227.207640] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  227.214321] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  227.222753] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  227.229870] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  227.237244] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  227.243999] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  227.250926] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  227.258973] Failed to set dvfs regulator vdd-core
[  237.434862] tegra-i2c 7000d000.i2c: pio timed out addr: 0x3c tlen:28 rlen:4
[  237.443405] tegra-i2c 7000d000.i2c: --- register dump for debugging ----
[  237.451675] tegra-i2c 7000d000.i2c: I2C_CNFG - 0x22c00
[  237.458358] tegra-i2c 7000d000.i2c: I2C_PACKET_TRANSFER_STATUS - 0x1010001
[  237.466783] tegra-i2c 7000d000.i2c: I2C_FIFO_CONTROL - 0xe0
[  237.473899] tegra-i2c 7000d000.i2c: I2C_FIFO_STATUS - 0x800081
[  237.481272] tegra-i2c 7000d000.i2c: I2C_INT_MASK - 0x7d
[  237.488025] tegra-i2c 7000d000.i2c: I2C_INT_STATUS - 0xc3
[  237.494954] tegra-i2c 7000d000.i2c: i2c transfer timed out addr: 0x3c
[  242.810874] INFO: task kworker/3:1:637 blocked for more than 120 seconds.
[  242.819231]       Tainted: G        W       4.9.140-tegra #1
[  242.826463] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[  242.836021] Kernel panic - not syncing: hung_task: blocked tasks
[  242.843627] CPU: 2 PID: 589 Comm: khungtaskd Tainted: G        W       4.9.140-tegra #1
[  242.853244] Hardware name: NVIDIA Jetson Nano Developer Kit (DT)
[  242.860870] Call trace:
[  242.864934] [<ffffff800808bdb8>] dump_backtrace+0x0/0x198
[  242.871972] [<ffffff800808c37c>] show_stack+0x24/0x30
[  242.878663] [<ffffff800845d7e0>] dump_stack+0x98/0xc0
[  242.885358] [<ffffff80081c2198>] panic+0x11c/0x298
[  242.891790] [<ffffff8008181f90>] watchdog+0x300/0x3b8
[  242.898465] [<ffffff80080dbee4>] kthread+0xec/0xf0
[  242.904872] [<ffffff8008083850>] ret_from_fork+0x10/0x40
[  242.911785] SMP: stopping secondary CPUs
[  242.917404] Kernel Offset: disabled
[  242.922476] Memory Limit: none
[  242.935020] Rebooting in 5 seconds..

R32_2_1_Nano.txt (2.39 KB)

Hi Karis,

Actually we disabled most kernel log by adding “quiet” in kernel cmdline.

Thus, “add_cd-gpio.log” and “debug.log” are not helpful here since there is no information.

Could you please share

  1. plug nothing. Boot up the device and then just share the result by using command “dmesg”. We don’t need bootloader (cboot/uboot) log at this moment.

  2. plug the sdcrad. Boot up the device and share the dmesg again. If the device hang, then nothing to share.

Hi WayneWWW,

Thank you for your reply.

I’ve attached the dmesg log (plug the sdcard) and dmesg_nothing log.
dmesg.txt (56.5 KB)
dmesg_nothing.txt (56.3 KB)

Could you also share your schematics?

Hi Karis,

According to dmesg.txt in #5, I don’t see any error there.

Also, mmc1 seems detect your sdcard.

[    1.350049] mmc1: new high speed SDXC card at address aaaa
[    1.350323] mmcblk1: mmc1:aaaa SC64G 59.5 GiB

Is there any error from your UART?

Hi WayneWWW,

NO, It’s to boot up the device and then just share the result by using command “dmesg”.

But if unplug sdcard and plug sdcard again,the system hangs.

But if unplug sdcard and plug sdcard again,the system hangs.

Does log in #3 represent this part?

Hi WayneWWW,

NO,This is plug sdcard to boot nano’s log.

I use command (dmesg -w > dmesg.log) before,unplug and plug again.
After unplug and plug againthe system hang, I reboot the nano,and check the dmesg.txt,the file is empty.

Hi WayneWWW,

I’ve attached schematics of SDcard’s part.


Hi Karis,

I mean the codeblock you paste in #3. Is that what you saw if you hotplug the sdcard?

NO,not hotplug.

I poweron nano with sdcard .

Hi Karis,

I am confused by your comments. It seems have some conflicts here.

Please try to enable more log in UART by below method.

  1. Due to the “quiet” parameter in kernel cmdline, your uart log will not have kernel log.
    Please go to “/boot/extlinux/extlinux.conf” and remove the “quiet” in bootargs.

  2. After removing quiet, please again try

case 1. power on with sdcard connected. and paste UART log
case 2. power on with no sdcard. Waiting for 10 second after boot up and then connect the sdcard and paste UART log.

Please note that we are talking about uart log now. It seems dmesg will not have the sdhci error.

Hi WayneWWW,

I’ve attached UART log.
I am confused,why I add cd-gpio to dts, but sd card does not work?
After_10S_boot.log (145 KB)
with_sd.log (140 KB)

1 Like

Hi Karis,

Could you elaborate more detail about these two logs?

Q1:
In “with_sd.log”, I saw you have sdcard plugged when power on.

After that, system hits crc error and reboots.

1021 [    4.100025] mmc1: host does not support reading read-only switch, assuming write-enable
1022 [    4.255337] mmc1: Applying tuning correction
1023 [    4.255374] mmc1: Tap value after applying correction 51
1024 [    4.255419] mmc1: hw tuning done ...
1025 [    4.255499] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
1026 [    4.255852] mmcblk1: mmc1:aaaa SC64G 59.5 GiB 
1027 [    4.258376] mmc1: Data CRC error
1028 [    4.258378] sdhci: =========== REGISTER DUMP (mmc1)===========
1029 [    4.258386] sdhci: Sys addr: 0x00000008 | Version:  0x00000303
1030 [    4.258392] sdhci: Blk size: 0x00007200 | Blk cnt:  0x00000007
1031 [    4.258398] sdhci: Argument: 0x00000000 | Trn mode: 0x0000003b
1032 [    4.258404] sdhci: Present:  0x010b0008 | Host ctl: 0x00000017
1033 [    4.258410] sdhci: Power:    0x00000001 | Blk gap:  0x00000000
1034 [    4.258416] sdhci: Wake-up:  0x00000000 | Clock:    0x00000007
1035 [    4.258422] sdhci: Timeout:  0x0000000e | Int stat: 0x00001000
1036 [    4.258427] sdhci: Int enab: 0x02ff100b | Sig enab: 0x02fc100b
1037 [    4.258433] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000
1038 [    4.258439] sdhci: Caps:     0x376cd08c | Caps_1:   0x10006f77
1039 [    4.258445] sdhci: Cmd:      0x0000123a | Max curr: 0x00000000
1040 [    4.258448] sdhci: Host ctl2: 0x0000308b
1041 [    4.258457] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000ffefe410
1042 [    4.258513] sdhci: ===========================================
1043 Dump for CPU0:

After next reboot, your log does not have crc error anymore. Does sdcard work at that moment?

Q2: Why does mmc1 appear in timestamp 4.xxx in “After_10S_boot.log”? Shouldn’t you wait for 10 second after system boot up?

1006 [    3.999632] mmc1: host does not support reading read-only switch, assuming write-enable
1007 [    4.155161] mmc1: Applying tuning correction
1008 [    4.155199] mmc1: Tap value after applying correction 51
1009 [    4.155243] mmc1: hw tuning done ...
1010 [    4.155329] mmc1: new ultra high speed SDR104 SDXC card at address aaaa
1011 [    4.155628] mmcblk1: mmc1:aaaa SC64G 59.5 GiB 
1012 [    4.156000] mmc1: CMD CRC or end bit error, int mask 0xa0001
1013 [    5.239910] random: crng init done

Hi WayneWWW,

Yes! I plug sdcard with poweron,maybe waited about 2~5 minutes,the system reboots,after reboot, I can see SD icon.
I use the command (ls /dev/ |grep mmc), I can see the mmc1.
You can see line 2288 of with_sd.log.

I waited 10 second and plugged sdcard.
I try again,it’s the same,you can see the attachment putty.log
putty.log (145 KB)

Thanks for clarification. Could you also check the power sequence of turning on/off, SD_POWER_SW_ON and SD_PWR_EN?

Hi WayneWWW,

SD_POWER_SW_ON and SD_PWR_EN can’t boot up at the same time?

Could you share current power sequence of SD_POWER_SW_ON and SD_PWR_EN on your board?