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.

AM6548: MMC1 not detected in kernel boot SDK7

Part Number: AM6548
Other Parts Discussed in Thread: PCA9554

I have a custom board based off of the TI Industrial EVM board.

After updating to SDK7, the custom boot gets stuck at "waiting for root device..."

it looks to me that the kernel hasn't detected the SD Card yet.

The same SD card works on the evm board. I can't tell if I have a HW or SW problem.

Some posts on the forum mentions having the right power, the SD card on our board is always powered, so i dont think that's the problem.

I dont know what the kernel is missing to detected the SD card.

I have attached the uart output.

SDK7Ci4noPatch.txt
U-Boot SPL 2020.01-gf9b0d030d3 (Aug 10 2020 - 17:47:39 +0000)
SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
Reading on-board EEPROM at 0x50 failed -1
Trying to boot from MMC2
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.3():07.00.00.005-dirty
NOTICE:  BL31: Built : 17:03:45, Aug 10 2020

U-Boot SPL 2020.01-gf9b0d030d3 (Aug 10 2020 - 17:11:07 +0000)
SYSFW ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
Reading on-board EEPROM at 0x50 failed -1
i2c_write: error waiting for data ACK (status=0x116)
Error reading output register
Trying to boot from MMC2


U-Boot 2020.01-gf9b0d030d3 (Aug 10 2020 - 17:11:07 +0000)

