We are trying to boot L4T on a custom board based on Tegra K1 processor. After quite much of debugging, we have reached a point where we are able to flash u-boot and boot kernel from both eMMC and SD card. However, when the kernel tries to mount the rootfs, it is able to mount the mmcblk0p1/mmcblk1p1 partition but hangs after throwing following:
[ 11.935367] mmc1: ADMA error [ 11.941245] sdhci: =========== REGISTER DUMP (mmc1)=========== [ 11.949353] sdhci: Sys addr: 0x00000000 | Version: 0x00000303 [ 11.957510] sdhci: Blk size: 0x00007200 | Blk cnt: 0x00000028 [ 11.965688] sdhci: Argument: 0x00440cc0 | Trn mode: 0x00000033 [ 11.973895] sdhci: Present: 0x01fb0206 | Host ctl: 0x00000013 [ 11.982134] sdhci: Power: 0x0000000d | Blk gap: 0x00000000 [ 11.990404] sdhci: Wake-up: 0x00000000 | Clock: 0x00000007 [ 11.998644] sdhci: Timeout: 0x0000000e | Int stat: 0x00000000 [ 12.006822] sdhci: Int enab: 0x02ff000b | Sig enab: 0x02fc000b [ 12.014939] sdhci: AC12 err: 0x00000000 | Slot int: 0x00000000 [ 12.022978] sdhci: Caps: 0x376fd080 | Caps_1: 0x10002f73 [ 12.030966] sdhci: Cmd: 0x0000123a | Max curr: 0x00000000 [ 12.038910] sdhci: Host ctl2: 0x0000308b [ 12.044909] sdhci: ADMA Err: 0x00000001 | ADMA Ptr: 0xae8420c0 [ 12.052861] sdhci: ===========================================
When we tried to disable ADMA on SDHCI by passing “sdhci.debug_quirks=32832” to kernel command line argument, the Tegra SDHCI driver crashes and kernel hangs at following:
[ 8.076631] Waiting for root device /dev/mmcblk1p1...
Please find below files of detailed kernel logs for both scenarios when ADMA was enabled and disabled.