u-boot中的环境变量设置之间使用分号相隔,比如:
#define CONFIG_BOOTCOMMAND "bootp;tftp;bootm"
通过setenv修改变量时,变量之间用逗号相隔,比如:
=>setenv bootcmd nand device 0, nand read 0xa0000000 0x0 0x600000, go
=>save
或者如下:
=>setenv bootcmd 'nand device 0; nand read 0xa0000000 0x0 0x600000; go'
=>save