This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: In U-BOOT MMC list not showing EMMC device?

Part Number: AM5728
Other Parts Discussed in Thread: WL1837, BEAGLEBOARD-X15

Hi sir,

we are using AM5728 reference design of custom board.

device are connected as below 

MMC1 ----->SD Card

MMC2 ----->EMMC Device

MMC3 ----->WL1837 Wifi module.

I enable only two devices(mmc1,mmc2) in device tree using below method but it's now show any thing for emmc in beagle board x15 it's showing.

U-Boot Device tree:(am572x-beagle-x15-common.dts)


&mmc1 {
status = "okay";

pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_default>;

bus-width = <4>;
cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
no-1-8-v;
};

&mmc2 {
status = "okay";
vmmc-supply = <&vdd_3v3>;
pinctrl-names = "default", "hs";
pinctrl-0 = <&mmc2_pins_default>;
pinctrl-1 = <&mmc3_pins_hs>;

bus-width = <8>;
ti,non-removable;
cap-mmc-dual-data-rate;
no-1-8-v;
max-frequency = <48000000>;
};

Output:


U-Boot 2019.01-g463d755-dirty (Feb 21 2023 - 20:53:22 +0530)

CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: CARAVEL-ENCODER AM572x EVM Camera ModDRAM: 1 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... OK
omap_hsmmc_send_cmd : DMA timeout: No status update
invalid mmc device
Net:
Warning: ethernet@48484000 MAC addresses don't match:
Address in ROM is 68:e7:4a:8b:8c:48
Address in environment is 6c:30:2a:47:4b:42
eth0: ethernet@48484000
Hit any key to stop autoboot: 0
=> mmc info
Device: OMAP SD/MMC
Manufacturer ID: 3
OEM: 5344
Name: SD32G
Bus Speed: 48000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
=> mmc list
OMAP SD/MMC: 0 (SD)
OMAP SD/MMC: 1
=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> mmc dev 1
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
=> mmc dev 1
omap_hsmmc_send_cmd : DMA timeout: No status update
=>

I enable only three devices(mmc1,mmc2,mmc3) in device tree using below method but it's now show any thing for wl1837 in am5728 evm it's showing.

U-Boot Device tree:(am572x-beagle-x15-common.dts)


&mmc1 {
status = "okay";

pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins_default>;

bus-width = <4>;
cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
no-1-8-v;
};

&mmc2 {
status = "okay";
vmmc-supply = <&vdd_3v3>;
pinctrl-names = "default", "hs";
pinctrl-0 = <&mmc2_pins_default>;
pinctrl-1 = <&mmc3_pins_hs>;

bus-width = <8>;
ti,non-removable;
cap-mmc-dual-data-rate;
no-1-8-v;
max-frequency = <48000000>;
};

&mmc3 {
status = "okay";
vmmc-supply = <&vdd_3v3>;
bus-width = <4>;
pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
pinctrl-0 = <&mmc3_pins_default>;
pinctrl-1 = <&mmc3_pins_hs>;
pinctrl-2 = <&mmc3_pins_sdr12>;
pinctrl-3 = <&mmc3_pins_sdr25>;
pinctrl-4 = <&mmc3_pins_sdr50>;
cap-power-off-card;
keep-power-in-suspend;
ti,non-removable;
no-1-8-v;
/* #address-cells = <1>;
#size-cells = <0>;
wlcore: wlcore@0 {
compatible = "ti,wl1837";
reg = <0>;
interrupt-parent = <&gpio5>;
interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
};*/
};

Output:


U-Boot 2019.01-g463d755-dirty (Feb 21 2023 - 20:56:43 +0530)

CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: CARAVEL-ENCODER AM572x EVM Camera ModDRAM: 1 GiB
MMC: omap_hsmmc_init_setup: timedout waiting for cc2!
mmc@480ad000 - probe failed: -110
OMAP SD/MMC: 0, OMAP SD/MMC: 1omap_hsmmc_init_setup: timedout waiting for cc2!

Loading Environment from FAT... OK
omap_hsmmc_send_cmd : DMA timeout: No status update
invalid mmc device
Net:
Warning: ethernet@48484000 MAC addresses don't match:
Address in ROM is 68:e7:4a:8b:8c:48
Address in environment is 6c:30:2a:47:4b:42
eth0: ethernet@48484000
Hit any key to stop autoboot: 0
=> mmc info
Device: OMAP SD/MMC
Manufacturer ID: 3
OEM: 5344
Name: SD32G
Bus Speed: 48000000
Mode : SD High Speed (50MHz)
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 29.7 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
=> mmc list
OMAP SD/MMC: 0 (SD)
OMAP SD/MMC: 1omap_hsmmc_init_setup: timedout waiting for cc2!

