Tool/software:
Every time I boot up, I need to set the environment variables "setenv mmcdev 0
and setenv bootpart 0"
(UBoot phase)in order to boot from eMMC mode. In which file can I set these variables?
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.
Tool/software:
Every time I boot up, I need to set the environment variables "setenv mmcdev 0
and setenv bootpart 0"
(UBoot phase)in order to boot from eMMC mode. In which file can I set these variables?
Hi,
You can set the U-boot env variables in uEnv.txt file.
This file is present in boot partition of you eMMC/SD card
Regards,
Aparna
Hi,
You can make changes in the env file in U-boot source code.
An example code for AM62A is provided below. Please make the same change in relevant AM62x files.
--- a/board/ti/am62ax/am62ax.env +++ b/board/ti/am62ax/am62ax.env @@ -17,8 +17,8 @@ args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000 run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} boot=mmc -mmcdev=1 -bootpart=1:2 +mmcdev=0 +bootpart=0:1 bootdir=/boot rd_spec=- rproc_fw_binaries= 0 /lib/firmware/am62a-mcu-r5f0_0-fw 1 /lib/firmware/am62a-c71_0-fw
Regards,
Aparna
HI Aparna Patra
"Can I set the environment variable and execute the command during the code compilation, like setenv dfu_alt_info ${dfu_alt_info_emmc}; dfu 0 mmc 0
?"
Hi,
When do you need to execute these commands?
You can either add it to your U-boot source code, or execute at the U-boot prompt.
Steps on how to flash eMMC using DFU: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1127618/faq-sk-am62-how-to-flash-emmc-using-usb-dfu-on-am62x-sk-e2
Please refer to the following guide which discusses DFU based flash writer tool automating the flashing procedure: https://software-dl.ti.com/processor-sdk-linux/esd/AM62AX/09_02_00/exports/docs/linux/Foundational_Components/Tools/Flash_via_DFU.html
Regards,
Aparna
HI Aparna
I d modified this file,but after burning in EMMC DFU mode still showing mmcdev=1
-bootpart=1:2
I don;t know why
--ti-am62xx-sdk/board-support/ti-u-boot-2023.04+gitAUTOINC+f9b966c674/board/ti/am62x/am62x.env
Thanks
Hi,
Are the U-boot binaries correctly built and replaced after you change in u-boot source code?
Regards,
Aparna