Building U-Boot environment variables in YOCTO

I want to somehow include the following in the image generated by YOCTO:

setup='setupargs vt.global_cursor_default=0 console=null console=${console},${baudrate}n8 ${memargs} consoleblank=0; setenv bootm_boot_mode sec'

Hello @Ilan_Figueiredo ,

Yes, you can do that by editing the U-boot sources ( and then git diff and patch the changes

Best Regards,