11
soy novato en uboot y TFTP programacióncómo hacer "si" y la declaración de comparación en uboot?
basado en this url, no es cómo hacer if
declaración como esta if imi $addr; then echo Image OK; else echo Image corrupted!!; fi
y este es mi "si":
=> setenv a true
=> printenv a
a=true
=> setenv b true
=> printenv b
b=true
=> if a b; then echo 'same';fi
Unknown command 'a' - try 'help'
=> if $a $b; then echo 'same';fi
Unknown command 'true' - try 'help'
=> if ${a} ${b}; then echo 'same';fi
Unknown command 'true' - try 'help'
=>
yup es correcto ... he intentado esto, si echo a b; luego echo 'same' ... pero antes echo echo, también echo una variable a & b ... gracias ... –