[U-Boot] usage of i2c command in hush script
Sridhar Addagada
sridhar_a at yahoo.com
Fri Jan 20 05:36:51 CET 2012
Hello,
Is it possible to use i2c output in a u-boot script something like
if test "i2c md.0 68 f = 0x80";then; echo "Watchdog Triggered";else; echo "Power Cycle"; fi
the only problem is that i2c command outputs something like=> i2c md 68 f
000f: 00 .
and comparing the entire string is not working. Any inputs would help.
I can try this in the main_loop, but if i can do it in shell then i would want to avoid that.
Thanks
Sridhar
More information about the U-Boot
mailing list