
Dear shuwn yuan!
shuwn yuan schrieb:
But I try to change the "bootcmp" in U-boot prompt, using this cmd:
Uboot> setenv bootcmd cp 10020000 20008000 f818;go 20008000
But this seems not work. I can't set it successfully. It directly jump to RAM location 0x20008000 after this & I can't save the "bootcmd". I expect it to be still in U-boot prompt after I type the above, & then I should type:
U-boot> saveenv
to save the "bootcmd" variable.
How to set the "bootcmd" in U-boot? How to put more than 1 action in "bootcmd" (eg: cp .....; go.....)? Does it not allow to type ";" ? What punctuation mark should I use?
You have to use a backslash as escape character, so the line becomes setenv bootcmd cp 10020000 20008000 f818;go 20008000
Is changing the "bootcmd" enough if change to uCOS-II? Or I need to modify U-boot source code, recompile, & reprogram the u-boot.gz into parallel flash? Any reference link online suggested?
You probably want to set the default environment to boot uCOS-II, so you have to change some settings in your board configuration file in include/configs .
With best regards Andreas Schweigstill