AM625: Booting from eMMC

Part Number: AM625

Tool/software:

Dear TI team,

I was booting an AM625 from SD card and it worked fine. Now we are moving to boot from eMMC and it doesn't work. We patched tiboot3.bin, s.t. it prints a message to UART. We see this message from SD boot but not from eMMC boot, this suggests that the ROM bootloader's fetch or check operation fails.

This is what I have done:

- Copied SD card image to eMMC user data area

- Enabled write to mmcblk0boot0

- Copied tiboot3.bin to mmcblk0boot0 (raw)

- mmc bootpart enable 1 1 /dev/mmcblk0

- Power cycle

This is what I checked:

- eMMC works (I can mount the partitions)

- Raw content of mmcblk0boot0 matches with file tiboot3.spl, which worked on SD card

- Boot pins are at 0x2e4b

- mmc extcsd read /dev/mmcblk0 | grep PARTITION_CONFIG      gives      Boot configuration bytes [PARTITION_CONFIG: 0x48]

Can you tell me what I am doing wrong? Thank you very much.

Kind regards

Leon Rigoni

  • - mmc bootpart enable 1 1 /dev/mmcblk0

    In addition to this, you would need to set the boot bus width as well. Can you please set them using U-Boot with the following commands

    => mmc partconf 0 1 1 1
    => mmc bootbus 0 2 0 0

  • Dear Prashant,

    Thanks a lot for your quick answer, that worked fine.

    Now I'm standing at the next issue: The second bootloader (tispl.bin) fails to load the third bootloader (u-boot.img), because raw eMMC read is not supported. So I tried to enable SPL_RAW_IMAGE_SUPPORT in U-Boot's menuconfig, but there I saw a weird dependency: This option depends on TI_SECURE_DEVICE being NOT set. So here's my question: Does enabling raw boot have an impact on security (sucha s secure boot)? If yes, what are the alternatives for booting?

    Thanks a lot.

    Kind regards

    Leon

  • The second bootloader (tispl.bin) fails to load the third bootloader (u-boot.img), because raw eMMC read is not supported.

    That is not the case. The U-Boot supports booting from the eMMC boot partitions which is a RAW partition only.

    Please see the following guide for flashing and booting from eMMC

    dev.ti.com/.../node