AnsweredAssumed Answered

can't make bootcmd save

Question asked by richardcagley on Aug 20, 2019
Latest reply on Aug 21, 2019 by igorpadykov

I can't seem to overwrite the bootcmd variable in u-boot and have it stay the save after rebooting. I can set it fine, see it's changed with printenv, and saveenv goes ok. But, when I reset it goes back to this

bootcmd=ext2load mmc 1:1 ${loadaddr} boot.scr; source; boota mmc0 boot_a;

I guess the first question, is there a way to override this variable and have it stick?

 

I also tried modifying u-boot code to remove that line (i'm on an imx8mq) but that didn't seem to do anything.

 

Is there something that feeds this variable prior to u-boot? I'm not that familiar with these parts yet. Is there a first stage bootloader that is handing this environment variable to u-boot?

Outcomes