I wish to read a value from i2c in uboot,
and based on the value, do a command. I need it to be in a script

The command itself does not matter, however, its activation must be based on the value from the i2c chip.

So far I can only print values from i2c, but I cannot use them.

```
=> i2c md 20.1 0 8
0000: ff ff ff ff ff ff ff ff    ........

```

I can also have conditions:

```
=> setenv myvalue 0
=> if test $myvalue -eq 1; then echo 'hello'; fi
=> setenv myvalue 1
=> if test $myvalue -eq 1; then echo 'hello'; fi
hello
=>

```

I can do some of them specific to i2c:

```
=> if i2c probe; then echo "true"; else echo "false"; fi
Valid chip addresses: 20 21 22 23
true

```

But I cannot use the values from the i2c to a condition. How do I solve this?