Home/Support/Support Forum/How to edit the bootcmd_mfg u-boot variable to run a script when u-boot boots?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

How to edit the bootcmd_mfg u-boot variable to run a script when u-boot boots?

0 votes
I want to run a script to run some commands when u-boot boots. How and where do I modify the bootcmd_mfg variable to achieve the same?
asked 5 days ago in Linux by anupam_mz New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

0 votes
 
Best answer
I think the variable you want to change is bootcmd not bootcmd_mfg. You can change it like you change any other variable in u-boot:
setenv bootcmd command
saveenv
answered 5 days ago by LeonidM Veteran of the Digi Community (3,622 points)
selected 4 days ago by anupam_mz
Thanks for your response. The bootcmd_mfg variable is run when mfg tool is used to boot u-boot. I added the command to this variable and it worked.
...