=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=> mmc dev 1
omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
=> mmc dev 2
no mmc device at slot 2
=>

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/560946/am335x-emmc-boot

as per the above changes done omap_hsmmc.c file but same issue.

Any changes required in the code side, Could you give me some suggestions.

Thanking you,

Regards,

Ramachandra

  • Hi Ramachandra

    Which emmc part and which sdk you are using?

    Can you boot upto linux and see if you are seeing same issue with the emmc?

    Regards
    Diwakar

  • HI sir,

    I am using kingston EMMC04G-M627 MEM_MNAND_4GB (In Beagle board X15 reference) emmc using.

    AM5728 sdk: is ti-processor-sdk-linux-am57xx-evm-06.01.00.08 using

    After booting linux it's showing continuously below messages:

    [ 45.277831] mmc1: Timeout waiting for hardware interrupt.
    [ 45.283256] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
    [ 45.289725] mmc1: sdhci: Sys addr: 0x00000000 | Version: 0x00003302
    [ 45.296191] mmc1: sdhci: Blk size: 0x00000200 | Blk cnt: 0x00000001
    [ 45.302658] mmc1: sdhci: Argument: 0x00000000 | Trn mode: 0x00000013
    [ 45.309124] mmc1: sdhci: Present: 0x01e00a06 | Host ctl: 0x00000010
    [ 45.315589] mmc1: sdhci: Power: 0x0000000f | Blk gap: 0x00000000
    [ 45.322056] mmc1: sdhci: Wake-up: 0x00000000 | Clock: 0x0000ffc7
    [ 45.328521] mmc1: sdhci: Timeout: 0x00000004 | Int stat: 0x00000000
    [ 45.334987] mmc1: sdhci: Int enab: 0x027f000b | Sig enab: 0x027f000b
    [ 45.341453] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
    [ 45.347918] mmc1: sdhci: Caps: 0x21e90080 | Caps_1: 0x00000f77
    [ 45.354384] mmc1: sdhci: Cmd: 0x0000083a | Max curr: 0x00000000
    [ 45.360850] mmc1: sdhci: Resp[0]: 0x00000900 | Resp[1]: 0xffffffef
    [ 45.367317] mmc1: sdhci: Resp[2]: 0x0f5903ff | Resp[3]: 0xd04f0132
    [ 45.373782] mmc1: sdhci: Host ctl2: 0x00000000
    [ 45.378242] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0xae52b210
    [ 45.384707] mmc1: sdhci: ============================================
    [ 45.391418] mmc1: error -110 whilst initialising MMC card

    Same issue getting in in linux kernel also sir,

    thanking you,

    Regards,

    Ram.

  • Hi Ramachandra

    Have you probed and checked whether the clock and supply is as per the expectation ?

    Regards
    Diwakar

  • Hi sir,

    I checked the voltages 3.3v volts coming i will check the clock once and i will intimate you.(Rstout also coming)

    Thanking you,

    Regards,

    Ram.

  • Hi Ramachandra

    Also can you add #define CONFIG_MMC_TRACE in drivers/mmc/mmc_private.h in uboot repo

    build uboot and share the result.

    Regards
    Diwakar

  • hi sir,

    I checked mmc3_clk but not generating the clock.

    U-boot dts

    &mmc1 {
    status = "okay";

    pinctrl-names = "default";
    pinctrl-0 = <&mmc1_pins_default>;

    bus-width = <4>;
    cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
    no-1-8-v;
    };

    &mmc2 {
    status = "okay";
    vmmc-supply = <&vdd_3v3>;
    pinctrl-names = "default", "hs";
    pinctrl-0 = <&mmc2_pins_default>;
    pinctrl-1 = <&mmc3_pins_hs>;

    bus-width = <8>;
    ti,non-removable;
    cap-mmc-dual-data-rate;
    no-1-8-v;
    max-frequency = <48000000>;
    };
    &mmc3 {
    status = "okay";
    vmmc-supply = <&vdd_3v3>;
    bus-width = <4>;
    pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
    pinctrl-0 = <&mmc3_pins_default>;
    pinctrl-1 = <&mmc3_pins_hs>;
    pinctrl-2 = <&mmc3_pins_sdr12>;
    pinctrl-3 = <&mmc3_pins_sdr25>;
    pinctrl-4 = <&mmc3_pins_sdr50>;
    cap-power-off-card;
    keep-power-in-suspend;
    ti,non-removable;
    no-1-8-v;
    /* #address-cells = <1>;
    #size-cells = <0>;
    wlcore: wlcore@0 {
    compatible = "ti,wl1837";
    reg = <0>;
    interrupt-parent = <&gpio5>;
    interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
    };*/
    };

    Linux dts

    &mmc1 {
    status = "okay";

    pinctrl-names = "default";
    pinctrl-0 = <&mmc1_pins_default>;

    bus-width = <4>;
    cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
    no-1-8-v;
    };

    &mmc2 {
    status = "okay";

    pinctrl-names = "default";
    pinctrl-0 = <&mmc2_pins_default>;

    vmmc-supply = <&vdd_3v3>;
    vqmmc-supply = <&vdd_3v3>;
    bus-width = <8>;
    non-removable;
    /*no-1-8-v;*/
    /delete-property/ mmc-hs200-1_8v;
    max-frequency = <192000000>;
    };
    &mmc3 {
    status = "okay";
    vmmc-supply = <&vdd_3v3>;
    bus-width = <4>;
    pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
    pinctrl-0 = <&mmc3_pins_default>;
    pinctrl-1 = <&mmc3_pins_hs>;
    pinctrl-2 = <&mmc3_pins_sdr12>;
    pinctrl-3 = <&mmc3_pins_sdr25>;
    pinctrl-4 = <&mmc3_pins_sdr50>;
    cap-power-off-card;
    keep-power-in-suspend;
    ti,non-removable;
    no-1-8-v;
    #address-cells = <1>;
    #size-cells = <0>;
    wlcore: wlcore@0 {
    compatible = "ti,wl1837";
    reg = <0>;
    interrupt-parent = <&gpio5>;
    interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
    };
    };

    added #define CONFIG_MMC_TRACE below messgaes came

    U-Boot SPL 2019.01-g463d755-dirty (Feb 24 2023 - 12:13:16 +0530)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    no pinctrl state for default mode
    no pinctrl state for default mode
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:8
    ARG 0x000001AA
    MMC_RSP_R1,5,6,7 0x000001AA
    CMD_SEND:55
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000120
    CMD_SEND:41
    ARG 0x40300000
    MMC_RSP_R3,4 0x00FF8000
    CMD_SEND:55
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000120
    CMD_SEND:41
    ARG 0x40300000
    MMC_RSP_R3,4 0xC0FF8000
    CMD_SEND:2
    ARG 0x00000000
    MMC_RSP_R2 0x03534453
    0x44333247
    0x85FDF4B2
    0x4A016CAF

    DUMPING DATA
    000 - 03 53 44 53
    004 - 44 33 32 47
    008 - 85 FD F4 B2
    012 - 4A 01 6C AF
    CMD_SEND:3
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x50480500
    CMD_SEND:9
    ARG 0x50480000
    MMC_RSP_R2 0x400E0032
    0x5B590000
    0xEDDF7F80
    0x0A40006B

    DUMPING DATA
    000 - 40 0E 00 32
    004 - 5B 59 00 00
    008 - ED DF 7F 80
    012 - 0A 40 00 6B
    CMD_SEND:7
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000700
    CMD_SEND:55
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:51
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x00FFFFF1
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:55
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x00000002
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x80FFFFF1
    MMC_RSP_R1,5,6,7 0x00000900
    Loading Environment from FAT... CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x000010BF
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    OK
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00011A84
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000A30
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00011A84
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00011A87
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000A30
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00011A87
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000A36
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00011A88
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00011E5F
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000A30
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000A36
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00011E5F
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000A3C
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00011E60
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00011F69
    MMC_RSP_R1,5,6,7 0x00000900


    U-Boot 2019.01-g463d755-dirty (Feb 24 2023 - 12:13:16 +0530)

    CPU : DRA752-GP ES2.0
    Model: TI AM5728 BeagleBoard-X15
    Board: CAIR-DTU AM572x Board
    REV
    DRAM: 1 GiB
    MMC: omap_hsmmc_init_setup: timedout waiting for cc2!
    mmc@480ad000 - probe failed: -110
    OMAP SD/MMC: 0, OMAP SD/MMC: 1omap_hsmmc_init_setup: timedout waiting for cc2!

    Loading Environment from FAT... CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:8
    ARG 0x000001AA
    MMC_RSP_R1,5,6,7 0x000001AA
    CMD_SEND:55
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000120
    CMD_SEND:41
    ARG 0x40300000
    MMC_RSP_R3,4 0x00FF8000
    CMD_SEND:55
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000120
    CMD_SEND:41
    ARG 0x40300000
    MMC_RSP_R3,4 0xC0FF8000
    CMD_SEND:2
    ARG 0x00000000
    MMC_RSP_R2 0x03534453
    0x44333247
    0x85FDF4B2
    0x4A016CAF

    DUMPING DATA
    000 - 03 53 44 53
    004 - 44 33 32 47
    008 - 85 FD F4 B2
    012 - 4A 01 6C AF
    CMD_SEND:3
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x50480500
    CMD_SEND:9
    ARG 0x50480000
    MMC_RSP_R2 0x400E0032
    0x5B590000
    0xEDDF7F80
    0x0A40006B

    DUMPING DATA
    000 - 40 0E 00 32
    004 - 5B 59 00 00
    008 - ED DF 7F 80
    012 - 0A 40 00 6B
    CMD_SEND:7
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000700
    CMD_SEND:55
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:51
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x00FFFFF1
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:55
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x00000002
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x80FFFFF1
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:55
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:13
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x000010BF
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    OK
    Warning: fastboot.board_rev: unknown board revision
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:8
    ARG 0x000001AA
    RET -110
    CMD_SEND:55
    ARG 0x00000000
    RET -110
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:1
    ARG 0x00000000
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0xC0FF8080
    CMD_SEND:2
    ARG 0x00000000
    MMC_RSP_R2 0x7001004D
    0x36323730
    0x34012EC3
    0xD89399CB

    DUMPING DATA
    000 - 70 01 00 4D
    004 - 36 32 37 30
    008 - 34 01 2E C3
    012 - D8 93 99 CB
    CMD_SEND:3
    ARG 0x00010000
    MMC_RSP_R1,5,6,7 0x00000500
    CMD_SEND:9
    ARG 0x00010000
    MMC_RSP_R2 0xD04F0132
    0x0F5903FF
    0xFFFFFFEF
    0x8A400061

    DUMPING DATA
    000 - D0 4F 01 32
    004 - 0F 59 03 FF
    008 - FF FF FF EF
    012 - 8A 40 00 61
    CMD_SEND:7
    ARG 0x00010000
    MMC_RSP_R1,5,6,7 0x00000700
    CMD_SEND:8
    ARG 0x00000000
    omap_hsmmc_send_cmd : DMA timeout: No status update
    RET -110
    invalid mmc device

  • Hi Ramachandra

    I checked mmc3_clk but not generating the clock.

    Can you check from the hw point of view why the clock is not getting generated.

    Have you confirmed that your pinmux setting are correct?

    Because of the clock issue probe function is getting failed.

    mmc@480ad000 - probe failed: -110

    is mmc@480ad000  is your emmc ?

    Regards
    Diwakar

  • hi sir,

    I checked mmc3_clk probed through oscillator but not generating.

    pin mux:

    //SD-Card
    {MMC1_CLK, (M0 | PIN_INPUT_PULLUP)}, /* mmc1_clk.mmc1_clk */
    {MMC1_CMD, (M0 | PIN_INPUT_PULLUP)}, /* mmc1_cmd.mmc1_cmd */
    {MMC1_DAT0, (M0 | PIN_INPUT_PULLUP)}, /* mmc1_dat0.mmc1_dat0 */
    {MMC1_DAT1, (M0 | PIN_INPUT_PULLUP)}, /* mmc1_dat1.mmc1_dat1 */
    {MMC1_DAT2, (M0 | PIN_INPUT_PULLUP)}, /* mmc1_dat2.mmc1_dat2 */
    {MMC1_DAT3, (M0 | PIN_INPUT_PULLUP)}, /* mmc1_dat3.mmc1_dat3 */
    {MMC1_SDCD, (M14 | PIN_INPUT | SLEWCONTROL)}, /* mmc1_sdcd.gpio6_27 */

    {SPI1_D1, (M14 | PIN_INPUT_PULLDOWN)}, /* spi1_d1.gpio7_8 */
    //MMC2-EMMC
    {GPMC_A19, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a19.mmc2_dat4 */
    {GPMC_A20, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a20.mmc2_dat5 */
    {GPMC_A21, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a21.mmc2_dat6 */
    {GPMC_A22, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a22.mmc2_dat7 */
    {GPMC_A23, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a23.mmc2_clk */
    {GPMC_A24, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a24.mmc2_dat0 */
    {GPMC_A25, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a25.mmc2_dat1 */
    {GPMC_A26, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a26.mmc2_dat2 */
    {GPMC_A27, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a27.mmc2_dat3 */
    {GPMC_CS1, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_cs1.mmc2_cmd */
    //MMC3-WIFI
    {MMC3_CLK, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)}, /* mmc3_clk.mmc3_clk */
    {MMC3_CMD, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)}, /* mmc3_cmd.mmc3_cmd */
    {MMC3_DAT0, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)}, /* mmc3_dat0.mmc3_dat0 */
    {MMC3_DAT1, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)}, /* mmc3_dat1.mmc3_dat1 */
    {MMC3_DAT2, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)}, /* mmc3_dat2.mmc3_dat2 */
    {MMC3_DAT3, (M0 | PIN_INPUT_PULLUP | MANUAL_MODE)}, /* mmc3_dat3.mmc3_dat3 */

    {MCASP1_AXR3, (M14 | PIN_INPUT)}, /* mcasp1_axr3.gpio5_5 AM572x_GPIO2*/
    {MCASP1_AXR4, (M14 | PIN_OUTPUT)}, /* mcasp1_axr4.gpio5_6 AM572x_GPIO1*/
    {MCASP1_AXR5, (M14 | PIN_INPUT_PULLUP)}, /* mcasp1_axr5.gpio5_7 AM572x_WLAN_IRQ*/
    {MCASP1_AXR6, (M14 | PIN_OUTPUT_PULLDOWN)}, /* mcasp1_axr6.gpio5_8 AM572x_WLAN_EN*/

    Properly configured the pin mux,

    ,

    Regards

    Ramachandra.

  • Hi Ramachandra 

    Your emmc is connected to the mmc2 right ?

    then why we checked mmc3_clk?

    Regards
    Diwakar

  • Hi sir,

    Sorry actually i checked mmc2_clk across the point it's not generating clock.

    .

    Thanking you,

    Regards,

    Ram

  • Hi Ramachandra 

    Dump the values of this register CTRL_CORE_PAD_GPMC_A23 and check it is properly configured or not 

    Also is this issue is coming with all the boards or in just one board help check with your HW team as well .

    Regards
    Diwakar

     

  • Hi sir i checked CTRL_CORE_PAD_GPMC_A23 from u-boot

    md 0x4a00349c
    4a00349c: 00060001 00070001 00070001 00070001 ................
    4a0034ac: 00070001 00060001 0006000f 00010101 ................
    4a0034bc: 0006000f 0006000f 0006000f 0006000f ................
    4a0034cc: 0006000f 0006000f 0006000f 000e000f ................
    4a0034dc: 0004000f 000c000f 0004000f 0004000f ................
    4a0034ec: 0004000f 0004000f 0004000f 0004000f ................
    4a0034fc: 0004000f 0004000f 0004000f 0004000f ................
    4a00350c: 0004000f 0004000f 0004000f 0004000f ................
    4a00351c: 0004000f 0004000f 0004000f 0004000f ................
    4a00352c: 0004000f 0004000f 0004000f 0004000f ................
    4a00353c: 0004000f 0004000f 0004000f 0004000f ................
    4a00354c: 0004000f 0004000f 0004000f 0004000f ................
    4a00355c: 0004000f 0004000f 0004000f 0004000f ................
    4a00356c: 0004000f 0004000f 0004000f 0004000f ................
    4a00357c: 0004000f 0004000f 0004000f 0004000f ................
    4a00358c: 0004000f 0004000f 0004000f 0004000f ................

    It's properly configured and i am attaching u-boot mux_data.h , device tree

    {GPMC_A19, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a19.mmc2_dat4 */
    {GPMC_A20, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a20.mmc2_dat5 */
    {GPMC_A21, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a21.mmc2_dat6 */
    {GPMC_A22, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a22.mmc2_dat7 */
    {GPMC_A23, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a23.mmc2_clk */
    {GPMC_A24, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a24.mmc2_dat0 */
    {GPMC_A25, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a25.mmc2_dat1 */
    {GPMC_A26, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a26.mmc2_dat2 */
    {GPMC_A27, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_a27.mmc2_dat3 */
    {GPMC_CS1, (M1 | PIN_INPUT_PULLUP)}, /* gpmc_cs1.mmc2_cmd */

    &mmc1 {
    status = "okay";

    pinctrl-names = "default";
    pinctrl-0 = <&mmc1_pins_default>;

    bus-width = <4>;
    cd-gpios = <&gpio6 27 GPIO_ACTIVE_LOW>; /* gpio 219 */
    no-1-8-v;
    };

    &mmc2 {
    status = "okay";
    vmmc-supply = <&vdd_3v3>;
    pinctrl-names = "default", "hs";
    pinctrl-0 = <&mmc2_pins_default>;
    pinctrl-1 = <&mmc3_pins_hs>;

    bus-width = <8>;
    ti,non-removable;
    cap-mmc-dual-data-rate;
    no-1-8-v;
    max-frequency = <48000000>;
    };
    &mmc3 {
    status = "okay";
    vmmc-supply = <&vdd_3v3>;
    bus-width = <4>;
    pinctrl-names = "default", "hs", "sdr12", "sdr25", "sdr50";
    pinctrl-0 = <&mmc3_pins_default>;
    pinctrl-1 = <&mmc3_pins_hs>;
    pinctrl-2 = <&mmc3_pins_sdr12>;
    pinctrl-3 = <&mmc3_pins_sdr25>;
    pinctrl-4 = <&mmc3_pins_sdr50>;
    cap-power-off-card;
    keep-power-in-suspend;
    ti,non-removable;
    no-1-8-v;
    /* #address-cells = <1>;
    #size-cells = <0>;
    wlcore: wlcore@0 {
    compatible = "ti,wl1837";
    reg = <0>;
    interrupt-parent = <&gpio5>;
    interrupts = <7 IRQ_TYPE_LEVEL_HIGH>;
    };*/
    };

  • Hi Ramachandra

    Can you dump the value of the CM_L3INIT_MMC1_CLKCTRL register This is PRCM register from there the clock is getting generated.

    Regards
    Diwakar

  • Hi sir,

    I checked CM_L3INIT_MMC1_CLKCTRL (Address:0x4A009328 data=0x01040002)

    => md 0x4a009320
    4a009320: 00000000 00000000 01040002 00000000 ................
    4a009330: 01000002 00000000 00000000 00000000 ................
    4a009340: 00040101 00000000 00070000 00000000 ................
    4a009350: 00040001 00000000 00070000 00000000 ................
    4a009360: 00000000 00000000 00000000 00000000 ................
    4a009370: 00000000 00000000 00040001 00000000 ................
    4a009380: 00000000 00000000 00040102 00000000 ................
    4a009390: 00000000 00000000 00000000 00000000 ................
    4a0093a0: 00000000 08000000 00000000 00000000 ................
    4a0093b0: 00070000 00000000 00070000 00000000 ................
    4a0093c0: 00001f03 00000020 00000000 00000000 .... ...........
    4a0093d0: 08000002 00000000 00000000 00000000 ................
    4a0093e0: 00000001 00000000 00000001 00000000 ................
    4a0093f0: 00040101 00000000 00000000 00000000 ................
    4a009400: 00000000 00000000 00000000 00000000 ................
    4a009410: 00000000 00000000 00000000 00000000 ................
    =>
    4a009420: 00000000 00000000 00000000 00000000 ................
    4a009430: 00000000 00000000 00000000 00000000 ................
    4a009440: 00000000 00000000 00000000 00000000 ................
    4a009450: 00000000 00000000 00000000 00000000 ................
    4a009460: 00000000 00000000 00000000 00000000 ................
    4a009470: 00000000 00000000 00000000 00000000 ................
    4a009480: 00000000 00000000 00000000 00000000 ................
    4a009490: 00000000 00000000 00000000 00000000 ................
    4a0094a0: 00000000 00000000 00000000 00000000 ................
    4a0094b0: 00000000 00000000 00000000 00000000 ................
    4a0094c0: 00000000 00000000 00000000 00000000 ................
    4a0094d0: 00000000 00000000 00000000 00000000 ................
    4a0094e0: 00000000 00000000 00000000 00000000 ................
    4a0094f0: 00000000 00000000 00000000 00000000 ................
    4a009500: 00000000 00000000 00000000 00000000 ................
    4a009510: 00000000 00000000 00000000 00000000 ................

    Thanking you,

    Regards,

    Ram.

  • Hi Ramachandra 

    I am also checking with the HW team as well are you facing this issue on all the boards?

    Regards
    Diwakar

  • Hi sir,

    Please gentle reminder 

    Thanking you,

    Regards,

    Ram

  • hi sir,

    we checked beagleboard x15 emmc(MMC2) clock and cmd both are coming while booting and u-boot command prompt (like press mmc dev 1) time both clock and command coming.

    In our custom board both MMC2_cmd and MMC2_clk are getting after u-boot prompt MMC2_cmd signal continuously low  checking mmc dev 1 command also. why the cmd signal continuously?

    Could you give me some suggestions.

    Thanking you,

    Regards,

    Ram.

  • Hi Ram,

    Sorry Unable to understand can you elaborate more?

    Regards
    Diwakar

  • hi sir,

    Power on i probed mmc2_clk & mmc2_cmd both are coming and i stopped u-boot prompt then i checked both clk & cmd signals, But Clock getting now, but cmd signal not coming continuous low signal. when i will give mmc dev 1 command then mmc2_cmd low is there.

    In beagle board i probed mmc2_clk & mmc2_cmd both are getting signals on power & u-boot command time also.

    regards,

    Ram.

  • Hi Ram 

    In the above uboot Logs we could see probe is failing we need to check why probe is failing as probe got failed may be that's why the cmd line is low.can you disable othe MMC and just keep emmc 

    The. Enable command response traces #

    define CONFIG_MMC_TRACE 

    Share the traces 

    Regards

    Diwakar 

     

     

     

  • Hi sir,

    I enable only emmc and i added  #define CONFIG_MMC_TRACE in drivers/mmc/mmc_private.h in uboot. Below data is prompt.

    U-Boot SPL 2019.01-g463d755-dirty (Mar 16 2023 - 15:53:01 +0530)
    DRA752-GP ES2.0
    Trying to boot from MMC1
    no pinctrl state for default mode
    no pinctrl state for default mode
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:8
    ARG 0x000001AA
    MMC_RSP_R1,5,6,7 0x000001AA
    CMD_SEND:55
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000120
    CMD_SEND:41
    ARG 0x40300000
    MMC_RSP_R3,4 0x00FF8000
    CMD_SEND:55
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000120
    CMD_SEND:41
    ARG 0x40300000
    MMC_RSP_R3,4 0xC0FF8000
    CMD_SEND:2
    ARG 0x00000000
    MMC_RSP_R2 0x03534453
    0x44333247
    0x85FDF4B2
    0x4A016CAF

    DUMPING DATA
    000 - 03 53 44 53
    004 - 44 33 32 47
    008 - 85 FD F4 B2
    012 - 4A 01 6C AF
    CMD_SEND:3
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x50480500
    CMD_SEND:9
    ARG 0x50480000
    MMC_RSP_R2 0x400E0032
    0x5B590000
    0xEDDF7F80
    0x0A40006B

    DUMPING DATA
    000 - 40 0E 00 32
    004 - 5B 59 00 00
    008 - ED DF 7F 80
    012 - 0A 40 00 6B
    CMD_SEND:7
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000700
    CMD_SEND:55
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:51
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x00FFFFF1
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:55
    ARG 0x50480000
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x00000002
    MMC_RSP_R1,5,6,7 0x00000920
    CMD_SEND:6
    ARG 0x80FFFFF1
    MMC_RSP_R1,5,6,7 0x00000900
    Loading Environment from FAT... CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x000010BF
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    OK
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000000
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x0001E1B8
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000BBC
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x0001E1B8
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x0001E1BB
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000BBC
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x0001E1BB
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000BC2
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000BC8
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x0001E1BC
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x0001E595
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x00000800
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x000010BE
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000820
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000BBC
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000BC2
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x00000BC8
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x0001E595
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:18
    ARG 0x0001E596
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:12
    ARG 0x00000000
    MMC_RSP_R1b 0x00000900
    CMD_SEND:16
    ARG 0x00000200
    MMC_RSP_R1,5,6,7 0x00000900
    CMD_SEND:17
    ARG 0x0001E6A0
    MMC_RSP_R1,5,6,7 0x00000900


    U-Boot 2019.01-g463d755-dirty (Mar 16 2023 - 15:53:01 +0530)

    CPU : DRA752-GP ES2.0
    Model: TI AM5728 BeagleBoard-X15
    Board: CARAVEL-ENCODER AM572x EVM Camera ModDRAM: 1 GiB
    MMC: OMAP SD/MMC: 0
    Loading Environment from FAT... CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:8
    ARG 0x000001AA
    RET -110
    CMD_SEND:55
    ARG 0x00000000
    RET -110
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:1
    ARG 0x00000000
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0xC0FF8080
    CMD_SEND:2
    ARG 0x00000000
    MMC_RSP_R2 0x70010057
    0x36323730
    0x340107A9
    0x2091C9B5

    DUMPING DATA
    000 - 70 01 00 57
    004 - 36 32 37 30
    008 - 34 01 07 A9
    012 - 20 91 C9 B5
    CMD_SEND:3
    ARG 0x00010000
    MMC_RSP_R1,5,6,7 0x00000500
    CMD_SEND:9
    ARG 0x00010000
    MMC_RSP_R2 0xD04F0132
    0x0F5903FF
    0xFFFFFFEF
    0x8A400061

    DUMPING DATA
    000 - D0 4F 01 32
    004 - 0F 59 03 FF
    008 - FF FF FF EF
    012 - 8A 40 00 61
    CMD_SEND:7
    ARG 0x00010000
    MMC_RSP_R1,5,6,7 0x00000700
    CMD_SEND:8
    ARG 0x00000000
    omap_hsmmc_send_cmd : DMA timeout: No status update
    RET -110
    Loading Environment from MMC... MMC Device 1 not found
    *** Warning - No MMC card found, using default environment

    invalid mmc device
    Net:
    Warning: ethernet@48484000 using MAC address from ROM
    eth0: ethernet@48484000
    Hit any key to stop autoboot: 0
    => mmc dev 0
    CMD_SEND:0
    ARG 0x00000000
    omap_hsmmc_send_cmd: timedout waiting on cmd inhibit to clear
    RET -110
    => mmc dev 1
    MMC Device 1 not found
    no mmc device at slot 1
    => mmc dev 2
    MMC Device 2 not found
    no mmc device at slot 2
    => mmc info
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:8
    ARG 0x000001AA
    RET -110
    CMD_SEND:55
    ARG 0x00000000
    RET -110
    CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:1
    ARG 0x00000000
    MMC_RSP_R3,4 0x00FF8080
    CMD_SEND:1
    ARG 0x40300080
    MMC_RSP_R3,4 0xC0FF8080
    CMD_SEND:2
    ARG 0x00000000
    MMC_RSP_R2 0x70010057
    0x36323730
    0x340107A9
    0x2091C9B5

    DUMPING DATA
    000 - 70 01 00 57
    004 - 36 32 37 30
    008 - 34 01 07 A9
    012 - 20 91 C9 B5
    CMD_SEND:3
    ARG 0x00010000
    MMC_RSP_R1,5,6,7 0x00000500
    CMD_SEND:9
    ARG 0x00010000
    MMC_RSP_R2 0xD04F0132
    0x0F5903FF
    0xFFFFFFEF
    0x8A400061

    DUMPING DATA
    000 - D0 4F 01 32
    004 - 0F 59 03 FF
    008 - FF FF FF EF
    012 - 8A 40 00 61
    CMD_SEND:7
    ARG 0x00010000
    MMC_RSP_R1,5,6,7 0x00000700
    CMD_SEND:8
    ARG 0x00000000
    omap_hsmmc_send_cmd : DMA timeout: No status update
    RET -110
    => mmc list
    OMAP SD/MMC: 0
    =>

  • Hi Ram

    Thanks for providing the traces i could see there is a timeout when you are sending a switch cmd 

    U-Boot 2019.01-g463d755-dirty (Mar 16 2023 - 15:53:01 +0530)

    CPU : DRA752-GP ES2.0
    Model: TI AM5728 BeagleBoard-X15
    Board: CARAVEL-ENCODER AM572x EVM Camera ModDRAM: 1 GiB
    MMC: OMAP SD/MMC: 0
    Loading Environment from FAT... CMD_SEND:0
    ARG 0x00000000
    MMC_RSP_NONE
    CMD_SEND:8
    ARG 0x000001AA
    RET -110
    CMD_SEND:55
    ARG 0x00000000
    RET -110

    I am assuming this one is with your custom board whereas the above one is on the beagle bone.\ right?

    Power on i probed mmc2_clk & mmc2_cmd both are coming and i stopped u-boot prompt then i checked both clk & cmd signals, But Clock getting now, but cmd signal not coming continuous low signal. when i will give mmc dev 1 command then mmc2_cmd low is there.

    In beagle board i probed mmc2_clk & mmc2_cmd both are getting signals on power & u-boot command time also.

    regards,

    Let me know if my understanding is right or not previously, we came to know that clock is getting generated. But now you mentioned clock is ok now just that you are continuously seeing low signal on cmd line.

    Whereas in beagle board both the command and clock signals are coming continuously.

    Help share your schematic so that our HW engineers can review that.

    Regards
    Diwakar

  • Hi sir,

    correct sir only cmd line low coming.

  • Hi Ram 

    Have you tried on other board as well to eliminate any HW issues seems device is not responding to the command?

    Regards
    Diwakar

  • Hi sir,

    I checked other custom boards same issue is there. but when power is on both command and clock signals getting after u-boot prompt no cmd signal continuously low is there.

  • To clarify,

    Are you receiving an MMC2_CLK signal at any point before/after U-boot?

    Are you receiving an MMC2_CMD signal at any point before/after U-boot? Note that CMD will not be constantly toggling, and will have short bursts when a command is issued. 

    Both these signals are continuously low despite being pulled up to 3.3V?

    Regards,

    Marco 

  • Hi Marco,

    we are getting MMC2_CLK continuously before/after U-boot.

    MMC2_CMD signal before U-Boot some pulse we are getting and after U-Boot prompt continuously low signal getting(when we will give commands also).

    Both Signals are not connected to 3.3v(DNI).

    Thanking you.