SoC:   AM65X SR1.0
Model: Texas Instruments AM654 Base Board
Reading on-board EEPROM at 0x50 failed -1
Board: AM6-COMPROCEVM rev E3
DRAM:  4 GiB
MMC:   sdhci@4f80000: 0, sdhci@04FA0000: 1
Loading Environment from MMC... OK
In:    serial
Out:   serial
Err:   serial
Reading on-board EEPROM at 0x50 failed -1
i2c_write: error waiting for data ACK (status=0x116)
Error reading output register
Net:
Warning: cpsw_nuss@046000000 using MAC address from ROM
eth0: cpsw_nuss@046000000
Warning: pruss2_eth (eth1) using random MAC address - 62:23:54:3b:61:68
, eth1: pruss2_eth
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1 is current device
SD/MMC found on device 1
1011 bytes read in 5 ms (197.3 KiB/s)
Loaded env from uEnv.txt
Importing environment from mmc1 ...
Running uenvcmd ...
16654344 bytes read in 1381 ms (11.5 MiB/s)
67584 bytes read in 11 ms (5.9 MiB/s)
## Flattened Device Tree blob at 82000000
   Booting using the fdt blob at 0x82000000
   Loading Device Tree to 00000000fddb1000, end 00000000fdec4fff ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.40-g66cf445b76 (oe-user@oe-host) (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #1 SMP PREEMPT Mon Aug 10 16:54:04 UTC 2020
[    0.000000] Machine model: Texas Instruments AM654 Base Board
[    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
[    0.000000] printk: bootconsole [ns16550a0] enabled
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a0000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a0100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a0100000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1000000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node r5f-dma-memory@a1000000, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x00000000a1100000, size 15 MiB
[    0.000000] OF: reserved mem: initialized node r5f-memory@a1100000, compatible id shared-dma-pool
[    0.000000] cma: Reserved 512 MiB at 0x00000000c0000000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 2 pages/cpu s48408 r8192 d74472 u131072
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 55976
[    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 mtdparts=47040000.spi.0:512k(ospi.tiboot3),2m(ospi.tispl),4m(ospi.u-boot),128k(ospi.env),128k(ospi.env.backup),1m(ospi.sysfw),-@8m(ospi.rootfs) root=PARTUUID=6a22b581-02 rw rootfstype=ext4 rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 6, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 5, 2097152 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: mapped [mem 0xbbff0000-0xbfff0000] (64MB)
[    0.000000] Memory: 3515712K/3586048K available (9534K kernel code, 776K rwdata, 3840K rodata, 1728K init, 695K bss, 18446744073709097664K reserved, 524288K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 960 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
[    0.000000] ITS [mem 0x01820000-0x0182ffff]
[    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
[    0.000000] ITS@0x0000000001820000: allocated 1048576 Devices @8c0800000 (flat, esz 8, psz 64K, shr 0)
[    0.000000] ITS: using cache flushing for cmd queue
[    0.000000] GICv3: using LPI property table @0x00000008c00d0000
[    0.000000] GIC: using cache flushing for LPI property table
[    0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000008c00e0000
[    0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x438 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[    0.000006] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[    0.008629] Console: colour dummy device 80x25
[    0.013226] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[    0.023920] pid_max: default: 32768 minimum: 301
[    0.028770] LSM: Security Framework initializing
[    0.033583] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
[    0.041176] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes, linear)
[    0.073326] ASID allocator initialised with 32768 entries
[    0.086891] rcu: Hierarchical SRCU implementation.
[    0.099959] Platform MSI: gic-its@1820000 domain created
[    0.105659] PCI/MSI: /interconnect@100000/interrupt-controller@1800000/gic-its@1820000 domain created
[    0.123137] smp: Bringing up secondary CPUs ...
[    0.160343] Detected VIPT I-cache on CPU1
[    0.160380] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
[    0.160395] GICv3: CPU1: using allocated LPI pending table @0x00000008c00f0000
[    0.160444] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.192481] Detected VIPT I-cache on CPU2
[    0.192519] GICv3: CPU2: found redistributor 100 region 0:0x00000000018c0000
[    0.192534] GICv3: CPU2: using allocated LPI pending table @0x00000008c0100000
[    0.192583] CPU2: Booted secondary processor 0x0000000100 [0x410fd034]
[    0.224483] Detected VIPT I-cache on CPU3
[    0.224508] GICv3: CPU3: found redistributor 101 region 0:0x00000000018e0000
[    0.224520] GICv3: CPU3: using allocated LPI pending table @0x00000008c0110000
[    0.224553] CPU3: Booted secondary processor 0x0000000101 [0x410fd034]
[    0.224688] smp: Brought up 1 node, 4 CPUs
[    0.304863] SMP: Total of 4 processors activated.
[    0.309682] CPU features: detected: 32-bit EL0 Support
[    0.314965] CPU features: detected: CRC32 instructions
[    0.331708] CPU: All CPU(s) started at EL2
[    0.335945] alternatives: patching kernel code
[    0.341961] devtmpfs: initialized
[    0.355472] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.365469] futex hash table entries: 1024 (order: 0, 65536 bytes, linear)
[    0.374235] pinctrl core: initialized pinctrl subsystem
[    0.380597] NET: Registered protocol family 16
[    0.392305] DMA: preallocated 256 KiB pool for atomic allocations
[    0.399428] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.428793] HugeTLB registered 16.0 GiB page size, pre-allocated 0 pages
[    0.435680] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
[    0.442464] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.454175] cryptd: max_cpu_qlen set to 1000
[    0.467798] iommu: Default domain type: Translated
[    0.473193] SCSI subsystem initialized
[    0.477660] mc: Linux media interface: v0.10
[    0.482066] videodev: Linux video capture interface: v2.00
[    0.487712] pps_core: LinuxPPS API ver. 1 registered
[    0.492795] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.502158] PTP clock support registered
[    0.506198] EDAC MC: Ver: 3.0.0
[    0.510576] FPGA manager framework
[    0.514143] Advanced Linux Sound Architecture Driver Initialized.
[    0.521374] clocksource: Switched to clocksource arch_sys_counter
[    0.527840] VFS: Disk quotas dquot_6.6.0
[    0.531969] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
[    0.545674] thermal_sys: Registered thermal governor 'step_wise'
[    0.545680] thermal_sys: Registered thermal governor 'power_allocator'
[    0.552432] NET: Registered protocol family 2
[    0.564145] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes, linear)
[    0.573009] TCP established hash table entries: 32768 (order: 2, 262144 bytes, linear)
[    0.581448] TCP bind hash table entries: 32768 (order: 3, 524288 bytes, linear)
[    0.589529] TCP: Hash tables configured (established 32768 bind 32768)
[    0.596367] UDP hash table entries: 2048 (order: 0, 65536 bytes, linear)
[    0.603346] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes, linear)
[    0.610947] NET: Registered protocol family 1
[    0.616135] RPC: Registered named UNIX socket transport module.
[    0.622217] RPC: Registered udp transport module.
[    0.627035] RPC: Registered tcp transport module.
[    0.631850] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.638452] PCI: CLS 0 bytes, default 64
[    0.643558] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.661834] Initialise system trusted keyrings
[    0.666592] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.679998] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.686688] NFS: Registering the id_resolver key type
[    0.691968] Key type id_resolver registered
[    0.696254] Key type id_legacy registered
[    0.700369] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.707487] 9p: Installing v9fs 9p2000 file system support
[    0.732269] Key type asymmetric registered
[    0.736505] Asymmetric key parser 'x509' registered
[    0.741591] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    0.749167] io scheduler mq-deadline registered
[    0.753807] io scheduler kyber registered
[    0.760688] pinctrl-single 4301c000.pinmux: 70 pins, size 280
[    0.767170] pinctrl-single 11c000.pinmux: 185 pins, size 740
[    0.773115] pinctrl-single 11c2e8.pinmux: 9 pins, size 36
[    0.779856] pinctrl-single a40000.timesync_router: 512 pins, size 2048
[    0.792457] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
[    0.798803] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
[    0.809473] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.833206] brd: module loaded
[    0.844737] loop: module loaded
[    0.851852] libphy: Fixed MDIO Bus: probed
[    0.856633] tun: Universal TUN/TAP device driver, 1.6
[    0.862577] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.870601] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.876711] sky2: driver version 1.30
[    0.881757] VFIO - User Level meta-driver version: 0.3
[    0.887940] i2c /dev entries driver
[    0.892795] sdhci: Secure Digital Host Controller Interface driver
[    0.899130] sdhci: Copyright(c) Pierre Ossman
[    0.904127] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.911181] ledtrig-cpu: registered to indicate activity on CPUs
[    0.917449] ti-sci interconnect@100000:interconnect@28380000:interconnect@42040000:dmsc: invalid resource
[    0.928847] optee: probing for conduit method from DT.
[    0.934156] optee: revision 3.8 (199fca17)
[    0.934888] optee: initialized driver
[    0.944608] NET: Registered protocol family 17
[    0.949415] 9pnet: Installing 9P2000 support
[    0.953865] Key type dns_resolver registered
[    0.958656] registered taskstats version 1
[    0.962874] Loading compiled-in X.509 certificates
[    0.977048] k3-ringacc 2b800000.ringacc: Failed to get MSI domain
[    0.983546] k3-ringacc 3c000000.ringacc: Failed to get MSI domain
[    0.995286] ti-sci interconnect@100000:interconnect@28380000:interconnect@42040000:dmsc: invalid resource
[    1.005301] ti-sci interconnect@100000:interconnect@28380000:interconnect@42040000:dmsc: ABI: 3.0 (firmware rev 0x0014 '20.04.1-v2020.04a (Terrific Lla')
[    1.055569] omap_i2c 42120000.i2c: bus 0 rev0.12 at 400 kHz
[    1.061999] omap_i2c 40b00000.i2c: bus 1 rev0.12 at 100 kHz
[    1.068493] pca953x 2-0021: 2-0021 supply vcc not found, using dummy regulator
[    1.097678] random: fast init done
[    1.101579] omap_i2c 2000000.i2c: bus 2 rev0.12 at 400 kHz
[    1.108098] omap_i2c 2010000.i2c: bus 3 rev0.12 at 400 kHz
[    1.114408] omap_i2c 2020000.i2c: bus 4 rev0.12 at 400 kHz
[    1.120668] omap_i2c 2030000.i2c: bus 5 rev0.12 at 100 kHz
[    1.127259] ti-sci-intr interconnect@100000:interconnect@28380000:interconnect@42040000:interrupt-controller2: Interrupt Router 156 domain created
[    1.140912] ti-sci-intr interconnect@100000:interrupt-controller0: Interrupt Router 100 domain created
[    1.150636] ti-sci-intr interconnect@100000:navss@30800000:interrupt-controller1: Interrupt Router 182 domain created
[    1.161827] ti-sci-inta 33d00000.interrupt-controller: Interrupt Aggregator domain 179 created
[    1.178294] k3-ringacc 2b800000.ringacc: Ring Accelerator probed rings:286, gp-rings[96,160] sci-dev-id:195
[    1.188285] k3-ringacc 2b800000.ringacc: dma-ring-reset-quirk: enabled
[    1.194973] k3-ringacc 2b800000.ringacc: RA Proxy rev. 66344100, num_proxies:64
[    1.216075] k3-ringacc 3c000000.ringacc: Ring Accelerator probed rings:818, gp-rings[304,464] sci-dev-id:187
[    1.226190] k3-ringacc 3c000000.ringacc: dma-ring-reset-quirk: enabled
[    1.232882] k3-ringacc 3c000000.ringacc: RA Proxy rev. 66344100, num_proxies:64
[    1.240979] omap8250 40a00000.serial: PM domain pd:149 will not be powered off
[    1.248768] 40a00000.serial: ttyS1 at MMIO 0x40a00000 (irq = 8, base_baud = 6000000) is a 8250
[    1.258580] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 17, base_baud = 3000000) is a 8250
[    1.267359] printk: console [ttyS2] enabled
[    1.267359] printk: console [ttyS2] enabled
[    1.275813] printk: bootconsole [ns16550a0] disabled
[    1.275813] printk: bootconsole [ns16550a0] disabled
[    1.286652] 2810000.serial: ttyS3 at MMIO 0x2810000 (irq = 18, base_baud = 3000000) is a 8250
[    1.295961] 2820000.serial: ttyS4 at MMIO 0x2820000 (irq = 19, base_baud = 3000000) is a 8250
[    1.306375] cadence-qspi 47040000.spi: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    1.314221] cadence-qspi 47040000.spi: Cadence QSPI NOR probe failed -2
[    1.321348] cadence-qspi: probe of 47040000.spi failed with error -2
[    1.373414] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    1.381086] libphy: 46000f00.mdio: probed
[    1.386553] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
[    1.394859] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA07100, cpsw version 0x6BA80100 Ports: 2
[    1.406395] am65-cpsw-nuss 46000000.ethernet: Failed to request tx dma channel -517
[    1.416017] am65-cpts 310d0000.cpts: CPTS ver 0x4e8a2109, freq:200000000, add_val:4 pps:0
[    1.424723] thermal thermal_zone1: failed to read out thermal zone (-22)
[    1.432293] mmc0: CQHCI version 5.10
[    1.471046] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
[    1.491558] pca953x 0-0039: 0-0039 supply vcc not found, using dummy regulator
[    1.521436] pca953x 0-0039: failed writing register
[    1.526483] pca953x: probe of 0-0039 failed with error -121
[    1.532695] omap-mailbox 31f80000.mailbox: omap mailbox rev 0x66fc5900
[    1.539638] omap-mailbox 31f81000.mailbox: omap mailbox rev 0x66fc5900
[    1.550309] ti-udma 285c0000.dma-controller: Channels: 96 (tchan: 48, rchan: 48, gp-rflow: 48)
[    1.567234] mmc0: Command Queue Engine enabled
[    1.571724] mmc0: new HS200 MMC card at address 0001
[    1.583859] ti-udma 31150000.dma-controller: Channels: 267 (tchan: 119, rchan: 148, gp-rflow: 150)
[    1.593705] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
[    1.598534] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
[    1.617734] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
[    1.623936] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (240:0)
[    1.640324] spi-nor spi7.0: unrecognized JEDEC id bytes: 00 00 00 00 00 00
[    1.647271] spi-nor: probe of spi7.0 failed with error -2
[    1.693397] davinci_mdio 46000f00.mdio: davinci mdio revision 9.7, bus freq 1000000
[    1.701062] libphy: 46000f00.mdio: probed
[    1.706495] davinci_mdio 46000f00.mdio: phy[0]: device 46000f00.mdio:00, driver TI DP83867
[    1.714806] am65-cpsw-nuss 46000000.ethernet: initializing am65 cpsw nuss version 0x6BA07100, cpsw version 0x6BA80100 Ports: 2
[    1.727520] am65-cpsw-nuss 46000000.ethernet: set new flow-id-base 48
[    1.735443] pps pps0: new PPS source ptp1
[    1.739779] am65-cpsw-nuss 46000000.ethernet: CPTS ver 0x4e8a2109, freq:200000000, add_val:4 pps:1
[    1.748745] am65-cpsw-nuss 46000000.ethernet: initialized cpsw ale version 57.4
[    1.756052] am65-cpsw-nuss 46000000.ethernet: ALE Table size 64
[    1.766634] debugfs: Directory 'pd:121' with parent 'pm_genpd' already present!
[    1.774004] debugfs: Directory 'pd:120' with parent 'pm_genpd' already present!
[    1.783673] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.791138] hctosys: unable to open rtc device (rtc0)
[    1.806922] ALSA device list:
[    1.809903]   No soundcards found.
[    1.813806] Waiting for root device PARTUUID=6a22b581-02...

BR.

SC