Hi,
I am flashing u-boot.img and u-boot-env file to SPI Flash memory using below instructions:
Uboot> setenv dfu_alt_info ${dfu_alt_info_ospi}
Uboot> sf probe 0
#SF: Detected mt35xu512aba with page size 256 Bytes, erase size 128 KiB, total 64 MiB
Uboot> dfu 0 sf 0:0:64000000:0
host#sudo dfu-util -c 1 -i 0 -a 3 -D u-boot-env (along with other bootloaders).
The u-boot.img was configured as 'SPI Flash' for saving environment in the menuconfig. And the bootcmd was changed to load kernel from eMMC memory.
Similarly, the u-boot.-env (generated using mkevnImage tool) was also having bootcmd as to load from eMMC memory.
But, when we boot the board after flashing these things. But, if we print the bootcmd value in Uboot prompt. It is printing something else which is to load from sd card. The uboot log says that it loaded environment from SPI Flash.
I am not able to find, from which location the Uboot is fetching these bootcmd values, which I have not given either in uboot.img or u-boot-env file.
Kindly provide some help.
Thank you.
Regards,
Sainath