Home/Support/Support Forum/How to edit the bootcmd_mfg u-boot variable to run a script when u-boot boots?
New and improved user forum site coming soon
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 Sep 15, 2020 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 Sep 15, 2020 by LeonidM Veteran of the Digi Community (4,490 points)
selected Sep 16, 2020 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.
...