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.

AM62A7: Booting from USB0 using Pen drive linux

Part Number: AM62A7

Tool/software:

Hello,

My device is booting successfully from SD card and eMMC.

Now i have to boot from USB0 in my custome board AM62A7. I am trying to boot from USB0 msc.

USB mouse is working fine while successfully booted from SD card.

I have made USB bootable and flashed image in USB like same as did in SD card (showing boot partion (BOOT and ROOTf )).

I have made changes USB as a host also.

But when i put board in USB boot mode start boot from USB it is showing "SPL: failed to boot from all boot devices"

I am using YOCTO build envirenment.

If i am trying to compile u-boot with "MACHINE=am62axx-evm bitbake -f -c compile u-boot am62ax_evm_r5_defconfig am62ax_evm_r5_usbmsc_defconfig"command it is showing below error.

Can you please support me how to boot from USB any mode DFU or MSC.

thanks 

Pankaj Verma 

  • Hi,

    The assigned expert is currently out of office for two days. Please expect some delay in the response.

    Regards,
    Johnson
  • Hello Jhon,

    I am waiting for response.

    Still facing problem.

    Thanks

    Pankaj Verma

  • If i am trying to compile u-boot with "MACHINE=am62axx-evm bitbake -f -c compile u-boot am62ax_evm_r5_defconfig am62ax_evm_r5_usbmsc_defconfig"command it is showing below error.

    I know little about Yocto, but I don't think this command is correct in passing the U-Boot configs.

    Can you please try to build U-Boot from the standalone SDK installation to see if you can use USB MSC boot?

    Please use the following patch in the SDK to enable USB MSC in U-Boot config.

    --- Rules.make.orig     2025-09-26 11:28:25.194666771 -0500
    +++ Rules.make  2025-09-26 11:27:41.579928424 -0500
    @@ -11,7 +11,7 @@
     UBOOT_MACHINE=am62ax_evm_a53_defconfig
     
     # Add CROSS_COMPILE and UBOOT_MACHINE for the R5
    -UBOOT_MACHINE_R5=am62ax_evm_r5_defconfig
    +UBOOT_MACHINE_R5=am62ax_evm_r5_defconfig am62x_r5_usbmsc.config
     
     KERNEL_DEVICETREE_PREFIX=ti/k3-am62a7|ti/k3-fpdlink|ti/k3-am62x-sk|ti/k3-v3link

  • Hi Liu,

    I did not find Rules.make file in my yocto project. And also where i can add these changes,

    Please support me how to do and if possible consern with yocto expert so i will boot my board with USB. 

    Also please clarify me that as we have booted SD card and board is booting with sd card properly.

    But for pendrive also we need to follow same steps. Is it correct for making pen drive bootable like SD card? 

    Thanks 

    Pankaj Verma

  • I did not find Rules.make file in my yocto project. And also where i can add these changes,

    Rules.make is a file in the Processor SDK, it is not part of Yocto.

    Please support me how to do and if possible consern with yocto expert so i will boot my board with USB. 

    Please follow Andreas' instruction in the link below to add am62ax_evm_r5_defconfig am62x_r5_usbmsc.config to the U-Boot build process.

     PROCESSOR-SDK-AM335X: How to change the config of u-boot in Yocto 

    But for pendrive also we need to follow same steps. Is it correct for making pen drive bootable like SD card?

    Yes, the Linux file layout on the pen drive is the same as that on the SD card.