I am developing a custom carrier board for the Jetson Nano and I am trying to make use of an external SD Card interface.
I have followed many similar posts on this forum namely :
I have successfully compiled the kernel with the modifications described in the first link and updated the Linux_for_Tegra folder with the new DTBs and Image.
I have also flashed the module successfully and it working fine aside from the SD Card module.
cat /proc/device-tree/sdhci@700b0400/status outputs okay so the changes took effect.
However when I run dmesg I get the following output:
[ 867.208031] mmc1: Data end bit error [ 867.211601] sdhci: =========== REGISTER DUMP (mmc1)=========== [ 867.217423] sdhci: Sys addr: 0x00000000 | Version: 0x00000303 [ 867.223245] sdhci: Blk size: 0x00007008 | Blk cnt: 0x00000000 [ 867.229066] sdhci: Argument: 0x00000000 | Trn mode: 0x00000013 [ 867.234889] sdhci: Present: 0x01eb0000 | Host ctl: 0x00000011 [ 867.240709] sdhci: Power: 0x00000001 | Blk gap: 0x00000000 [ 867.246532] sdhci: Wake-up: 0x00000000 | Clock: 0x00000607 [ 867.252353] sdhci: Timeout: 0x0000000e | Int stat: 0x00000000 [ 867.258174] sdhci: Int enab: 0x02ff100b | Sig enab: 0x02fc100b [ 867.263996] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000 [ 867.269817] sdhci: Caps: 0x376cd08c | Caps_1: 0x10006f77 [ 867.275638] sdhci: Cmd: 0x0000333a | Max curr: 0x00000000 [ 867.281457] sdhci: Host ctl2: 0x00003000 [ 867.285374] sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0x00000000ffefe410 [ 867.291941] sdhci: =========================================== [ 867.298383] mmc1: error -84 whilst initialising SD card
The SD Card is formatted to exFAT and I have installed the necessary dependencies.
This is the schematic:
The only I made to the source code were the same as the first link:
Set status for sdhci@700b0400 to “okay” in:
Patch changes applied manually in:
I can put here whatever file is needed for debug.
Thank you in advance