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.

RTOS/AM5728: How can I boot from emmc

Part Number: AM5728

Tool/software: TI-RTOS

I can read and write from emmc. And I can boot from SD, but when I copy the MLO into the emmc and remove the SD card, the cpu can't boot from emmc.

And I also try place MLO into SD and place APP into emmc which boot success.

Is there any other setting need to be done?

CCS is 8.2. PDK is pdk_am57xx_1_0_13.

  • Please specify what board is this - is it a custom board or the AM572x GP EVM?
  • it is my custom board, but the board refferred to the evm's design.
  • It is unclear if this is a HW /RBL issue or with the software issue due to the MLO that you are using.

    From HW perspective :

    Can you indicate what is the SYSBOOT setting and the boot order. Can you compare it to the setting/schematic on the AM572x GP EVM. Refer to CTRL_CORE_BOOTSTRAP in the TRM and map the value read from that register to Section 33.2.4 in the TRM to determine the Device boot order and configuration.

    From SW perspective:

    Are you using the same MLO for EMMC and SDMMC. If that is the case then the boot will fail. You need to rebuild the SBL for BOOTMODE=EMMC as described here :

    Command to build SBL for eMMC:

    make all BOARD=evmAM572x SOC=AM572x BOOTMODE=emmc

    You need to test the images using AM572x GP EVM first to ensure that your images work with a known good platform before trying them on a custom board.

    Regards,

    Rahul

  • Thanks for your reply.
    I have test the MLO into the AM572x GP EVM and it worked. But when I make it in my custom board, it didn't work. I have check the CTRL_CORE_BOOTSTRAP and the custom board's value is same as the AM572x GP EVM. I also made another test. I put the MLO into the SD and put the app into the emmc in my custom board which the MLO and app worked well. So, the boot setting is well and the emmc is well. It's make me confused. Is there any other setting need to do to use a new emmc?


    I have formated the emmc and make it Fat32.
  • Could this be a board design timing issue where the eMMC flash is not powering up when the ROM bootloader tries to read from the flash. This might explain why the secondary bootloader can read from eMMC later when the power up sequence may be completed.

    Do you have warm reset control on the board that you can trigger to the SOC when the core doesn`t boot the first time around from eMMC. This experiment will prove that if the eMMC power up time is root cause for this issue.

    Regards,
    Rahul
  • I used xds200 to reset the custom board and the emmc still didn't work.

    And I will check the power of the emmc.