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: USB MSC boot fails

Part Number: AM6548

Our custom board will not have SDCard but use eMMC for file storage.  I need a way to initally boot to linux so I can partition and format the eMMC since u-boot doesn't support this.  USB MSC boot would be ideal in our case, but am unable to get to u-boot prompt.

I'm following instructions similar  to: https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM65X/latest/exports/docs/linux/Foundational_Components/U-Boot/UG-DFU.html

I'm building u-boot from the TI SDK 08_00_00_02 using supplied  configs/am65x_evm_r5_usbmsc_defconfig for R5 core.  The configs/am65x_evm_a53_defconfig has proper support for USB boot from storage device.

I set AM65 EVM bootstrap SW3[4:1]=b1000 (USB boot) SW2[1]=b1 (MSC Mode).

tibooot3.bin, sysfw.itb, tispl.bin, u-boot.img are copied to FAT formatted USB Mass Storage Device (ID 0951:168a Kingston Technology DataTraveler Micro).  USB storage also has a second partition with linux.

After powering on with USB Storage Device  connected to USB0 (J13 on PCIE daughterboard), I  see the following on the R5 serial console:

Bus usb@10000: Register 2001040 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus usb@10000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Then the A53 core serial console shows:

U-Boot SPL 2021.01-08231-g563e4c8613-dirty (Nov 23 2021 - 21:07:53 +0100)
SYSFW ABI: 3.1 (firmware rev 0x0015 '21.5.0--v2021.05 (Terrific Llam')
Trying to boot from USB
       scanning usb for storage devices... 1 Storage Device(s) found
WARN halted endpoint, queueing URB anyway.
Unexpected XHCI event TRB, skipping... (41c72530 00000000 13000000 01008400)
BUG at drivers/usb/host/xhci-ring.c:500/abort_td()!
BUG!
resetting ...

This  R5 and A53 console output repeats due to reset.

 I did some printf debugging, on A53 core, the call to file_fat_read() in common/spl/spl_fat.c attempting to read tispl.bin from partition 1.  Interesting is that the R5 SPL code is previously successful reading sysfw.itb.

Can you help me boot from MSC.