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
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to