SK-AM64B: Issue with EMMC init on DFU boot

Part Number: SK-AM64B

Tool/software:

Hi Team,

SDK version : ti-processor-sdk-linux-am64xx-evm-10.00.07.04

We have done some rework in SK AM64B board to connect EMMC externally over MMC1 interface.

After that we have tried to flash images on EMMC over USB DFU. We can succesfully boot over USB DFU but after that we are seeing issue to initialize EMMC as shows below:

U-Boot SPL 2024.04-dirty (Sep 28 2024 - 17:29:44 +0530)
Resetting on cold boot to workaround ErrataID:i2331
Please resend tiboot3.bin in case of UART/DFU boot
resetting ...

U-Boot SPL 2024.04-dirty (Sep 28 2024 - 17:29:44 +0530)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
EEPROM not available at 0x50, trying to read at 0x51
SPL initial stack usage: 13392 bytes
Trying to boot from DFU
##################################################DOWNLOAD ... OK
Ctrl+C to exit ...
Authentication passed
Authentication passed
Loading Environment from nowhere... OK
init_env from device 10 not supported!
Authentication passed
Authentication passed
Starting ATF on ARM64 core...

NOTICE:  BL31: v2.10.0(release):v2.10.0-367-g00f1ec6b87-dirty
NOTICE:  BL31: Built : 16:09:05, Feb  9 2024
I/TC: 
I/TC: OP-TEE version: 4.2.0-dev (gcc version 13.3.0 (GCC)) #1 Fri Apr 12 09:51:21 UTC 2024 aarch64
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: GIC redistributor base address not provided
I/TC: Assuming default GIC group status and modifier
I/TC: SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
I/TC: HUK Initialized
I/TC: Activated SA2UL device
I/TC: Enabled firewalls for SA2UL TRNG device
I/TC: SA2UL TRNG initialized
I/TC: SA2UL Drivers initialized
I/TC: Primary CPU switching to normal world boot

U-Boot SPL 2024.04-dirty (Sep 28 2024 - 17:29:57 +0530)
SYSFW ABI: 4.0 (firmware rev 0x000a '10.0.8--v10.00.08 (Fiery Fox)')
Trying to boot from DFU
######DOWNLOAD ... OK
Ctrl+C to exit ...
Authentication passed
Authentication passed


U-Boot 2024.04-dirty (Sep 28 2024 - 17:29:57 +0530)

SoC:   AM64X SR2.0 HS-FS
Model: Texas Instruments AM642 SK
Board: AM64B-SKEVM rev A
DRAM:  2 GiB
Core:  89 devices, 31 uclasses, devicetree: separate
NAND:  0 MiB
MMC:   mmc@fa00000: 1
Loading Environment from nowhere... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Failed to probe prueth driver
Net:   eth0: ethernet@8000000port@1, eth1: ethernet@8000000port@2
Hit any key to stop autoboot:  0 
#DOWNLOAD ... OK
Ctrl+C to exit ...
## Info: input data size = 148 = 0x94
MMC: no card present
Couldn't init MMC device.
DFU entities configuration failed!
(partition table does not match dfu_alt_info?)
dfu - Device Firmware Upgrade

Usage:
dfu <USB_controller> [<interface> <dev>] [list]
  - device firmware upgrade via <USB_controller>
    on device <dev>, attached to interface
    <interface>
    [list] - list available alt settings

=> 

Foe EMMC on mmc1 interface to support we have done following changes :

1 update DFU flash utility :
DFU_flash/src/parse.py +20
updated FLASH_MEDIA.EMMC : 'dfu 0 mmc 0' to FLASH_MEDIA.EMMC : 'dfu 0 mmc 1'


Can you please provide what other changes are required for the same.