Hi, I have my TMDS64GPEVM set up with tiboot3.bin, tispl.bin and u-boot.img in OSPI and the Linux root fs in eMMC. The eMMC partiton is shown below:
I havent been able to update the environment values after flashing the eMMC with the Linux rfs.
I have looked around and found that the am64x_evm_a53_defconfig has CONFIG_ENV_IS_IN_FAT=y and CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" enabled to save env values to FAT partition in SD card.
Since I am looking to save the env values in eMMC, I have commented out the same and added the following:
CONFIG_ENV_IS_IN_EXT4=y
CONFIG_ENV_EXT4_INTERFACE="mmc"
CONFIG_ENV_EXT4_DEVICE_AND_PART="0:1"
CONFIG_ENV_EXT4_FILE="/boot/uEnv.txt"
But this throws the following error while trying to build u-boot:
aarch64-linux-gnu-ld.bfd: env/built-in.o: in function `env_export':
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/common.c:211: undefined reference to `hexport_r'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/common.c:211:(.text.env_export+0x38): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `hexport_r'
aarch64-linux-gnu-ld.bfd: env/built-in.o: in function `env_ext4_save':
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:65: undefined reference to `ext4fs_set_blk_dev'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:65:(.text.env_ext4_save+0x6c): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4fs_set_blk_dev'
aarch64-linux-gnu-ld.bfd: /processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:67: undefined reference to `ext4fs_mount'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:67:(.text.env_ext4_save+0x74): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4fs_mount'
aarch64-linux-gnu-ld.bfd: /processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:73: undefined reference to `ext4fs_write'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:73:(.text.env_ext4_save+0xb0): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4fs_write'
aarch64-linux-gnu-ld.bfd: /processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:75: undefined reference to `ext4fs_close'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:75:(.text.env_ext4_save+0xb8): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4fs_close'
aarch64-linux-gnu-ld.bfd: env/built-in.o: in function `env_ext4_load':
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:110: undefined reference to `ext4fs_set_blk_dev'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:110:(.text.env_ext4_load+0x80): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4fs_set_blk_dev'
aarch64-linux-gnu-ld.bfd: /processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:112: undefined reference to `ext4fs_mount'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:112:(.text.env_ext4_load+0x88): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4fs_mount'
aarch64-linux-gnu-ld.bfd: /processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:118: undefined reference to `ext4_read_file'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:118:(.text.env_ext4_load+0xd4): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4_read_file'
aarch64-linux-gnu-ld.bfd: /processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:120: undefined reference to `ext4fs_close'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/env/ext4.c:120:(.text.env_ext4_load+0xdc): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `ext4fs_close'
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/scripts/Makefile.spl:419: recipe for target 'spl/u-boot-spl' failed
make[2]: *** [spl/u-boot-spl] Error 1
/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/Makefile:1833: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 2
make[1]: Leaving directory '/processor_sdk_linux_am64x_07_03_01_006/board-support/u-boot-2020.01+gitAUTOINC+e995ed0ec1-ge995ed0ec1/out/a53'
Makefile:167: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
Any help is much appreciated