cancel
Showing results for 
Search instead for 
Did you mean: 

EMMC Device Tree Path Not Found during U-Boot

devinschubert14
Associate II

Hi everyone,

 

I was finally able to get to the kernel and use the shell using the sd card (yay!). However, we want to boot from the emmc (sd card was for dev purposes but we want only emmc) and I am running into an issue. Here is my boot log from booting on emmc after flashing with DFU: 

 

 

NOTICE:  CPU: STM32MP131D Rev.Y
NOTICE:  Model: STM32MP1 LED Controller - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06
INFO:    PMIC version = 0x21
NOTICE:  Reset reason (0x1035):
INFO:      Power-on Reset (rst_por)
INFO:    FCONF: Reading TB_FW firmware configuration file from: 0x2ffe0000
INFO:    FCONF: Reading firmware configuration information for: stm32mp_fuse
INFO:    FCONF: Reading firmware configuration information for: stm32mp_io
INFO:    Using EMMC
INFO:      Instance 2
INFO:    Boot used partition fsbl1
NOTICE:  BL2: v2.10-stm32mp1-r1.0(debug):lts-v2.10.5-dirty(7c229848)
NOTICE:  BL2: Built : 16:19:31, Jun 28 2024
INFO:    BL2: Doing platform setup
INFO:    RAM: DDR3-DDR3L 16bits 533Mhz
INFO:    Memory size = 0x20000000 (512 MB)
INFO:    BL2: Loading image id 1
INFO:    Loading image id=1 at address 0x30006000
INFO:    Image id=1 loaded: 0x30006000 - 0x300061ea
INFO:    FCONF: Reading FW_CONFIG firmware configuration file from: 0x30006000
INFO:    FCONF: Reading firmware configuration information for: mce_config
INFO:    FCONF: Reading firmware configuration information for: dyn_cfg
INFO:    FCONF: Reading firmware configuration information for: stm32mp1_firewall
INFO:    BL2: Loading image id 4
INFO:    Loading image id=4 at address 0xde000000
INFO:    Image id=4 loaded: 0xde000000 - 0xde00001c
INFO:    OPTEE ep=0xde000000
INFO:    OPTEE header info:
INFO:          magic=0x4554504f
INFO:          version=0x2
INFO:          arch=0x0
INFO:          flags=0x0
INFO:          nb_images=0x1
INFO:    BL2: Loading image id 8
INFO:    Loading image id=8 at address 0xde000000
INFO:    Image id=8 loaded: 0xde000000 - 0xde0971f0
INFO:    BL2: Loading image id 2
INFO:    Loading image id=2 at address 0xc0400000
INFO:    Image id=2 loaded: 0xc0400000 - 0xc040e240
INFO:    BL2: Skip loading image id 16
INFO:    BL2: Loading image id 5
INFO:    Loading image id=5 at address 0xc0000000
INFO:    Image id=5 loaded: 0xc0000000 - 0xc0115bd8
NOTICE:  BL2: Booting BL32
INFO:    Entry point address = 0xde000000
INFO:    SPSR = 0x1d3
I/TC: Early console on UART#4
I/TC:
I/TC: Embedded DTB found
I/TC: OP-TEE version: 4.0.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Oct 20 18:29:31 UTC 2023 arm
I/TC: WARNING: This OP-TEE configuration might be insecure!
I/TC: WARNING: Please check https://optee.readthedocs.io/en/latest/architecture/porting_guidelines.html
I/TC: Primary CPU initializing
I/TC: WARNING: All debug accesses are allowed
I/TC: WARNING: apply pinctrl for secure pin D6 that is non-secure
I/TC: WARNING: apply pinctrl for secure pin D8 that is non-secure
I/TC: UART console (non-secure)
I/TC: WARNING: apply pinctrl for secure pin H0 that is non-secure
I/TC: WARNING: apply pinctrl for secure pin H1 that is non-secure
I/TC: Platform stm32mp1: flavor PLATFORM_FLAVOR - DT stm32mp131d-custom-lam131-mx.dts
I/TC: OP-TEE ST profile: secure_and_system_services
I/TC: Primary CPU switching to normal world boot
I/TC: Reserved shared memory is disabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are enabled
stm32_etzpc bus@5c007000: display-controller@5a001000 failed to parse child on bus (-2)
optee optee: OP-TEE: revision 4.0 (2a5b1d12)
serial_stm32 serial@40010000: pinctrl_select_state_full: uclass_get_device_by_phandle_id: err=-19


