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.

PROCESSOR-SDK-AM64X: Create U-Boot Environment to Boot from eMMC (mmc0)

Part Number: PROCESSOR-SDK-AM64X

Tool/software:

I want to configure my AM64x device to boot from eMMC (mmc0). The documentation tells me to enter following command at the U-Boot prompt

=> setenv mmcdev 0
=> setenv bootpart 0
=> saveenv

In current U-Boot the saveenv command is disabled. How can I create a U-Boot environment that I can flash to boot0 partion of eMMC that sets these variables?

  • Hello,

    Please share the steps shared on the other thread.

    In current U-Boot the saveenv command is disabled. How can I create a U-Boot environment that I can flash to boot0 partion of eMMC that sets these variables?

    In order to restore the saveenv command, you will need to add the patch as follows, re-build the U-boot binaries, and replace them in your respective boot media.

    diff --git a/configs/am64x_evm_a53_defconfig b/configs/am64x_evm_a53_defconfig
    index 396385f9cb8..0e88e13214d 100644
    --- a/configs/am64x_evm_a53_defconfig
    +++ b/configs/am64x_evm_a53_defconfig
    @@ -226,3 +226,8 @@ CONFIG_SYS_MAX_NAND_DEVICE=1
     CONFIG_SPL_MTD_SUPPORT=y
     CONFIG_SYS_NAND_U_BOOT_LOCATIONS=y
     CONFIG_SYS_NAND_U_BOOT_OFFS=0x600000
    +
    +CONFIG_ENV_OFFSET=0x680000
    +CONFIG_ENV_IS_IN_MMC=y
    +
    +  

    Regards,
    Aparna

  • As I had to compile u-boot anyway, I decided not to use the saveenv but to change the default environment.

    In file board/ti/am64x/am64x.env I changed the values for mmcdev and bootpart to zero. That did the job, too.