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.

AM5718: Saveenv error when booting eMMC

Part Number: AM5718

Hi, 

i'm using processor-sdk-u-boot-2019.01

Some commands fail when u-boot is booted with eMMC

"saveenv"

I booted into eMMC without an SD card, but the environment variables seem to be stored in the SDcard area.

I found similar e2e content, but I can't apply it because the U-boot version is different.

Similar e2e content : https://e2e.ti.com/support/processors/f/791/p/758375/2802545#2802545

Is it possible to set FAT_ENV_DEVICE_AND_PART in u-boot-2019.01 version?

Please help to set ENV in emmc area

Thank you

  • Hi Minsun,

    Please git am the attached patch on u-boot tree and try saveenv. I have tried saveenv with card removed
    and i was successful in saving environment. Basically removed saving into SD and saving it in eMMC instead.

    Thanks,
    Keerthy

    0001-configs-am57xx_evm_defconfig-save-enviroment-to-eMMC.patch.txt
    From adaca17e3b7355738e727fcb5594ae41a27805e6 Mon Sep 17 00:00:00 2001
    From: Keerthy <j-keerthy@ti.com>
    Date: Thu, 11 Jun 2020 16:35:46 +0530
    Subject: [PATCH] configs: am57xx_evm_defconfig: save enviroment to eMMC
     instead of SD
    
    save enviroment to eMMC instead of SD
    
    Signed-off-by: Keerthy <j-keerthy@ti.com>
    ---
     configs/am57xx_evm_defconfig | 1 +
     1 file changed, 1 insertion(+)
    
    diff --git a/configs/am57xx_evm_defconfig b/configs/am57xx_evm_defconfig
    index 0cb9b8d3ee..570f647942 100644
    --- a/configs/am57xx_evm_defconfig
    +++ b/configs/am57xx_evm_defconfig
    @@ -42,6 +42,7 @@ CONFIG_SPL_OF_CONTROL=y
     CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
     CONFIG_OF_LIST="am57xx-beagle-x15 am57xx-beagle-x15-revb1 am57xx-beagle-x15-revc am5729-beagleboneai am572x-idk am571x-idk am574x-idk"
     CONFIG_ENV_IS_IN_MMC=y
    +# CONFIG_ENV_IS_IN_FAT is not set
     CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
     CONFIG_DM=y
     CONFIG_SPL_DM=y
    -- 
    2.17.1
    
    

  • Thank you for your fast and accurate answer!