[U-Boot] u-boot script question

I'm using spare bytes of the nvram of the RTC chip to determine which of my two kernels should be booted. Trying to scrip that in u-boot script I'm doing the following. 1. Load 200010 with 0 (mw.b 200010 0) 2. Load 200014 with value from nvram (i2c read 68 15 1 200014) 3. if cmp.b 200010 200014 1; then run boot0; else run boot1;fi
Is it possible to compare the contents of the memory location with a constant like if test #200010 == 1; then run boot0; else run boot1;fi
Thanks S

Dear Sridhar Addagada,
In message 1344359350.57879.YahooMailNeo@web162902.mail.bf1.yahoo.com you wrote:
Is it possible to compare the contents of the memory location with a constant like if test #200010 == 1; then run boot0; else run boot1;fi
Yes, this is possible. For example:
if itest.b *200010 == 1; then run boot0; else run boot1; fi
Best regards,
Wolfgang Denk
participants (2)
-
Sridhar Addagada
-
Wolfgang Denk