Setenv : How to include in kernel build


So i have used fw_setenv to change my screen to the correct settings and this has an effect on the uboot only.

Everything i have read says to use setenv but this is not found on my module

I know in local.conf i can add items to IMAGE_INSTALL_append but what do i need to add so that i can use ‘setenv’ ?

setenv command is used when you are in U-Boot. But remember that this command only sets the variable, don’t saves it in permanent memory. After setenv you have to call saveenv as well.

The fw_setenv command that you mentioned, helps you with changing U-Boot environment variables from (Linux) user space. Actually it combines setenv and saveenv, so your changes are automatically stored in permanent storage.