Hello @dhruvinrajpura
I hope you are doing very well.
You can do it modifying or adding your own logs into the U-boot source.
To locate any specific log in u-boot you can do it with grep utility on Linux, for example:
If you want to locate the log:
Hit any key to stop autoboot
You can use the below command on uboot-imx directory:
$ grep -rnw 'Hit any key to stop autoboot' .
You will have an output like:
$ grep -rnw 'Hit any key to stop autoboot' .
./board/theobroma-systems/lion_rk3368/README:78:Hit any key to stop autoboot: 2
./board/phytium/durian/README:58:Hit any key to stop autoboot: 0
./board/rockchip/evb_rk3229/README:90:Hit any key to stop autoboot: 0
./board/rockchip/sheep_rk3368/README:43:Hit any key to stop autoboot: 0
./board/rockchip/evb_rv1108/README:45:Hit any key to stop autoboot: 0
./board/qualcomm/dragonboard820c/readme.txt:265:Hit any key to stop autoboot: 0
./common/autoboot.c:378: printf("Hit any key to stop autoboot: %2d ", bootdelay);
./common/menu.c:439: printf("Hit any key to stop autoboot: %d ", menu->delay);
./test/py/u_boot_console_base.py:22:pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ')
./doc/board/sipeed/maix.rst:140: Hit any key to stop autoboot: 0
./doc/board/intel/edison.rst:143: Hit any key to stop autoboot: 0
./doc/board/toradex/verdin-imx8mp.rst:113: Hit any key to stop autoboot: 0
./doc/board/toradex/verdin-imx8mm.rst:107: Hit any key to stop autoboot: 0
./doc/board/toradex/verdin-am62.rst:146: Hit any key to stop autoboot: 0
You can see that log is printed from the /common/autoboot.c file, and now you can modify it and recompile.
I hope this information can helps to you.
Best regards,
Salas.