U-Boot 2023.10-stm32mp-r1 (Oct 02 2023 - 14:39:59 +0000)

CPU: STM32MP131D Rev.Y
Model: STM32MP1 LED Controller - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06
Board: stm32mp1 in trusted mode (st,stm32mp131d-custom-lam131-mx)
DRAM:  Can't find /soc/mmc@58007000 path
initcall sequence c00a4374 failed at call c002318b (err=44240)

 

 

The error is on line 77: 

DRAM:  Can't find /soc/mmc@58007000 path

 

I have attached my U-Boot dts and kernel dts. I am using a custom Yocto dev environment with the meta-st-stm32mp layer included (scarthgap branch, version: openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 ).

2 REPLIES 2
devinschubert14
Associate II

Okay so I believe I found the issue. I had the line in my u-boot.dtsi:

 

	fwu-mdata {
		compatible = "u-boot,fwu-mdata-gpt";
		fwu-mdata-store = <&sdmmc2>;
	};

 

Removing this gets me into the kernel, however now I am unable to initialize the emmc once in the kernel. Here is the error: 

 

Starting kernel ...

I/TC: Reserved shared memory is disabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are enabled
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.6.48 (oe-user@oe-host) (arm-lamos-linux-gnueabi-gcc (GCC) 13.3.0, GNU ld (GNU Binutils) 2.42.0.20240723) #1 PREEMPT Thu Aug 29 15:33:59 UTC 2024
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: STM32MP1 LED Controller - openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06
[    0.000000] Memory policy: Data cache writeback
[    0.000000] OF: reserved mem: 0xdd000000..0xdfffffff (49152 KiB) nomap non-reusable optee@dd000000
[    0.000000] cma: Reserved 64 MiB at 0xd9000000 on node -1
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000c0000000-0x00000000dcffffff]
[    0.000000]   HighMem  [mem 0x00000000dd000000-0x00000000dfffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000c0000000-0x00000000dcffffff]
[    0.000000]   node   0: [mem 0x00000000dd000000-0x00000000dfffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000c0000000-0x00000000dfffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.1
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Kernel command line: root=PARTUUID=491f6117-415d-4f53-88c9-6e0de54deac6 rootwait rw   console=ttySTM0,115200
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130028
[    0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[    0.000000] Memory: 381976K/524288K available (14336K kernel code, 1502K rwdata, 4260K rodata, 1024K init, 229K bss, 76776K reserved, 65536K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 64.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0x1ffffffffffffff max_cycles: 0xec2a6fa00, max_idle_ns: 440795202120 ns
[    0.000002] sched_clock: 57 bits at 64MHz, resolution 15ns, wraps every 2199023255546ns
[    0.000021] Switching to timer-based delay loop, resolution 15ns
[    0.001047] Console: colour dummy device 80x30
[    0.001105] Calibrating delay loop (skipped), value calculated using timer frequency.. 128.00 BogoMIPS (lpj=640000)
[    0.001128] CPU: Testing write buffer coherency: ok
[    0.001201] pid_max: default: 32768 minimum: 301
[    0.001454] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001485] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.005144] RCU Tasks: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.005391] RCU Tasks Trace: Setting shift to 0 and lim to 1 rcu_task_cb_adjust=1.
[    0.005655] Setting up static identity map for 0xc0100000 - 0xc0100060
[    0.005956] rcu: Hierarchical SRCU implementation.
[    0.005970] rcu:     Max phase no-delay instances is 1000.
[    0.008040] devtmpfs: initialized
[    0.028187] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.028621] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.028658] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.032157] pinctrl core: initialized pinctrl subsystem
[    0.035011] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.040390] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.042313] thermal_sys: Registered thermal governor 'step_wise'
[    0.042464] cpuidle: using governor menu
[    0.042830] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.042853] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.043500] Serial: AMBA PL011 UART driver
[    0.047302] stm32-pm-domain pm_domain: domain core-ret-power-domain registered
[    0.047344] stm32-pm-domain pm_domain: subdomain core-power-domain registered
[    0.047357] stm32-pm-domain pm_domain: domains probed
[    0.067029] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[    0.420557] raid6: neonx8   gen()   409 MB/s
[    0.760910] raid6: neonx4   gen()   580 MB/s
[    1.101258] raid6: neonx2   gen()   586 MB/s
[    1.441610] raid6: neonx1   gen()   480 MB/s
[    1.781937] raid6: int32x8  gen()   159 MB/s
[    2.122325] raid6: int32x4  gen()   165 MB/s
[    2.462704] raid6: int32x2  gen()   231 MB/s
[    2.803002] raid6: int32x1  gen()   206 MB/s
[    2.803022] raid6: using algorithm neonx2 gen() 586 MB/s
[    3.143320] raid6: .... xor() 437 MB/s, rmw enabled
[    3.143338] raid6: using neon recovery algorithm
[    3.147613] SCSI subsystem initialized
[    3.148677] usbcore: registered new interface driver usbfs
[    3.148749] usbcore: registered new interface driver hub
[    3.148838] usbcore: registered new device driver usb
[    3.149408] pps_core: LinuxPPS API ver. 1 registered
[    3.149421] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.149458] PTP clock support registered
[    3.149874] EDAC MC: Ver: 3.0.0
[    3.151065] scmi_core: SCMI protocol bus registered
[    3.164414] clocksource: Switched to clocksource arch_sys_counter
[    3.205934] NET: Registered PF_INET protocol family
[    3.206310] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    3.208555] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    3.208614] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    3.208641] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    3.208702] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    3.208793] TCP: Hash tables configured (established 4096 bind 4096)
[    3.208940] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    3.208986] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    3.209355] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    3.210595] RPC: Registered named UNIX socket transport module.
[    3.210621] RPC: Registered udp transport module.
[    3.210628] RPC: Registered tcp transport module.
[    3.210633] RPC: Registered tcp-with-tls transport module.
[    3.210639] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.212005] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    3.214384] Initialise system trusted keyrings
[    3.224974] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    3.225678] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.226356] NFS: Registering the id_resolver key type
[    3.226465] Key type id_resolver registered
[    3.226476] Key type id_legacy registered
[    3.226538] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.226551] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    3.226644] ntfs: driver 2.1.32 [Flags: R/O].
[    3.226696] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    3.227312] fuse: init (API version 7.39)
[    3.228184] NET: Registered PF_ALG protocol family
[    3.228219] xor: measuring software checksum speed
[    3.254425]    arm4regs        :   852 MB/sec
[    3.284425]    8regs           :   554 MB/sec
[    3.314434]    32regs          :   554 MB/sec
[    3.334454]    neon            :   878 MB/sec
[    3.334469] xor: using function: neon (878 MB/sec)
[    3.334493] Key type asymmetric registered
[    3.334502] Asymmetric key parser 'x509' registered
[    3.334699] bounce: pool size: 64 pages
[    3.334816] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    3.334833] io scheduler mq-deadline registered
[    3.334843] io scheduler kyber registered
[    3.334923] io scheduler bfq registered
[    3.335294] /soc/interrupt-controller@5000d000: bank0
[    3.335339] /soc/interrupt-controller@5000d000: bank1
[    3.335358] /soc/interrupt-controller@5000d000: bank2
[    3.336358] Registering stm32-etzpc firewall controller
[    3.358803] STM32 USART driver initialized
[    3.405006] brd: module loaded
[    3.435284] loop: module loaded
[    3.456018] CAN device driver interface
[    3.457705] pegasus: Pegasus/Pegasus II USB Ethernet driver
[    3.457807] usbcore: registered new interface driver pegasus
[    3.457886] usbcore: registered new interface driver asix
[    3.457951] usbcore: registered new interface driver ax88179_178a
[    3.458011] usbcore: registered new interface driver cdc_ether
[    3.458102] usbcore: registered new interface driver smsc75xx
[    3.458166] usbcore: registered new interface driver smsc95xx
[    3.458227] usbcore: registered new interface driver net1080
[    3.458288] usbcore: registered new interface driver cdc_subset
[    3.458362] usbcore: registered new interface driver zaurus
[    3.458480] usbcore: registered new interface driver cdc_ncm
[    3.459943] usbcore: registered new interface driver usb-storage
[    3.460213] usbcore: registered new device driver onboard-usb-hub
[    3.465912] i2c_dev: i2c /dev entries driver
[    3.474949] arm_smc_wdt watchdog: Watchdog registered (timeout=32 sec, nowayout=0)
[    3.476157] stm32-cpufreq stm32-cpufreq: OPP-v2 not supported
[    3.477417] sdhci: Secure Digital Host Controller Interface driver
[    3.477435] sdhci: Copyright(c) Pierre Ossman
[    3.477442] Synopsys Designware Multimedia Card Interface Driver
[    3.477854] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.478483] ledtrig-cpu: registered to indicate activity on CPUs
[    3.479454] usbcore: registered new interface driver usbhid
[    3.479473] usbhid: USB HID core driver
[    3.483469] optee: probing for conduit method.
[    3.483512] optee: revision 4.0 (2a5b1d12)
[    3.525899] optee: Asynchronous notifications enabled
[    3.525933] optee: dynamic shared memory is enabled
[    3.528166] random: crng init done
[    3.528995] optee: initialized driver
[    3.530996] Initializing XFRM netlink socket
[    3.531123] NET: Registered PF_PACKET protocol family
[    3.531154] can: controller area network core
[    3.531242] NET: Registered PF_CAN protocol family
[    3.531258] can: raw protocol
[    3.531272] can: broadcast manager protocol
[    3.531289] can: netlink gateway - max_hops=1
[    3.534939] Key type dns_resolver registered
[    3.535229] ThumbEE CPU extension supported.
[    3.535258] Registering SWP/SWPB emulation handler
[    3.585505] registered taskstats version 1
[    3.585704] Loading compiled-in X.509 certificates
[    3.625663] Btrfs loaded, zoned=no, fsverity=no
[    3.633707] scmi_protocol scmi_dev.1: Enabled polling mode TX channel - prot_id:16
[    3.634072] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[    3.634236] arm-scmi firmware:scmi: SCMI Protocol v2.0 'ST:' Firmware version 0x0
[    3.665723] scmi-regulator scmi_dev.5: Regulator reg11 registered for domain [0]
[    3.666260] scmi-regulator scmi_dev.5: Regulator reg18 registered for domain [1]
[    3.666757] scmi-regulator scmi_dev.5: Regulator usb33 registered for domain [2]
[    3.667533] scmi-regulator scmi_dev.5: Regulator vddcpu registered for domain [6]
[    3.668247] scmi-regulator scmi_dev.5: Regulator vdd registered for domain [8]
[    3.668998] scmi-regulator scmi_dev.5: Regulator vddcore registered for domain [9]
[    3.669741] scmi-regulator scmi_dev.5: Regulator vdd_adc registered for domain [10]
[    3.670254] scmi-regulator scmi_dev.5: Regulator vdd_usb registered for domain [13]
[    3.670279] scmi-regulator scmi_dev.5: Failure to get voltage domain 14
[    3.671012] scmi-regulator scmi_dev.5: Regulator v1v8_periph registered for domain [15]
[    3.692091] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOA bank added
[    3.694862] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOB bank added
[    3.695622] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOC bank added
[    3.696416] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOD bank added
[    3.704900] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOE bank added
[    3.705703] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOF bank added
[    3.706458] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOG bank added
[    3.707208] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOH bank added
[    3.707970] stm32mp135-pinctrl soc:pinctrl@50002000: GPIOI bank added
[    3.708062] stm32mp135-pinctrl soc:pinctrl@50002000: Pinctrl STM32 initialized
[    3.711222] stm32-dma 48000000.dma-controller: STM32 DMA driver registered
[    3.724481] stm32-dma 48001000.dma-controller: STM32 DMA driver registered
[    3.727684] stm32-mdma 58000000.dma-controller: STM32 MDMA driver registered
[    3.731006] stm32-dwmac 5800a000.ethernet: IRQ eth_lpi not found
[    3.731655] stm32-dwmac 5800a000.ethernet: PTP uses main clock
[    3.732650] stm32-dwmac 5800a000.ethernet: User ID: 0x12, Synopsys ID: 0x42
[    3.732686] stm32-dwmac 5800a000.ethernet:   DWMAC4/5
[    3.732699] stm32-dwmac 5800a000.ethernet: DMA HW capability register supported
[    3.732706] stm32-dwmac 5800a000.ethernet: RX Checksum Offload Engine supported
[    3.732713] stm32-dwmac 5800a000.ethernet: TX Checksum insertion supported
[    3.732719] stm32-dwmac 5800a000.ethernet: Wake-Up On Lan supported
[    3.732836] stm32-dwmac 5800a000.ethernet: TSO supported
[    3.732847] stm32-dwmac 5800a000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    3.732866] stm32-dwmac 5800a000.ethernet: device MAC address a6:b1:2c:8c:60:91
[    3.732880] stm32-dwmac 5800a000.ethernet: Enabled L3L4 Flow TC (entries=2)
[    3.732890] stm32-dwmac 5800a000.ethernet: Enabled RFS Flow TC (entries=10)
[    3.732900] stm32-dwmac 5800a000.ethernet: TSO feature enabled
[    3.732909] stm32-dwmac 5800a000.ethernet: Using 32/32 bits DMA host/device width
[    3.848840] stm32_rtc 5c004000.rtc: registered as rtc0
[    3.848891] stm32_rtc 5c004000.rtc: setting system clock to 2000-01-01T00:00:10 UTC (946684810)
[    3.849296] stm32_rtc 5c004000.rtc: LSCO clock registration failed: -34
[    3.849315] stm32_rtc 5c004000.rtc: Date/Time must be initialized
[    3.849322] stm32_rtc 5c004000.rtc: registered rev:3.3
[    3.851261] stm_thermal 50028000.thermal: stm_thermal_probe: Driver initialized successfully
[    3.852907] stm32-usart 40010000.serial: interrupt mode for rx (no dma)
[    3.852929] stm32-usart 40010000.serial: interrupt mode for tx (no dma)
[    3.857639] mmci-pl18x 58005000.mmc: mmc0: PL180 manf 53 rev2 at 0x58005000 irq 48,0 (pio)
[    3.858510] mmci-pl18x 58007000.mmc: mmc1: PL180 manf 53 rev2 at 0x58007000 irq 49,0 (pio)
[    3.859421] 40010000.serial: ttySTM0 at MMIO 0x40010000 (irq = 47, base_baud = 4000000) is a stm32-usart
[    3.859518] printk: console [ttySTM0] enabled
[    5.315304] clk: Disabling unused clocks
[    5.320615] Waiting for root device PARTUUID=491f6117-415d-4f53-88c9-6e0de54deac6...
[    5.352314] mmc0: new high speed SDXC card at address 59b4
[    5.360058] mmcblk0: mmc0:59b4 SDU1  117 GiB
[    5.374369]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11
[    5.412350] mmc1: error -84 whilst initialising MMC card
[    5.557022] mmc1: error -84 whilst initialising MMC card
[    5.716451] mmc1: error -84 whilst initialising MMC card
[    5.894671] mmc1: error -84 whilst initialising MMC card
[    5.899883] mmc1: Failed to initialize a non-removable card

 

 

The message I am confused about: 

[    6.057226] mmc1: error -84 whilst initialising MMC card
[    6.062453] mmc1: Failed to initialize a non-removable card

I am able to flash and see the emmc in u-boot shell.

STM32MP> mmc info
Device: STM32 SD/MMC
Manufacturer ID: 11
OEM: 0
Name: 004GA1
Bus Speed: 52000000
Mode: MMC High Speed (52MHz)
Rd Block Len: 512
MMC version 5.0
High Capacity: Yes
Capacity: 3.7 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 4 MiB
User Capacity: 3.7 GiB WRREL
Boot Capacity: 2 MiB ENH
RPMB Capacity: 512 KiB ENH
Boot area 0 is not write protected
Boot area 1 is not write protected

 Thank you for any help. 

Hmm so in trying to debug the issue, I added the following kernel configs:

CONFIG_MMC_DEBUG=y
CONFIG_MMC_TEST=y

This made my emmc start to work, and I have no idea why. If anyone has any insight, that would be greatly appreciated. Thank you.